What is the shipping destinations loop in Orders module for?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
10010110
Translator
Translator
Posts: 224
Joined: Tue Jan 22, 2008 9:57 am

What is the shipping destinations loop in Orders module for?

Post 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.
User avatar
chrisbt
Dev Team Member
Dev Team Member
Posts: 205
Joined: Sun Sep 05, 2010 6:11 am

Re: What is the shipping destinations loop in Orders module

Post 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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: What is the shipping destinations loop in Orders module

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
10010110
Translator
Translator
Posts: 224
Joined: Tue Jan 22, 2008 9:57 am

Re: What is the shipping destinations loop in Orders module

Post by 10010110 »

OK, makes sense. Thank you for your replies. :)
Post Reply

Return to “Modules/Add-Ons”