| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
#1
|
|||||||||
|
|||||||||
If Home?
is there an if home statement?
__________________
xcart 5.1.2 |
|||||||||
#2
|
|||||||||
|
|||||||||
Re: If Home?
Please let us have a bit more details on what you want to achieve.
Do you want to check if it's the home page somewhere inside a custom template? What is the template?
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#3
|
|||||||||
|
|||||||||
Re: If Home?
Quote:
__________________
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. |
|||||||||
#4
|
|||||||||
|
|||||||||
Re: If Home?
There is no template variable that could say whether it is the home page, or not.
However, doing this check is a somewhat easy task. In your custom module/theme decorate \XLite\Controller\Customer\ACustomer class and add the following method: Code:
Now you can use this in any storefront template as follows (any of the following will work): 1. Code:
2. Code:
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
|
#5
|
|||||||||
|
|||||||||
Re: If Home?
I don't understand tis portion.
In your custom module/theme decorate \XLite\Controller\Customer\ACustomer class and add the following method: I have classes/XLiter/Module/TechChicks/ChampionSkin/Main.php Where do I put Code:
__________________
xcart 5.1.2 |
|||||||||
#6
|
|||||||||
|
|||||||||
Re: If Home?
Make a new class in your module that decorates the class.
Create: classes/XLite/Module/TechChicks/ChampionSkin/Controller/Customer/Customer.php Code:
__________________
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. |
|||||||||
|
|
|||
X-Cart forums © 2001-2020
|