product's price changing consequently total order
Hi
I've some products (with price X) that I want to change price accordingly to total amount of order. So, for example, if total order (that includes many products) is 1000, I want that X is changed to Y, and if order is 2000 the price will be Z.
is it possible?
thanks
Re: product's price changing consequently total order
Get isotope_rules, I think this will enable tier prices.
https://winans.svn.beanstalkapp.com/iso ... m/modules/
Re: product's price changing consequently total order
it seems that with it I can't change price of a specific product, but only apply discounts to all cart or all products
Re: product's price changing consequently total order
Yes indeed, the best possible way is to restrict on product type level if I recall correctly. But perhaps there is another existing way we are not thinking of using rules or another extension?
If you have knowledge of PHP you could create a custom product class specifically to this purpose. There are some examples. The svn contains a isotop_dimensions extension for a product that returns a price based on dimensions. If you'd stripp out the dimensions and make the product change on nr of products you can then define some way that a price is calculated.
This might be a nice addition to Isotope!
Re: product's price changing consequently total order
Re: product's price changing consequently total order
This is available in the 1.3 betas. It's called "advanced pricing" and you can enable it in your Product Types. It lets you create all sorts of pricing tiers and conditional pricing based on member groups, store config, etc. It is a pretty incredible addition to the core, actually...
Re: product's price changing consequently total order
mmmmm
I've tried many times, but I didn't find a solution for my problem. I can set price based on groups or store, but I can not change price of A SPECIFIC PRODUCT if TOTAL ORDER exceed 1000€
Re: product's price changing consequently total order
solved
I modified code:
row 536 in isotope_rules/IsotopeRules.php
Code:
if ($arrRule['quantityMode'] == 'cart_amount') {
$intTotal = $this->Isotope->Cart->subTotal;
}
and row 570
Code:
if ($arrRule['quantityMode'] != 'cart_products' && $arrRule['quantityMode'] != 'cart_items' && $arrRule['quantityMode'] != 'cart_amount')
row 452 in /isotope_rules/dca/tl_iso_rules.php
Code:
'options' => array('product_quantity', 'cart_products', 'cart_items', 'cart_amount'),
and row 101 in isotope_rules/languages/en/tl_iso_rules.php
Code:
$GLOBALS['TL_LANG']['tl_iso_rules']['quantityMode']['cart_amount'] = 'Total amount';
I hope you'll add these modifications in your next version
Re: product's price changing consequently total order
I'd need to look better at what you've done and if it can't be achieved via advanced pricing. But if not, then we should add it as a feature request at isotope_rules. Especially because it seems so little code to add for an extra feature.