| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
|
|
||||||||||
| X-Cart Home |
Need a little help ;) | |||
![]() |
|
||
|
|
Thread Tools | Search this Thread |
|
#1
|
|||||||
|
|||||||
|
Hi Chaps
I need to get hold of the productid number which is generated by products.php and placed in the $products array i wish to use this id number in my own code within products.php any ideas many thanks Jonny. |
|||||||
|
#2
|
|||||||
|
|||||||
|
This is referred to in the templates as {$products[product].productid} as it is placed into an array by the products.php file and assigned over to smarty.
__________________
ex x-cart guru |
|||||||
|
#3
|
|||||||
|
|||||||
|
Thanks for your reply
I need to know how to reference the variable in the products.php file itself before it gets to the template. I need to do a if(!file_exists("filename.gif")) command so need to do it before the template stage, but it references to the product id Cheers Jonny. |
|||||||
|
#4
|
|||||||
|
|||||||
|
I would put that in towards or at the end of the products.php file.
What are you trying to achieve?
__________________
ex x-cart guru |
|||||||
|
#5
|
|||||||
|
|||||||
|
We have decided to have images & thumbnails on the server rather than in the database due to the bad quality that resizing the thumbnails gives.
So i need to do a check to see whether the images exists to determine whether to display the image or a no image available image. I have managed to do this for product.php as the productid is carried over in the URL, but on products.php there are obviously more than 1 product. cheers Jonny |
|||||||
![]() |
|
| Thread Tools | Search this Thread |
|
|
|
|
|||
|
X-Cart forums © 2001-2020
|
|||