invoice and delivery address in checkout

  • Posts: 14
  • Thank you received: 0
11 years 8 months ago #125868

-- HikaShop version -- : 2.2.1 business
-- Joomla version -- : 2.5.7
-- PHP version -- : 5.3

Hi,

In the checkout procedure, at the final step, i would like to show the invoice adres and the delivery address (no changeable).
Status only gives the chosen delivery method, but not the delivery address.
How can i retreive de invoice address and the delivery address of my order? (A bit like you can see in the 'order' overview)


greetings,

Vincent

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 8 months ago #125871

Hi,

The best solution will probably be to add the "address" action gain at the last step of your checkout workflow through "Hikashop->System->Configuration->Checkout".

Please Log in or Create an account to join the conversation.

  • Posts: 14
  • Thank you received: 0
11 years 8 months ago #125873

that will not give me the actual delivery address : I see the checkbox that delivery address is same as invoice address, and the delivery methode i choose. But it will not give me the actual delivery address

Please Log in or Create an account to join the conversation.

  • Posts: 26251
  • Thank you received: 4040
  • MODERATOR
11 years 8 months ago #125936

Hi,

Right.
There is no "step" for just displaying the address status. But it is a good idea that I noted in our TODO list.

With HikaShop 2.2.2 it is possible to create new checkout step using plugin.
You can also add code in the view "checkout | step" in order to display the address manually.

These different solution will require some development and PHP skills.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 14
  • Thank you received: 0
11 years 7 months ago #128346

Is there some doucmentation on how to do that in 2.2.2 . I do have some development skills and php, but some help would be nice.

And if i put the code in the checkout/step view : where do i find the order data back, that holds the shipment and invoice data? I don't thnik the order is at that moment allready created in the database....

Please Log in or Create an account to join the conversation.

  • Posts: 26251
  • Thank you received: 4040
  • MODERATOR
11 years 7 months ago #128423

Hi,

Here some code from HikaMarket which uses the 4 triggers.
In your case, the 2 first triggers are useful (because you don't have any kind of validation).

class plgHikashopMarket extends JPlugin {
	public function onCheckoutStepList(&$list) {
		$list['plg.market.terms'] = 'HikaMarket ' . JText::_('HIKASHOP_CHECKOUT_TERMS');
	}

	public function onCheckoutStepDisplay($layoutName, &$html, &$view) {
		if($layoutName == 'plg.market.terms') {
			$params = new stdClass();
			$params->view = $view;
			$js = null;
			$html .= hikamarket::getLayout('checkoutmarket', 'terms', $params, $js);
		}
	}

	public function onBeforeCheckoutStep($controllerName, &$go_back, $original_go_back, &$controller) {
	}

	public function onAfterCheckoutStep($controllerName, &$go_back, $original_go_back, &$controller) {
		if($controllerName == 'plg.market.terms') {
			$checkoutClass = hikamarket::get('class.checkout');
			$checkoutClass->afterCheckoutStep($controllerName, $go_back, $original_go_back, $controller);
		}
	}
}
Hope it will help you.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.070 seconds
Powered by Kunena Forum