Show "Buy X Get Y" product pricing on packages of products

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eholmes
    Mivite Lite

    • Apr 2019
    • 2

    #1

    Show "Buy X Get Y" product pricing on packages of products

    I have created the ability to create "packages" of products on my site. The next step to make the packages more useful is to show the applicable coupon pricing if for example both of the products assigned in the package are part of a "Buy X Get Y" price group/coupon and advertise the bundled savings.

    I currently am stuck on how I can retrieve a product's discounted price before the customer ever adds them to their basket.

    What I am thinking would be a good approach is to somehow create a "fake" dummy basket page that does not affect the customer's basket. I would then want to be able to send an array of product codes to this "fake" basket (maybe along with the Price Group that I want applied to these products) and have it return to me those products price with the coupon being applied that they trigger.

    This example ( https://gist.github.com/steveosoule/...81f62c50086428 ) is close to what I am shooting for but it is unable to detect that the combination of product codes I am sending would trigger a "Buy X Get Y" coupon if they were both added to the cart at once.

    Any ideas on how to create "fake" baskets or detect price group/coupon level pricing on products before they're in the basket?
Working...
X