2) registered the shortcode argument (screenshot 2)
3) created a view with the slug "upsells-related-products" and set the filter as per screenshot 1
4) added this shortcode in my Elementor Single Product Page template
[wpv-view name="upsells-related-products" ids="[upsells]"]
Problem: it shows all the products and after the last product, it shows "]
When I place [upsells] outside of the wpv-view, I get the correct Upsel products 1866,1869
But it does not work inside the shortcode.
Hello. Thank you for contacting the Toolset support.
I will have to check the code where you integrated it with your site.
Can you please share problem URL as well as admin access details so I can review your current code and check whats going wrong with your setup.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
A view inside a content template, would not have thought about that. Is this the general rule when using shortcodes inside a view. Not to insert them directly into the web page, but first into a content template?
No - its because in your elementor template the elementor template does not able to parse the view with view shortcode argument id="[upsell]".
So that is why we move the view inside the content template and therefore we created and new content template and move the view to it so the view is parsed without any issues.
Is there any way I could have a View of 8 Upsell/Related products where the upsell products are displayed first and then, if room for related products, those are added?
Like 3 upsell products and then 5 related products inside the grid of 2x4? Now the 8 related products are dangling a bit silly below the upsell products.
New threads created by Minesh and linked to this one are listed below:
As per our support policy - we entertain only one question per ticket, This will help other users searching on the forum as well as help us write problem resolution summery for the original question reported with this ticket.
May I kindly ask you to open a new ticket with every new question you may have. Currently, I will split this ticket with your new question and you can mark this ticket as resolved.