Automatic Discount on 2nd Category when Product from 1st Category Added to Cart


  • Default avatar
    craig5    
     7 years ago
    0

    Hi,

    Apologies if this has been answered elsewhere on the forums I couldn't see it.

    I'm trying to create a situation where when a customer adds a product from a category in Virtuemart and adds it to their cart they automatically get a set value discount on products added from another category.

    e.g.

    The customer adds the Boxed Set (£40) and gets a £10 discount for items from accessories.

    The customer adds Big Boxed Set (£100) and gets £40 discount to items from accessories.

    Is this possible?

    Thanks,

    Craig A

  • Your avatar
    seyi    
     7 years ago
    0

    Hello,

    You can use a parent coupon to create this type of coupon:

    Coupon A: value of 0 and add boxed set category to coupopn
    Coupon B: the discount and add the accessories to coupon
    Coupon C: parent coupon where you add both coupons A and B and set process type to ONLY if all apply

    Then you can add coupon c to the automatic discount list.

  • Default avatar
    craig5    
     7 years ago  last edited 7 years ago
    0

    Thank you! worked perfectly!
    Hi Seyi!

    As a follow up to this - on top on the automatic discount, customers usually have a 2nd code to input, the function is working correctly I just wondered if there was any way to show the two discounts separately on the Shopping Cart page? 

    It shows the auto discount as (Discount) and the other with the name of the Coupon but totals the amount of discount into one value.

    And finally, is there any way to change the suto discount label that shows up "(Discount)" to something else for each different automatic discount (I have three setup)?

    Thanks,

    Craig

  • Your avatar
    seyi    
     7 years ago
    0

    Hello,

    For virtuemart, wrote some code a while back that you could use to separate out the discounts:
    https://awodev.com/forum/awocoupon/suggestion-box/shows-percentage-discount#post5780

    You can override what is displayed for any coupon by setting the display_text:
    https://awodev.com/documentation/awocoupon-pro/coupons#admin-note

  • Default avatar
    craig5    
     7 years ago
    0

    Heya Seti,


    Me again. Renaming them uses the admin box worked brilliantly! Thank you!

    Typically I now have another problem regading the orginal discounts.

    I've set up the Automatic Discount using the Coupon A (Specific 'big box' Product), B (Discount and other things added to cart) and Parent C (When both apply) process and it works prefectly but when I try to create another one that triggers with a different set of A and B coupons it doesn't work. I tried creating from scratch and I also tried creating copies of the original and changing the details. Can you help?

    Thanks,

    Craig


  • Your avatar
    seyi    
     7 years ago
    0

    Hello,

    I would have to see what you created and know exactly what you are trying to create.  Can you send a private message with temp admin access with explanation of what you want and which coupons you created?
  • Default avatar
    craig5    
     7 years ago
    0

    PM sent :)
  • Your avatar
    seyi    
     7 years ago
    0

    Replied.