Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Move caterogy description under products

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 05-13-2015, 10:36 PM
 
Roman Prisiazhniuk Roman Prisiazhniuk is offline
 

Member
  
Join Date: Apr 2015
Posts: 17
 

Default 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
__________________
xcart 4.4.1, 5
Reply With Quote
  #2  
Old 05-14-2015, 12:31 AM
 
Roman Prisiazhniuk Roman Prisiazhniuk is offline
 

Member
  
Join Date: Apr 2015
Posts: 17
 

Default Re: Move caterogy description under products

Also tell me please what table/record on DB enables/disables https?
__________________
xcart 4.4.1, 5
Reply With Quote
  #3  
Old 05-14-2015, 12:49 AM
 
Roman Prisiazhniuk Roman Prisiazhniuk is offline
 

Member
  
Join Date: Apr 2015
Posts: 17
 

Default Re: Move caterogy description under products

Im asking because after enabling https, admin page is not found
__________________
xcart 4.4.1, 5
Reply With Quote
  #4  
Old 05-14-2015, 01:42 AM
 
Roman Prisiazhniuk Roman Prisiazhniuk is offline
 

Member
  
Join Date: Apr 2015
Posts: 17
 

Default 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.
__________________
xcart 4.4.1, 5
Reply With Quote
  #5  
Old 05-14-2015, 10:25 PM
 
Roman Prisiazhniuk Roman Prisiazhniuk is offline
 

Member
  
Join Date: Apr 2015
Posts: 17
 

Default 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 ?
__________________
xcart 4.4.1, 5
Reply With Quote
  #6  
Old 05-18-2015, 05:42 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Move caterogy description under products

Hello Roman,

Thank you for your questions. Please, find answers below:
Quote:
Please tell me how can I move description under products on tihs page
http://www.squirrelpoker.co.uk/xcart...g-poker-tables
I cant do that because templates do not have weight

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:
Also tell me please what table/record on DB enables/disables https?
http://forum.x-cart.com/showpost.php?p=380876&postcount=17

Quote:
Also please tell me why header disappered on this page http://64.15.78.216/dev10/mymotoshie...-policy-a.html , also I see there is no top_menu.tpl on this page.

This question seems to be sorted out already.

Quote:
Next question is how can I find link for getting gift certificate in my store http://www.squirrelpoker.co.uk/xcart ?

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
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
  #7  
Old 05-18-2015, 06:32 AM
 
Roman Prisiazhniuk Roman Prisiazhniuk is offline
 

Member
  
Join Date: Apr 2015
Posts: 17
 

Default Re: Move caterogy description under products

ok, thanks
__________________
xcart 4.4.1, 5
Reply With Quote
  #8  
Old 11-11-2015, 07:53 AM
 
ant99 ant99 is offline
 

Advanced Member
  
Join Date: Mar 2015
Posts: 39
 

Default Re: Move caterogy description under products

Quote:
Originally Posted by tony_sologubov
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

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.
__________________
Ant

XC v5.3.1.8
Horizontal Flyout Categories Menu Module
CloudSearch / CloudFilters

XC v4.7.6
CloudSearch
Reply With Quote
  #9  
Old 11-20-2015, 08:26 AM
 
ant99 ant99 is offline
 

Advanced Member
  
Join Date: Mar 2015
Posts: 39
 

Default 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?
__________________
Ant

XC v5.3.1.8
Horizontal Flyout Categories Menu Module
CloudSearch / CloudFilters

XC v4.7.6
CloudSearch
Reply With Quote
  #10  
Old 11-21-2015, 09:59 PM
 
ant99 ant99 is offline
 

Advanced Member
  
Join Date: Mar 2015
Posts: 39
 

Default 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:
public static function runBuildCacheHandler()
{
        
parent::runBuildCacheHandler();

    
// remove category description from the top of each category
    
\XLite\Core\Layout::getInstance()->removeClassFromList(
        
'XLite\View\Category''center', \XLite\Model\ViewList::INTERFACE_CUSTOMER
    
);


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:
 * @ListChild (list="center.bottom"weight="300"

That should do it. Hopefully this is the right implementation that Tony intended. It seems to be working perfectly.
__________________
Ant

XC v5.3.1.8
Horizontal Flyout Categories Menu Module
CloudSearch / CloudFilters

XC v4.7.6
CloudSearch
Reply With Quote

The following user thanks ant99 for this useful post:
razortw (11-22-2015)
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:41 PM.

   

 
X-Cart forums © 2001-2020