Jump to content

How to know the products listed in home?


Recommended Posts

I know the following code, to read products of listings, categories, searches etc.

$listing = $this->context->smarty->getTemplateVars('listing');
$products = $listing['products'];

I have used it at home and it does not show me any, I guess the problem is the modules that show the products.
If I use generic template, I can see new, featured products.
If I use template and extra modules I can't see those products,
Is there any way?

Link to comment
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...