![]() |
Move caterogy description under products
Please tell me how can I move description under products on tihs page
http://www.squirrelpoker.co.uk/xcart/poker-tables-folding-poker-tables I cant do that because templates do not have weight |
Re: Move caterogy description under products
Also tell me please what table/record on DB enables/disables https?
|
Re: Move caterogy description under products
Im asking because after enabling https, admin page is not found
|
Re: Move caterogy description under products
Also please tell me why header disappered on this page http://64.15.78.216/dev10/mymotoshield/essential-sample-policy-a.html , also I see there is no top_menu.tpl on this page.
|
Re: Move caterogy description under products
Next question is how can I find link for getting gift certificate in my store http://www.squirrelpoker.co.uk/xcart ?
|
Re: Move caterogy description under products
Hello Roman,
Thank you for your questions. Please, find answers below: Quote:
Right, weight of the \XLite\View\Category -- the viewer class that controls needed template -- is not defined and it is assumed as the highest value. However, the way you want to achieve needed result is to move the \XLite\View\Category viewer to the view list called "center.bottom" and define the weight as 300. Here is a guide how to do that: http://kb.x-cart.com/display/XDD/Step+2+-+applying+design+changes Quote:
Quote:
This question seems to be sorted out already. Quote:
Please contact the module developer about this question. His contact info is here: http://www.x-cart.com/extensions/addons/gift-certificates.html Finally, Roman, may I please ask you to post new questions to new threads? It would be easier for community to learn from such dedicated threads rather than from one big thread that is filled with variety of questions. Thank you. Tony |
Re: Move caterogy description under products
ok, thanks
|
Re: Move caterogy description under products
Quote:
Hi Tony, I am trying to move the description to the bottom of the subcategories as in this thread. I don't quite understand where to modify the view list and define the weight as 300. Where should this code be placed? And what should it look like? I went through the knowledge base article that you linked to, but could not figure out how to apply it to this example. Thanks for your help. |
Re: Move caterogy description under products
Is anyone active on this message board? Does anyone know how I can move the category description to the bottom of the page instead of at the top of the page?
|
Re: Move caterogy description under products
I was able to figure this out so I thought I would help someone who may be looking for a more specific answer to this thread. In order to move the category description from the top to the bottom of subcategories, you need to first remove the 'XLite\View\Category' class from the 'center' list.
To do this, edit the Main.php file of your module by including the following: PHP Code:
Next you need to add the 'category_description.tpl' template to the 'center.bottom' list. To do this, edit 'category_description.tpl' and add the following ListChild declaration in the header comments: PHP Code:
That should do it. Hopefully this is the right implementation that Tony intended. It seems to be working perfectly. |
Re: Move caterogy description under products
Actually, the changes should not be implemented to the core X-Cart files like the Main.php file. The code should be implemented within a custom module's Main.php file.
|
Re: Move caterogy description under products
For example, you can use "Custom Skin" module to implement the necessary code changes related to widgets. For example, in our case, the PHP code suggested by Ant, should be implemented in classes/XLite/Module/XC/CustomSkin/Main.php file.
|
Re: Move caterogy description under products
That's correct. I stated "the Main.php file of your module". Sorry I was not specific enough, but thanks for clarifying seyfin.
|
Re: Move caterogy description under products
It turns out there was a bug that I didn't catch in that first implementation. It will break static pages that do not have a category description, because it tries to call "getDescription()" from the list "center.bottom".
Here is the correct implementation. First you need to create "Category.php" in your custom module directory (i.e. - XLite/Module/XC/CustomSkin/View/Category.php) and define the ListChild to insert the widget in center.bottom. Notice the weight of 800. This is so that the description appears at the very bottom of the category pages (beneath featured products if there are any). PHP Code:
Then we have a problem that the category description is still appearing at the top in addition to appearing at the bottom. We need to remove the class from the "center" list. In your custom module's Main.php file (i.e. - XLite/Module/XC/CustomSkin/Main.php) add the following code. PHP Code:
|
All times are GMT -8. The time now is 09:11 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.