Jump to content

Nabahat

Recommended Posts

Anyone . . . . Plz help me accomplish doing this in Prestashop 1.6.1.4

 

There are two conditions:

 

($order_contains_product_category_veg == true and $rest_of_product_category_value < '500' and $order_contains_veg_value < '120')

or

($order_contains_product_category_veg == false and $rest_of_product_category_value < '500')

 

if any of the above true, there is delivery charges, else delivery charges is zero.

if (($order_contains_product_category_veg == true and $rest_of_product_category_value < '500' and $order_contains_veg_value < '120') or ($order_contains_product_category_veg == false and $rest_of_product_category_value < '500'))
{
  $delivery_charges = '20';
  $displayItInCart('A message.');
}
else
{
  $delivery_charges = Free; 
  $displayItInCart('A message.Your eligible for Free Delivery');
}

Which files to modify or any other method?

Edited by Nabahat (see edit history)
Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...