![]() |
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. |
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. |
Re: X5 - Creating a new ItemsList type
Thanks, I have it working.
In the class I have.... Code:
const DISPLAY_MODE_CLIENT = 'client'; Code:
/** In my theme I've created in customer/en/items_list/product/center/client/body.tpl Code:
<list name="itemsList.product.cart" /> 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. |
All times are GMT -8. The time now is 11:27 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.