
10.02.2023 tarihli TCMB Dolar kuru: 18.8451TL hesaplayacak olursak 376,902 ~ 377TL/Ay
13
●766

add_action( 'woocommerce_after_add_to_cart_button', 'add_whatsapp_order_button' );
function add_whatsapp_order_button() {
global $product;
$product_name = $product->get_name();
$product_url = $product->get_permalink();
$whatsapp_url = "https://api.whatsapp.com/send?text=I%20would%20like%20to%20order%20" . urlencode($product_name) . "%20" . urlencode($product_url);
echo '<a href="' . $whatsapp_url . '" class="button" target="_blank">Order via WhatsApp</a>';
}