skip to Main Content

I’m looking for a plugin or snippet code (JS or PHP) to get this function.

I have 2 products on my shop, Oil for women and oil for men (100ml)

I would like to have a function on checkout page (NOT to cart page) if i buy or add to cart the women oil, i want to see a button where you can add to cart for only 3€ the men oil (30ml)

AND reverse, if i buy or add to cart the men oil, i want to see a button where you can add to cart for only 3€ the women oil (30ml)

How can i solve it?

Exist a plugin or a snippet code that i can add on checkout page? (JS or PHP)

Thanks.

2

Answers


  1. Checkout Field Editor (Checkout Manager) for WooCommerce
    this is the plugin which I am using for checkout

    Login or Signup to reply.
  2. WooCommerce Checkout Add-ons lets you do just that: https://woocommerce.com/products/woocommerce-checkout-add-ons/#

    You should be able to add upsells to your checkout based on products in the cart.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search