-
Is it possible to use the query loop block to show upsell or crosssell products?
-
Alvind
Hi there,
That should be possible if you know which parameters to include to set an upsell product for a specific item. Assuming you’re using WooCommerce, doesn’t it have its own method for displaying upsell and cross-sell products?
-
Yes, but i want to place them in between content and want to make a slider out of it. The only thing i need to know is how i can use the query loop for it.
Here is the site –> http://pottauchocolat.hpgu4slzdh-dv13xyw576gq.p.temp-site.link/erdnuss-28-weisse-schokolade-kopie-2/
This is the layout i want to achieve –> https://ibb.co/sKF5WJd
-
The only thing i need to know is how i can use the query loop for it.
Do you mean how to use query loop to pull products? If so, you just need to select product as the post type, and set your specific parameter.
-
I need the specific parameter for the upselling/crossselling products.
-
That’s for you to determine, as you’ll need to define the criteria for selecting upsell products for a particular item. To simplify, you could set the upsell products to be from the same category as the currently viewed product.
-
That is not quite the thing i wanted to achieve but good enough. Thank you!
-
Alvind
You’re welcome!
- You must be logged in to reply to this topic.