Jump to content

Remove right column during the 5 order steps of the cart


Recommended Posts

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

post-527997-0-45746400-1376902129_thumb.jpg

Link to comment
Share on other sites

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

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

Thanks for your effort and patience.

 

I have checked again and no, there is no controllers directory in the Paypal module (See attached image).

post-527997-0-12003800-1376990815_thumb.jpg

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)

post-527997-0-56656500-1376990823_thumb.jpg

 

When I compare the code to the page (see attached image) post-527997-0-67570800-1376990834_thumb.jpg, 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 by Oliforum (see edit history)
Link to comment
Share on other sites

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

thanks pascal for css solution

i just wondering where are controllers from module in this case :|

 

 

in the root dir of prestashop should be:

ZgGbO2U.png

 

in the path: controllers/front/ you should find file: confirm.php

 

qfBbPaO.png

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

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

  • 1 month later...

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

  • 2 weeks later...

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

  • 5 weeks later...

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...