-
Februar 21, 2017 um 10:38 Uhr #14138AlexandreMitglied
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 ?
Februar 21, 2017 um 11:33 Uhr #14139TimoAdministratorHi,
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
Du musst angemeldet sein, um auf dieses Thema antworten zu können.