![]() |
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.
|
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 |
Re: Navbar on Checkout page
Quote:
|
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:
/** |
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 |
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; } } |
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?
|
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
|
Re: Navbar on Checkout page
Here is my functioning code:
Code:
<?php I hope it helps. |
Re: Navbar on Checkout page
Thank you mike
|
All times are GMT -8. The time now is 12:13 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.