Oliforum Posted August 19, 2013 Share Posted August 19, 2013 Hello, During the 5 steps of the order (summary, login, address, shipping, payment) and also at the order confirmation (after payment), The Left column does disappear (O.K for me) but the RIGHT does not disappear (esthetic problem for me). I would like to REMOVE the RIGHT column ONLY during the 5 steps of the order + at the order confirmation. I only have two active modules on the right column : New products and PayPal module. Please help with clear explanations (I am not an computer specialist). A copy paste of codes would be perfect. Thanks. Olivier Link to comment Share on other sites More sharing options...
vekia Posted August 19, 2013 Share Posted August 19, 2013 open the orderController.php file in function: public function init() add this code: $this->display_column_right = false; 1 Link to comment Share on other sites More sharing options...
Oliforum Posted August 19, 2013 Author Share Posted August 19, 2013 Hello Vekia, Thanks you very much for your answer. Adding the above code in the orderController.php (actually after "parent::init();" - otherwise server error-) works fine for the 5 steps. In order to remove the right column after that the payment has been made (at order confirmation), I tried to do exactly the same in the OrderConfirmationController.php, but does not seems to do any change. I can I do that ? Last thing about this topic : Still at the order confirmation page, I would like also to remove the 5-step yellow bar (identification - adresses - etc.) that still appears on the top of the confirmation message. It is just useless. Link to comment Share on other sites More sharing options...
vekia Posted August 19, 2013 Share Posted August 19, 2013 for payment step: in this case you have to edit each payment controller. Just open each payment module that you use, search for payment step controller and append the same code as above. Link to comment Share on other sites More sharing options...
Oliforum Posted August 19, 2013 Author Share Posted August 19, 2013 Well, I just have Paypal. I went to modules/Paypal. Nothing about payment. There are only 4 php files : paypal_install.php paypal_logos.php paypal_orders.php paypal_tools.php There are no "public function init()" or "parent::init()" in these files. I have been trying with the last two, but it does not work. I need more precision (what code and where to put it). Everything is like chinese for me. Thanks for your comprehension. Link to comment Share on other sites More sharing options...
vekia Posted August 19, 2013 Share Posted August 19, 2013 and you haven't got /controllers/ directory in your paypal module? can you check it? Link to comment Share on other sites More sharing options...
Oliforum Posted August 20, 2013 Author Share Posted August 20, 2013 (edited) Thanks for your effort and patience. I have checked again and no, there is no controllers directory in the Paypal module (See attached image). There is no also trace of Paypal in the controllers main directory. I do not see why it would be the PayPal module that displays the right column. Before creating this topic in the forum, I searched online for clues and there is a file that I suspect to be responsible for that : It is the "order-confirmation.tpl" in the Theme directory (here prestashop). (See attached image) When I compare the code to the page (see attached image) , I suspect they are related. Is it this file that we should consider ? 1. To remove the right column. 2. To remove the yellow bar of the order steps. There are some "hook" and I don't know where it points to. Thank you. What we have managed to do so far is already great for me. Edited August 20, 2013 by Oliforum (see edit history) Link to comment Share on other sites More sharing options...
PascalVG Posted August 21, 2013 Share Posted August 21, 2013 Hi Oliforum, Edit your themes/<your theme folder>/css/global.css file (probably around line 670) Find the code below and add these 2 red lines. These will hide the right column and the steps block at the top of the confirmation page. /* ************************************************************************************************ PAIMENT - PAGE ORDER ************************************************************************************************ */ /* nav bottom ********************************************************************************** */ #order #left_column , #order-confirmation #left_column {display:none} #order #center_column, #order-confirmation #center_column{width:757px} #order-confirmation #right_column{display: none} #order-confirmation #order_step{display:none} Hope this helps, pascal Link to comment Share on other sites More sharing options...
vekia Posted August 21, 2013 Share Posted August 21, 2013 thanks pascal for css solution i just wondering where are controllers from module in this case :| in the root dir of prestashop should be: in the path: controllers/front/ you should find file: confirm.php this is the confirmation controller, you've got there function: class PayPalConfirmModuleFrontController extends ModuleFrontController { public $display_column_left = false; public function initContent() { if (!$this->context->customer->isLogged() || empty($this->context->cart)) Tools::redirect('index.php'); parent::initContent(); $this->paypal = new PayPal(); $this->context = Context::getContext(); $this->id_module = (int)Tools::getValue('id_module'); $currency = new Currency((int)$this->context->cart->id_currency); $this->context->smarty->assign(array( 'form_action' => PayPal::getShopDomainSsl(true, true)._MODULE_DIR_.$this->paypal->name.'/express_checkout/payment.php', 'total' => Tools::displayPrice($this->context->cart->getOrderTotal(true), $currency), 'logos' => $this->paypal->paypal_logos->getLogos(), 'use_mobile' => (bool)$this->paypal->useMobile() )); $this->setTemplate('order-summary.tpl'); } } as you can see there is $display_column_left = false; you can also use the same definition for right column. Link to comment Share on other sites More sharing options...
Oliforum Posted August 22, 2013 Author Share Posted August 22, 2013 Hello, Thanks for your efforts. Please note : - I am running prestashop on 1.5.4.1 version. - My PayPal (only one payment system) is 3.5.8 version. - My new product module is only hooked to "Right colum" and "Header of pages" 1. Regarding PascalVG proposal. I have correctly find the file and updated it as showed, but it does not produced any change. I have changed the synthax to be the same as the 2 lines above (the coma, etc.), but it does not produced any change. 2. Regarding Vekia proposal : In the controllers/front directory, I have 42 php file and there is nothing in common in comparaison to the 4 files you show. Are you running on 1.5.4.1 ? However, one is called OrderConfirmationController.php See attached file.OrderConfirmationController.pdf I had already tried to change it with the code you propose, but there is no change. Also, when I delete this file...there is no change on the page. So I suspect it is not related to the page. Maybe it is related to the email confirmation that is sent after the payment. Can anyone confirm? What file is really responsible for the order confirmation page (the page after the payment is done) ? If you have any other ideas, I will be happy to explore them. Thanks Link to comment Share on other sites More sharing options...
benjamin utterback Posted September 24, 2013 Share Posted September 24, 2013 Hello all, this is just to let you know that the PayPal Module is updated to 3.6. You can download it here http://addons.prestashop.com/en/payments-gateways-prestashop-modules/1748-paypal.html Make sure to always have a backup of your files before you update modules. Do not hesitate to leave feedback about the module and if you have any issues, we can work together to solve them. Cheers, -Benjamin Link to comment Share on other sites More sharing options...
Oliforum Posted October 7, 2013 Author Share Posted October 7, 2013 This topic can be closed. Paypal hs been updated but no change. 80% of the solution has been found in adding, in the orderController.php file, after the "public init" line, the following code : $this->display_column_right = false; However, no solution has been found to remove the right column at the confirmation order page. This topic can be closed. Thanks Link to comment Share on other sites More sharing options...
Shad86 Posted November 5, 2013 Share Posted November 5, 2013 Hello guys, I have the same problem and I would like to fix it. after the Paypal checkout is the order confirmation page. There is only the right column and i want to hide it. And if it´s possible, the 5 order steps too. I´ve tried to change the confirm.php in modules/paypal/controllers/front but nothing happens. Same with the bill payment. All others are ok. No left and no right column. I hope anyone can help me, it seems like the last problem before getting online with the shop... Link to comment Share on other sites More sharing options...
vekia Posted November 5, 2013 Share Posted November 5, 2013 what you tried to change ? have you tried to use code mentioned in post #2 in controller init function? Link to comment Share on other sites More sharing options...
Shad86 Posted November 5, 2013 Share Posted November 5, 2013 (edited) Ok the columns in the bill orders are away now. Should I post how I got it? And yes I´ve tried to change the ordercontroller.php and the confirm.php in the paypal directory. But no changes. Edited November 5, 2013 by Shad86 (see edit history) Link to comment Share on other sites More sharing options...
Shad86 Posted November 5, 2013 Share Posted November 5, 2013 Sorry for the double post but I´ve got it. It´s the submit.php in modules/paypal/controllers/front Just add the "public $display_column_right = false;" in line 35 and it´s away. Now only same make-up with css and everything is fine. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now