Page 1 of 1

What is the shipping destinations loop in Orders module for?

Posted: Mon Feb 16, 2015 10:50 pm
by 10010110
In the order related templates of the Orders module there is a loop to retreive multiple shipping destinations. Apparently there is a way to have that that I haven’t found yet (is this with registered users’ profile settings or something)?

Now, in the order confirmation template there is the ordered items table inside the destinations loop:

Code: Select all

{foreach from=$order_obj->get_destinations() item='destination'}
	…
	…
	{foreach from=$destination->get_items() item='item'}
		…
	{/foreach}
{/foreach}
Does that mean there is also a way to order various items and set them up to ship to different locations within the same order? How is that done in reality? And is there a way to reliably prevent people from doing such things?

Ideally I would like to show the ordered items first, unrelated to the shipping address(es), and then the billing and shipping addresses.

Re: What is the shipping destinations loop in Orders module

Posted: Tue Feb 24, 2015 6:27 pm
by chrisbt
I believe to have multiple shipping addresses you would need to use a different 'Cart' module, e.g. GiftBaskets. I haven't tried it so can't confirm.

I always just leave the multiple destinations loop there, and output the items with that loop. There is only ever be one destination output so it's never an issue.

Re: What is the shipping destinations loop in Orders module

Posted: Tue Feb 24, 2015 6:46 pm
by calguy1000
Correct.
The GiftBaskets module allows you to create in one order different baskets with different shipping destinations.

Therefore, during the billing stage you can enter/modify the addresses for each destination, and confirm them on the confirmation page.

Re: What is the shipping destinations loop in Orders module

Posted: Wed Feb 25, 2015 7:51 am
by 10010110
OK, makes sense. Thank you for your replies. :)