| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
this.isCheckoutLayout() to also hide on view cart | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
this.isCheckoutLayout() to also hide on view cart
I have also been searching the forums but to no avail with this as well.
We have a menu on our site that is shown on all pages - but we would not like them shown on view cart AND checkout. I found that using this PHP Code:
works to hide everything from the final check out, but we were also looking to hide everything from the view cart page as well. Any info on what the correct code would be for that? thanks! |
|||||||
#2
|
|||||||||
|
|||||||||
Re: this.isCheckoutLayout() to also hide on view cart
To check if it is the cart page you can use the following code in your View class:
PHP Code:
This way you don't need any checks in the template of your menu widget - isVisible() method will make it disappear on checkout and cart pages.
__________________
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 |
|||||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|