AbanteCart Community
Shopping Cart Operations => Support => Topic started by: cookie on January 10, 2014, 07:17:45 AM
-
HI,
Where can we see the productID ?!?
And which "if" statement shall we use in product.tpl for ex in order to filter by or add some code pre-defined product IDs only?
Thank you!
-
You can look at product controller to see what variables and data structure are available.
In your case it would be $product_info[product_id']
-
Thank you, I will look at taht.
But where can I see the product ID !??!
If I want to write smth. like if($product_info[product_id']=="23") - where do I get that 23 (was just an example, no idea how the IDs even look like in abantecart) from?
I was expecting the IDs to show in a column or smth in the product listing on the admin site but there no such thing there ...
Thank you
-
Hi Cookie,
There are several ways:
1. If you have the SEO feature turned on - just switch it off and then the URL bar will show the product ID number in the long form. When you are done, turn the SEO back on. (it's in System > Settings > System)
2. If you want the whole list - then you can use a data export in System > Data > Import/Export. At the bottlem is Url_aliases
it will give you the product_id=XX and the seo that it uses.
3. Or you can go directly to the database and use the Url_aliases table.
Hope this helps.
Lee
-
Thank you Lee!
Turning off SEO did the trick :)