Welcome,
Guest
|
HI all ,
i have a scenario for my shipping items, and i did not find a way to calclate these scenarios. letus assume that i have Categories slug name "clothes", "shoes","accessories", and "refrigerator" , "furniture","cooker" scenario 1 user buys from category names "clothes or shoes or accessories , in that scenario i need to charge him only "shipping =20 + (15*length(Vendors)) scenario 2 user buys from category names "Refrigerator or Furniture" , in that scenario i need to charge him only "Shipping=400 + (100*length(Vendors)) scenario 3 user buys from categories "Clothes and Refrigerator and any other categories" at the same cart, here i need to charge him "shipping =(20 + (15*length(Vendors)) )+ 500 this what i am doing but unfortunately i get nothing Name=Shipping; Shipping=20+(15*length(Vendors)) Name=Home Supplies;Condition=contains_any(Categories,"air-conditioners", "deep-freezer", "emergency-lights", "gas-cookers", "kitchen-appliances", "refrigerators", "washing-machines","water-dispensers","water-heaters","bed-room","kids-room","kitchen");articles<=1; ;Shipping=400+(100*length(Vendors)) any idea ? |
|
The administrator has disabled public write access.
|
Now i have a solution for this, i have used this function
Name="Home Supplies"; Condition=contains_any(Categories, "refrigerators","bed-room");Shipping=500*(articles) Name="Shipping"; Condition=contains_none(Categories, "refrigerators");Shipping=20+(15*length(Vendors)) my issue is on articles " i need length (articles) when they in any of the Categories("refrigerators","bed-room") only not all articles on the cart |
|
The administrator has disabled public write access.
|
Name="Home Supplies"; (Condition=contains_any(Categories, "refrigerators","bed-room") );Shipping=(500 * (evaluate_for_categories(length(Vendors), "refrigerators","bed-room")))+ ((evaluate_for_categories(articles, "refrigerators","bed-room")) *50)
solved :) |
|
The administrator has disabled public write access.
|