| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Specific Category on Home Page | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Specific Category on Home Page
I would like to display a specific category of products on the home page. I wish to embed the code in the welcome.tpl file where it will lay out where I want the products to display. I am having trouble locating code that will allow this. Can anyone help?
|
|||||||
#2
|
|||||||||
|
|||||||||
Re: Specific Category on Home Page
Hello!
"\XLite\View\ItemsList\Product\Customer\Category\M ain" is the base widget that renders the list of products from a category. It has PARAM_CATEGORY_ID parameter, so I believe you can render it for a specific category from a template file (however, I'm not sure for 100% as it may take some parameters from the request and from the controller that handles the current "target"). The code could be as follows (I haven't tried it): Code:
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#3
|
|||||||
|
|||||||
Re: Specific Category on Home Page
This is for x-cart 4.6.3. It looks like the code you posted above may be for litecommerce?
|
|||||||
#4
|
|||||||||
|
|||||||||
Re: Specific Category on Home Page
Opps... Yes, you're right. The code above is for X-Cart 5.
I believe doing this in X-Cart 4 is a more complex task than adding a few lines into the template file. I'm not sure if I can give you a detailed instruction, though.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
|
|||
X-Cart forums © 2001-2020
|