-- HikaShop version -- : 3.2.1
-- Joomla version -- : 3.8.1
-- PHP version -- : 7
Hi Hikashop team,
I like to show text into the checkout step 2 (Address) but I don't know what's wrong with my code.
I want to add this code into checkout / show_block_address.php
The statement is:
When shipping address is country Germany AND one of the products in the cart have (brand) product_manufacturer_id=='28',
then show text or else do nothing. (= text do nothing).
I tried this code but it only show the "text do nothing". Can you please tell me what's wrong with this code.
<?php
if($data->cart->address_country=='country_Germany_81' AND $data->cart->product_manufacturer_id=='28')
{
echo "products form the brand x could not be shipped to Germany please remove all brand x products from your cart to order the rest of your prodcuts";
}
else
{
echo "text do nothing";
}
?>
I hope you will help me with this
Kind regards,
Lumiga