-
February 21, 2017 at 10:38 #14138AlexandreMember
Hello,
In ASA 2 Repo > Categories I’ve created 4 different categories, each of them has its own slug (so the slugs are unique). Each category has 10 products. I have 4 different pages. On each page I try to add a smart collection calling a particular cat_slug. For example, on the page “Automatic Expresso Coffee Machines” I have this short code [asa2_smart_collection tpl="Sortable_table" s="cat_slug="top-10-expresso-automatic-coffee-machines"" /], on the page on the page “Top 10 Expresso Coffee Machines” I have this short code [asa2_smart_collection tpl="Sortable_table" s="cat_slug="top-10-expresso-coffee-machines"" /] etc. The problem is that I have the same table on the 4 pages. Altghout the short code is different on each page.
What can I do ?
February 21, 2017 at 11:33 #14139TimoKeymasterHi,
I am not sure if your shortcodes are right or got changed here by the forum syntax parser, but that option part looks wrong:
s=”cat_slug=”top-10-expresso-automatic-coffee-machines””Option s should contain a search string. In your example it includes the other option cat_slug. I think you do not need option s at all because you just want to filter for cat_slug.
So I think your shortcodes should look like this:
[asa2_smart_collection tpl="Sortable_table" cat_slug="top-10-expresso-automatic-coffee-machines" /]
[asa2_smart_collection tpl="Sortable_table" cat_slug="top-10-expresso-coffee-machines" /]
More details about the options for shortcode asa2_smart_collection can be found here: http://docs.getasa2.com/shortcodes_asa2_smart_collection.html#cat-slug
You must be logged in to reply to this topic.