What is the shipping destinations loop in Orders module for?
Posted: Mon Feb 16, 2015 10:50 pm
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:
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.
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}
Ideally I would like to show the ordered items first, unrelated to the shipping address(es), and then the billing and shipping addresses.