Results 1 to 9 of 9

Thread: product's price changing consequently total order

  1. #1
    User
    Join Date
    07-16-09.
    Posts
    128

    Default 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

  2. #2
    Experienced user
    Join Date
    01-12-10.
    Posts
    814

    Default 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/

  3. #3
    User
    Join Date
    07-16-09.
    Posts
    128

    Default 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

  4. #4
    Experienced user
    Join Date
    01-12-10.
    Posts
    814

    Default 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!

  5. #5
    User
    Join Date
    07-16-09.
    Posts
    128

    Default Re: product's price changing consequently total order

    I'll try, thanks!

  6. #6
    User winanscreative's Avatar
    Join Date
    06-21-09.
    Location
    Massachusetts, United States
    Posts
    261

    Default 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...

  7. #7
    User
    Join Date
    07-16-09.
    Posts
    128

    Default 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€

  8. #8
    User
    Join Date
    07-16-09.
    Posts
    128

    Default 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

  9. #9
    Experienced user
    Join Date
    01-12-10.
    Posts
    814

    Default 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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •