Jump to content

[Checkout] Merge/Combine Address & Shipping Steps during checkout


xiparos

Recommended Posts

Hi Prestashop members,

 

Could you please help me deal with the following problem : 

 

Can Prestashop merge/combine Address step with Shipping step ?

 

Precisely, when customer click checkout button in cart summary page, it redirects to the page where address informations + shipping options display, customer can verify delivery and billing addresses, choose carrier and check agreement checbox, then aheads to payment page.

 

I've discovered some clues in OrderController.php, as in initContent() method for example.

case 1:
				$this->_assignAddress();
				$this->processAddressFormat();
				if (Tools::getValue('multi-shipping') == 1)
				{
					$this->_assignSummaryInformations();
					$this->context->smarty->assign('product_list', $this->context->cart->getProducts());
					$this->setTemplate(_PS_THEME_DIR_.'order-address-multishipping.tpl');
				}
				else
					$this->setTemplate(_PS_THEME_DIR_.'order-address.tpl');
			break;

			case 2:
				if (Tools::isSubmit('processAddress'))
					$this->processAddress();
				$this->autoStep();
				$this->_assignCarrier();
				$this->setTemplate(_PS_THEME_DIR_.'order-carrier.tpl');
			break;

I think in case 1, the method should be changed to _assignAddressAndCarrier(), in which the logic of _assignAddress() and _assignCarrier() would be called, and redirect to a template containing the content of order_address.tpl + order_carrier.tpl.

 

Do I miss something to complete this customisation ?

 

Thanks in advance for your advice.

 

Best Regards

Link to comment
Share on other sites

  • 2 months later...
  • 11 months later...
  • 1 year later...
  • 7 months later...

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...