.widget_text .social-icons{text-align:left}.product-grid-item{margin-bottom:30px!important}.site-content .entry-content a{text-decoration:underline;font-weight:700}.view-enhancements{border:2px solid #95edbb;padding:5px 10px 5px 10px;margin-bottom:25px;max-width:330px}.view-enhancements p{margin:0}.view-enhancements a{font-weight:700;text-decoration:underline}.grecaptcha-badge{display:none}footer a{color:rgb(0 0 0 / .8)!important}// Redirect checkout button to WhatsApp with cart items add_filter("woocommerce_get_checkout_url","redirect_checkout_to_whatsapp");function redirect_checkout_to_whatsapp($checkout_url){$cart_items=WC()->cart->get_cart_contents_count();$num_unique_products=count(WC()->cart->get_cart());if ($num_unique_products < 1 && $cart_items < 1){return $checkout_url}$cart_items=WC()->cart->get_cart_contents();$message="Hello, I would like to book the following items: ";foreach ($cart_items as $cart_item){$product_name=$cart_item["data"]->get_name();$product_qty=$cart_item["quantity"];$product_total_price=html_entity_decode(get_woocommerce_currency_symbol()) . number_format($cart_item["line_total"],2);$product_total_price=strip_tags($product_total_price);$message .=" ||- " . $product_name . " x " . $product_qty . " (" . $product_total_price . ")\n"}$encoded_message=rawurlencode($message);$whatsapp_link="https://wa.me/<phone_number>?text=" . $encoded_message;// Replace <phone_number>with your WhatsApp number $whatsapp_link=str_replace("<phone_number>","+27647247870",$whatsapp_link);return $whatsapp_link;