X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   XC5 Homepage layout (https://forum.x-cart.com/showthread.php?t=68702)

tony_sologubov 03-11-2014 02:41 AM

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

RichieRich 03-11-2014 09:22 AM

Re: XC5 Homepage layout
 
yes thats how i had the file, the sidebar hides but the css does not show even in the html

RichieRich 03-11-2014 12:42 PM

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

mworsnop 03-12-2014 09:31 AM

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.

tony_sologubov 03-12-2014 12:41 PM

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.

tony_sologubov 03-12-2014 12:43 PM

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.

mworsnop 03-12-2014 01:22 PM

Re: XC5 Homepage layout
 
OK That works, thank you!

RichieRich 03-14-2014 10:38 AM

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

RichieRich 03-20-2014 05:43 AM

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.

smartaleck 05-06-2014 06:54 PM

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?


All times are GMT -8. The time now is 11:12 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.