| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Move caterogy description under products | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||||
|
|||||||||
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.
__________________
Sincerely yours, Sergey Fomin X-Cart team Chief support group engineer === Check this out. Totally revamped X-Cart hosting http://www.x-cart.com/hosting.html Follow us: https://twitter.com/x_cart / https://www.facebook.com/xcart / https://www.instagram.com/xcart |
|||||||||
#12
|
|||||||||
|
|||||||||
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.
__________________
Sincerely yours, Sergey Fomin X-Cart team Chief support group engineer === Check this out. Totally revamped X-Cart hosting http://www.x-cart.com/hosting.html Follow us: https://twitter.com/x_cart / https://www.facebook.com/xcart / https://www.instagram.com/xcart |
|||||||||
#13
|
|||||||
|
|||||||
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.
__________________
Ant XC v5.3.1.8 Horizontal Flyout Categories Menu Module CloudSearch / CloudFilters XC v4.7.6 CloudSearch |
|||||||
#14
|
|||||||
|
|||||||
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:
__________________
Ant XC v5.3.1.8 Horizontal Flyout Categories Menu Module CloudSearch / CloudFilters XC v4.7.6 CloudSearch |
|||||||
|
|||
X-Cart forums © 2001-2020
|