Jump to content

Where to look for adding data in product list page

Recommended Posts

Hi everybody. I'm struggling trying to figure which files should I overidde in a module to allow me access the combinations data inside the smarty template of the products list.


Share this post

Link to post
Share on other sites
On 11/11/2019 at 11:42 PM, Atlasan said:

Thank you for your answer. I'm looking at this file but I can't figure out where to act.
Is there some piece of doc that explain the whole inclusions steps for eg. product listing, product details pages?
I tried following the custom module and theme steps, but than I get lost in knowing which classes of which files are actually executed.

Thank you in advance and sorrry for the newbie questions.

Let me explain what I would like to archive: at now modifying pieces of modules or themes files I can change ho to present the informations I have available in my templates, what I want is to add some custom data from the product listing and the product details controllers down to the template.
So i would have something like:

'--- in the controller ---
$myProd["myvar1"] = $myCustomData;

--- in the template ----
<b>Controller passing me:</b> {$product.myvar1}

So, where is the controller in a default case? (I assume that a module or a template can override it, and that's what I should do as well)

Thank you.

Edited by Atlasan (see edit history)

Share this post

Link to post
Share on other sites
  • 2 months later...

Finally, time later, I had to set up the debug tool and step by step find the way to do what I was trying to archive: getting the stock available for the combination and preventing the unavailable products to be displayed!!

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More