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

4 product column on main page. how?

 
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 10-04-2014, 11:46 PM
  dagdag's Avatar 
dagdag dagdag is offline
 

Advanced Member
  
Join Date: Sep 2014
Location: Volgograd
Posts: 70
 

Default 4 product column on main page. how?

I disable TopCategories (in CustomSkin\View, function isVisible() return false) and get a blank column on the left.

Рlease tell me, how do I remove from anywhere conclusion of this empty space, and the products on the main page to display in four columns, the entire width of the template?

Thank you very much in advance.
__________________
my wife's shop
Reply With Quote
  #2  
Old 10-05-2014, 05:43 AM
  dagdag's Avatar 
dagdag dagdag is offline
 

Advanced Member
  
Join Date: Sep 2014
Location: Volgograd
Posts: 70
 

Default Re: 4 product column on main page. how?

PhilJ, if the answer to my question is in the FAQ - please give a link to it.
__________________
my wife's shop
Reply With Quote
  #3  
Old 10-05-2014, 08:06 AM
 
JannieB JannieB is offline
 

Senior Member
  
Join Date: Sep 2004
Posts: 117
 

Default Re: 4 product column on main page. how?

The only way I got this to work was by setting the max number of columns from 3 to 4.

I did this by adding a class in my custom module like this:

Code:
abstract class GridColumns extends \XLite\View\ItemsList\Product\Customer\Category\ACustomer implements \XLite\Base\IDecorator { const GRID_COLUMNS_MAX = 4; protected function defineWidgetParams() { parent::defineWidgetParams(); $this->widgetParams[static::PARAM_GRID_COLUMNS] = new \XLite\Model\WidgetParam\Set('Number of columns (for Grid mode only)', 4, true, $this->getGridColumnsRange()); } }

However this will affect all pages (which is what I wanted), not just the home page.

Jan
__________________
Jan Beesley
(Currently Xcart 5
Previously XCart Gold from 3.5....)
Reply With Quote
  #4  
Old 10-05-2014, 05:49 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: 4 product column on main page. how?

The best way to ditch the side column in X-cart 5 is to create a controller class that decorates XLite\View\Controller and redefines the getSidebarFirstHiddenTargets() method.

Here is an example from my new Magnifico theme:
Code:
namespace XLite\Module\Guru\Magnifico\View; /** * Controller main widget * */ class Controller extends \XLite\View\Controller implements \XLite\Base\IDecorator { /** * Define the pages where first sidebar will be hidden. * * @return array */ protected static function getSidebarFirstHiddenTargets() { $hiddenTargets = []; $hiddenTargets[] = 'main'; return array_merge( parent::getSidebarFirstHiddenTargets(), $hiddenTargets ); } }

This will remove the sidebar from the target "main" (home page) only.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
qualiteam (10-10-2014)
  #5  
Old 10-09-2014, 10:01 PM
  dagdag's Avatar 
dagdag dagdag is offline
 

Advanced Member
  
Join Date: Sep 2014
Location: Volgograd
Posts: 70
 

Default Re: 4 product column on main page. how?

Thanks (((

I removed X-Cart. It's too complicated for me. What other products made ​​by simply changing the settings, in the X-Cart programming required on a whim, since there is no documentation.

To be honest, it's easier to write from scratch online store, than to understand the X-Cart.
__________________
my wife's shop
Reply With Quote
  #6  
Old 10-09-2014, 10:24 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 13,734
 

Default Re: 4 product column on main page. how?

You should take a look at XC4 - a lot more easier to work with and tons of modules and help on the forums - https://www.x-cart.com/pricing.html
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #7  
Old 10-18-2014, 04:52 PM
  cherie's Avatar 
cherie cherie is online now
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,532
 

Default Re: 4 product column on main page. how?

Quote:
Originally Posted by cflsystems
XC4 ... a lot more easier to work with
Ouch! So much for the new version.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #8  
Old 10-19-2014, 07:42 AM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: 4 product column on main page. how?

I'd like it to just affect the Category List, any suggestions?
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote
  #9  
Old 10-19-2014, 06:57 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: 4 product column on main page. how?

Quote:
Originally Posted by minfinger
I'd like it to just affect the Category List, any suggestions?
Try using my example above, I believe the target you want is simply "category".
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:42 AM.

   

 
X-Cart forums © 2001-2020