Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

Where to find product ID and how to filter by product ID?

Started by cookie, January 10, 2014, 07:17:45 AM

Previous topic - Next topic

cookie

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!

abantecart

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']
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

cookie

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

llegrand

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
     

cookie


Forum Rules Code of conduct
AbanteCart.com 2010 -