Whatsapp Checkout Order for WCMF Multi Vendor

Whatsapp Checkout Order for WCMF Multi Vendor 1.1

No permission to download

cris123ppp

New member
May 30, 2019
24
7
3
In the line where you have this code ( $msg .="*Total Price ) change to the one below:

$msg .="*Total Price $*".strip_tags($d['total'])."\n";

Good Lock brow
The freight price is also in error, and the total does not add up to shipping, can you help?
 

lostrag

Member
Aug 26, 2020
99
59
18
I can't make this work, after putting the whatsapp number and click update, then the page refresh and the number is gone.
 

naturalmapp

New member
May 30, 2021
2
0
1
You just need to change them in index.php lines 86 and 87 :

86 > $judul = 'Thank you for your order.';
87 > $subtitle = 'Complete your checkout by pressing the Order by WA button below so that the order can be processed by the Seller.';
Great!!
 
Aug 3, 2022
0
0
0
taplink.cc
hello please can someone help me ??

the house number field and the phone number is not showing when you send it to whatsapp



//Loop each checkout vendors whatsapp button
$html ='';
foreach($data as $vendor_id=>$d){
$msg = "*Olá, aqui estão os detalhes do meu pedido:*%0A%0A";
$msg .= $d['items']."%0A";
$msg .="*Nº do pedido: ".$order->get_id()."%0A";
$msg .="*Valor total*: ".strip_tags(wc_price($d['total']))."%0A";
$msg .="*Forma de pagamento*: ".$order->get_payment_method_title()."%0A";
if(isset($shipping_data[$vendor_id])){
$msg .="*Forma de entrega*: ".$shipping_data[$vendor_id]['title']." ".strip_tags(wc_price($shipping_data[$vendor_id]['total']))."%0A%0A";
}elseif(isset($shipping_data[0])){
$msg .="*Forma de entrega*: ".$shipping_data[0]['title']." ". strip_tags(wc_price($shipping_data[0]['total']))."%0A%0A";
}

$msg .="*Informações do Comprador*: %0A";
$msg .="Nome: ".$order->{"get_".$mode."_first_name"}()." ".$order->{"get_".$mode."_last_name"}()."%0A";
$msg .="Endereço: ".implode(', ',[$order->{"get_".$mode."_address_1"}(),$order->{"get_".$mode."_address_2"}()])."%0A";
$msg .="Cidade: ".$order->{"get_".$mode."_city"}().", ".$province.", ".$country."%0A";
$msg .="CEP: ".$order->{"get_".$mode."_postcode"}()."%0A";
if($mode=='shipping'){
$email = (isset($order->shipping['email']))?$order->shipping['email']:$order->get_billing_email();
$phone = (isset($order->shipping['phone']))?$order->shipping['phone']:$order->get_billing_phone();
}else{
$email = $order->get_billing_email();
$phone = $order->get_billing_phone();
}
$msg .="E-mail: ".$email."%0A";
$msg .="Telefone: ".$phone."%0A";
$msg .= "Observações: ".$order->get_customer_note()."%0A";
$msg .="%0A";
$msg .="Muito Obrigado!%0A%0A";
$msg .= "Data da Mensagem: ".get_post_time( 'j-F-Y - H:i', false, $order->get_id(), true );
$btn_text ='Enviar compra para: '.$d['vendor_name'];
$html .= '<a id="sendbtn" href="https://api.whatsapp.com/send?phone='.$d['whatsapp'].'&text='. ($msg).'" target="_blank" class="wa-order-thankyou">'.$btn_text.'</a><br>';
}
 
Last edited:

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu