Hi, we sell bottles of wine and liquor. We use the plugin so that it adds the cost of the package, which is:
box for 3 bottles: 2,55 €
box for 6 bottles: 4 €
box for 12 bottles: 8 €
There's a couple categories that include products that would add the package in a different way ( these are beer, cider, etc- sold in packs of 12 and 24 and Demijohns).
Type of category 1 (articles sold in packs)
24 bottles - i'd need to add the cost 1 box of 6 bottles (4 €) instead of 4 boxes of 6
So each 24 bottles would add the cost of 1 box of 6 bottles
Type of category 2 - Demijohns
Each article would add 1 box of 6 bottles (4 €)
How can i calculate the cost of the shipping for orders that would include products from these categories? providing the rest of the products in the shopping cart would need to have the packaging added as usual. This is my current set of rules:
Variable=Bottles; Value=Articles-evaluate_for_categories(Articles, 78, 83, 90) <-- i need to change this to add the cost of the box
Variable=Box12; Value=round(Bottles/12-0.0001)
Variable=Box6; Value=round((Bottles-12*Box12)/6-0.0001)
Variable=Box3; Value=ceil((Bottles-12*Box12-6*Box6)/3)
ExtraShippingCharge=8*Box12+4*Box6+2.55*Box3
Name=Express Delivery; 0<Weight<=3; shipping=14.83
Name=Express Delivery; 3<Weight<=5; shipping=15.98
etc
I use Virtuemart 2.6, Joomla 2.5 and Advanced Shipping by Rules
Thank you so much and regards