Function for related products
-
Hello, I’m building a modal popup on add to cart click.
Basically when the user clicks on Add to Cart, a popup will show up with the related products (upsells and cross sells).
At the moment I’m doing that manually. I create a different popup in Elementor for every product with its related products.
I would like to generate them automatically.
Is there a function that I can call that returns the related products giving the product ID of the Add to cart link?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Function for related products’ is closed to new replies.