| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
X5 - Creating a new ItemsList type | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
X5 - Creating a new ItemsList type
X-cart comes with three list types for products: Grid, List and Table
How do I get another list type? In the class I have this Code:
and I've added the tpl files with the other Itemslist tpl files. I can see further code in parent classes but I'm not sure what I need to edit.
__________________
Core version: 5.5.xx |
|||||||
#2
|
|||||||||
|
|||||||||
Re: X5 - Creating a new ItemsList type
Have a look at the getCenterDisplayModes() method of the \XLite\View\ItemsList\Product\Customer\ACustomer class.
It should give you a clue.
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
#3
|
|||||||
|
|||||||
Re: X5 - Creating a new ItemsList type
Thanks, I have it working.
In the class I have.... Code:
Code:
In my theme I've created in customer/en/items_list/product/center/client/body.tpl Code:
For some reason the list name="info" and list name="photo" weren't working like in the other three Itemlists but I prefer to have all the code in one template as above anyway. I'm using this to make my own template to put related products in a tab and make it nicely responsive. If anyone else does this.. you might not see a change until you have deleted cookies.
__________________
Core version: 5.5.xx |
|||||||
|
|
|||
X-Cart forums © 2001-2020
|