Jump to content

Reading categories from database


Recommended Posts

H i ,

 

 

 

I am new bee please help me for this

 

 From which part of program the http://localhost/prestashop/category.php?id_category=136

 

its using ..

 

 

id_category=136  where the value 136 is given.. in which file ,folder  or the path its retrieving ..

 

Wheither they have maintained any file for all this things if yes please tell me the name of that file or folder..

 

 

Even if i click on header it will retrive based on id ,from where this id is retriveing

 

I want to change this id ..please help me...................

Link to comment
Share on other sites

i think that you're looking for this file:

controllers/front/CategoryController.php

 

I have searche there ,but i am unable to find  in that  any number which is 136 ...i want to know how its dynamically generating the value i.e 136 or any id ...from where its taking

Link to comment
Share on other sites

im confused a little, sorry

so you aren't looking for controller but you're looking for file where link is generated? 

 

ya normally we use  like this

 

 <div><a href='page2.php?id=2'> but in prestashop they are using

 

<a href="{$link->getProductLink($categoryProduct.id_product, $categoryProduct.link_rewrite, $categoryProduct.category, $categoryProduct.ean13)}" title="{$categoryProduct.name|htmlspecialchars}">

 

I am not getting this ,   from the above link $categoryProduct.id_product dynamically its changing the value.

 

In my url how i am getting 136 value as shown you above i.e (http://localhost/pre...p/category.php?id_category=136)

 

 

 

 

how it is changing the value can you explain me ..................?

Edited by sham064 (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...