| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Navbar on Checkout page | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Navbar on Checkout page
Does anybody know how to turn the navbar and minicart on the checkout page? I'm sure this is easily accomplished, just not sure which file to find it in. I've been looking, but haven't found what controls it yet.
__________________
Ver 5.2.6 |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Navbar on Checkout page
Hello Phil,
If you want to display all standard navbars on checkout page, then you can decorate the isCheckoutLayout() method of the \XLite\Controller\Customer\ACustomer class and define it as false. It should do the trick. Tony
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
#3
|
|||||||
|
|||||||
Re: Navbar on Checkout page
Quote:
__________________
Ver 5.2.6 |
|||||||
#4
|
|||||||||
|
|||||||||
Re: Navbar on Checkout page
Phil,
Do you know how to decorate a class in your own module? If not watch some of my tutorials on the subject. (Link in sig) That should get you warmed up. After you have your module setup and going you want to decorate the class that Tony referenced above. Then include this in the code of your decorated class. This should be the only method that you have to define in your class, otherwise the file will be empty except for opening tag, namespace and opening class defintion: 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. |
|||||||||
#5
|
|||||||||
|
|||||||||
Re: Navbar on Checkout page
@Phil,
You may also want to check the KB guide about decoration here: http://kb.x-cart.com/display/XDD/Step+3+-+applying+logic+changes If you still have questions after reading and watching, do not be confused and just ask us here. I will be glad to explain the concept in more details if needed. Tony
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
#6
|
|||||||
|
|||||||
Re: Navbar on Checkout page
Quote:
<?php namespace XLite\Module\Pmall\PmallSkin\Controller\Customer; abstract class ACustomer extends \XLite\Controller\AController implements \XLite\Base\IDecorator { public function isCheckoutLayout() { return false; } }
__________________
Ver 5.2.6 |
|||||||
#7
|
|||||||||
|
|||||||||
Re: Navbar on Checkout page
What is the name of the file? Is it ACustomer.php? Is it saved in the directory XLite/Module/Pmall/PmallSkin/Controller/Customer/? Does it show up in the var/run after rebuild?
__________________
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. |
|||||||||
#8
|
|||||||||
|
|||||||||
Re: Navbar on Checkout page
Oh, I see what is wrong. Your are not extending the right class. You are extending the class that the original ACustomer class extended. You want to extend ACustomer
__________________
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. |
|||||||||
#9
|
|||||||||
|
|||||||||
Re: Navbar on Checkout page
Here is my functioning code:
Code:
I hope it helps.
__________________
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. |
|||||||||
|
#10
|
|||||||
|
|||||||
Re: Navbar on Checkout page
Thank you mike
__________________
Ver 5.2.6 |
|||||||
|
|||
X-Cart forums © 2001-2020
|