• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

Whatsapp Checkout Order for WCMF Multi Vendor

Whatsapp Checkout Order for WCMF Multi Vendor 1.1

No permission to download
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?
 
I can't make this work, after putting the whatsapp number and click update, then the page refresh and the number is gone.
 
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!!
 
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:
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock