View Single Post
  #1  
Old 02-27-2012, 12:44 AM
 
Stizerg Stizerg is offline
 

Senior Member
  
Join Date: Apr 2008
Location: Sydney, Australia
Posts: 195
 

Default product's sequence number

Is there an easy way to get product's sequence number in current category?
For example if I open 5th product I need to get something like $current_product=4 (considering it starts with 0), so then I can pass it to javascript.
I know I can go through $products or $cat_products to get this number, I just was wondering if that number already exists somewhere.
It's for v.4.4.4
__________________
X-Cart Gold Plus 4.6.6
A lot of custom mods
Reply With Quote