Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Reply To: [Waiting for user confirmation] Embed PHP

$
0
0

Hi Gen

Okay my challenge is this. Look at

jasminesboutique.co.uk

Go to clothing, and then click on Men. You can see several products appear. I have made it so that if someone on the right hand side refines the products by selecting the check box shirts and pressing refine it brings up results similar to the default woocommerce results you see on the first page.

The problem is they are similar but not the same. For example I want sale items to show that there sale items, and the reduced and original prices etc. In order to achieve this I can use the woo commerce short code

[products ids="1, 2, 3, 4, 5"]

Now my challenge is how do I integrate this with the views layout editor? I could place in a loop something that adds the product id to an array and then outside the loop I could call the short code substituting the ids for something like

[products ids=$myarray]

So we have established php can not be used. Can the above be achieved via short codes do you think without any database calls?

Could you put a request in for views layout builder to work with php as well.


Viewing all articles
Browse latest Browse all 20145

Trending Articles