Jump to content

how a product id is called in prestashop from database


Recommended Posts

Hi ,

 

 

                I want to know whenever i click on a product or link(href) a id is required to identifiy the particular product  in database.

 

for example:

 

There is product called flower1 which has given a id = 2489,

<a href='page2.php?id=2489&user=tom'>link to page2</a>

 

Now this link uses id 2489 ,it will search in the database through coding and identifies the id i.e 2489

it ll sort according to the requirement..

 

 

Now the problem is in my prestashop

 

<a href="{$link->getProductLink($categoryProduct.id_product, $categoryProduct.link_rewrite, $categoryProduct.category, $categoryProduct.ean13)}" title="{$categoryProduct.name|htmlspecialchars}">
 
 
What is the meaning of thiis variable $categoryProduct.id_product ,from where its fetching the value...?
 
From this link i want to change the id number, where or how can i find this thing...?
 
Please any one who can help me..................................................help
Edited by sham064 (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...