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

XC5 Homepage layout

 
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)
 
Thread Tools Search this Thread
  #11  
Old 03-11-2014, 02:41 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

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

Default Re: XC5 Homepage layout

Quote:
I could not get it to work after updating the cahce the css did not appear in the homepage, do you have the full Content.php file please.

Yes, sure. It will look like this:
Code:
<?php namespace XLite\Module\Tony\HomePageWithoutSidebar\View; class Content extends \XLite\View\Content implements \XLite\Base\IDecorator { protected function isSidebarFirstVisible() { if ('main' == $this->getTarget()) { $return = false; } else { $return = parent::isSidebarFirstVisible(); } return $return; } public function getJSFiles() { $result = parent::getJSFiles(); if ('main' == $this->getTarget()) { $result[] = 'modules/Tony/HomePageWithoutSidebar/css/css.css'; } return $result; } }

Please do not forget to add the following CSS file:
skins/default/en/modules/Tony/HomePageWithoutSidebar/css/css.css
Reply With Quote
  #12  
Old 03-11-2014, 09:22 AM
  RichieRich's Avatar 
RichieRich RichieRich is offline
 

X-Adept
  
Join Date: Sep 2004
Location: London, England
Posts: 750
 

Default Re: XC5 Homepage layout

yes thats how i had the file, the sidebar hides but the css does not show even in the html
__________________
Richard


Ultimate 5.4 testing
Reply With Quote
  #13  
Old 03-11-2014, 12:42 PM
  RichieRich's Avatar 
RichieRich RichieRich is offline
 

X-Adept
  
Join Date: Sep 2004
Location: London, England
Posts: 750
 

Default Re: XC5 Homepage layout

Is some javascript in the sidebar? because when this module is active, the homepage cart drop-down and homepage quick-look popup do not work
__________________
Richard


Ultimate 5.4 testing
Reply With Quote
  #14  
Old 03-12-2014, 09:31 AM
 
mworsnop mworsnop is offline
 

Senior Member
  
Join Date: Mar 2014
Posts: 140
 

Default Re: XC5 Homepage layout

Quote:
Originally Posted by tony_sologubov
Yes, RichieRich is right, you can achieve it by editing the Front page in admin area.

I am not able to make links work on the front page editor. The icon to enter a link is disabled. If I enter the code manually it does not work.
__________________
Mark Worsnop

vers 5.3.3
Reply With Quote
  #15  
Old 03-12-2014, 12:41 PM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

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

Default Re: XC5 Homepage layout

Quote:
Originally Posted by RichieRich
yes thats how i had the file, the sidebar hides but the css does not show even in the html

Do you have your dev installation publicly available? It would be interesting to check your page's HTML code.

Quote:
Is some javascript in the sidebar? because when this module is active, the homepage cart drop-down and homepage quick-look popup do not work

That's odd, because my local installation works just fine with this mod enabled.
Reply With Quote
  #16  
Old 03-12-2014, 12:43 PM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

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

Default Re: XC5 Homepage layout

Quote:
Originally Posted by mworsnop
I am not able to make links work on the front page editor. The icon to enter a link is disabled. If I enter the code manually it does not work.

You should select some text and then the link icon will be highlighted. Please, try this out.
Reply With Quote
  #17  
Old 03-12-2014, 01:22 PM
 
mworsnop mworsnop is offline
 

Senior Member
  
Join Date: Mar 2014
Posts: 140
 

Default Re: XC5 Homepage layout

OK That works, thank you!
__________________
Mark Worsnop

vers 5.3.3
Reply With Quote
  #18  
Old 03-14-2014, 10:38 AM
  RichieRich's Avatar 
RichieRich RichieRich is offline
 

X-Adept
  
Join Date: Sep 2004
Location: London, England
Posts: 750
 

Default Re: XC5 Homepage layout

Quote:
Originally Posted by tony_sologubov




That's odd, because my local installation works just fine with this mod enabled.

Yes correct was my error I must have changed something, re-installed and it worked again
__________________
Richard


Ultimate 5.4 testing
Reply With Quote
  #19  
Old 03-20-2014, 05:43 AM
  RichieRich's Avatar 
RichieRich RichieRich is offline
 

X-Adept
  
Join Date: Sep 2004
Location: London, England
Posts: 750
 

Default Re: XC5 Homepage layout

On the product page, related products will display in 5-columns as there is no left-nav.

How can I acheive the same thing in this case on the homepage where I have the left-nav disabled.
__________________
Richard


Ultimate 5.4 testing
Reply With Quote
  #20  
Old 05-06-2014, 06:54 PM
 
smartaleck smartaleck is offline
 

Newbie
  
Join Date: Apr 2014
Posts: 3
 

Default Re: XC5 Homepage layout

I'm using CSS to remove my side categories, and installed the module to have a look as well. I'll need to try some of the suggested changes so that it applies to the entire site instead of just the front page, but I'm wondering how to change the number of grid columns/products per row? I know Tony said that this can be changed in his module, but the code to do this is eluding me at the moment since this is my first attempt at some X-Cart 5 mods after switching over from Interspire Shopping Cart.

Can anyone point me in the right direction?
__________________
X-Cart 5.0.14 Mobile
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:58 AM.

   

 
X-Cart forums © 2001-2020