Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2006
    Posts
    37
    Plugin Contributions
    0

    Default How might I apply a 20% discount to one product when another is present?

    I was wondering if anyone has created a solution using either the observer class or other method to do something like the following:

    If the customer puts product A in their cart and we are offering 20% off product B and C (in an unlimited quantity and combination) only if they purchase product A. It must do so without applying the 20% discount to product A.

    I think I have part of the solution, which is to create a discount code for only products B and C and somehow use the Observer Class to create a script that would parse the coupon code to the discount coupon input field in the billing step of the form when product A is in the cart. What I am unsure about is where or how I might find the proper locations to "hook" into or if this is even possible. It seems this might work as it is similar the BOGOF solution.

    I would very much like to know if someone has accomplished something like this, and if so, how? OR If anyone knows of an alternative solution that would provide the same outcome.

    Thanks,

    cpk
    Last edited by cpk; 3 Jun 2006 at 01:42 AM. Reason: unclear title

  2. #2
    Join Date
    Jun 2003
    Location
    Newcastle UK
    Posts
    2,896
    Blog Entries
    2
    Plugin Contributions
    2

    Default Re: How might I apply a 20% discount to one product when another is present?

    It depends on where you want the discount to show up.

    If you only want the discount to show up on the confirnation page.

    eg.

    sub-total - $100..00
    shipping $5.00
    Multi-discount(20%) - $20.00

    Total $85.00

    then you are better off using a order total class, much like the group pricing class.

    If however you want the discounts to show up in the shopping cart, then you are better off using the observer/notifier method in a similar manner to the BOGOF example.

 

 

Similar Threads

  1. v151 Apply coupon discount to more than one line item
    By keyconn in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 22
    Last Post: 3 Jun 2015, 11:04 PM
  2. v150 Apply coupon even when discount is 0.00
    By ShopVille in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 5
    Last Post: 13 Feb 2014, 11:14 PM
  3. How to apply discount for all product in the same category?
    By wihandy in forum Setting Up Specials and SaleMaker
    Replies: 9
    Last Post: 29 Jul 2010, 05:26 AM
  4. Activate one product when another is selected
    By SimplyJoe in forum General Questions
    Replies: 7
    Last Post: 13 Jan 2009, 04:44 AM
  5. How to ignore sale price and apply group Discount to original product price?
    By cushietushies in forum Setting Up Specials and SaleMaker
    Replies: 2
    Last Post: 25 Jul 2008, 05:51 AM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR