Post by taltenweg » Fri Jan 26, 2018 5:05 pm

Hi all,
I try to extend my order_info.twig to have the shipping address available in single elements like e.g. shipping_firstname.
Background I have added a Button on the order_info twig that need some elements of shipping address as parameters in the URL.

So far my code is working, button is getting shown, on click the DHL Page is opening, my parameters are in, but now I need the shipping address, I try some ways but nothing helped.
if (json['success']) {
storename = "SeidigSeifen";
storestreet = "Soonwaldstr. ";
storestreetNR = "39";
storeZIP = "55595";
storecity = "Winterbach";
standardpackage = "PAK02";
window.open("https://www.dhl.de/popweb/gw2/web/Produ ... seProduct=" + standardpackage + "&formModel.sender.name=" + storename + "&formModel.sender.street=" + storestreet + "&formModel.sender.houseNumber=" + storestreetNR + "&formModel.sender.zip=" + storeZIP + "&formModel.sender.city=" + storecity , "_blank");
}

what I need is the following,
&formModel.receiver.name='.$shipping_firstname.'.$shipping_lastname.'
&formModel.receiver.street='.$streetName.'
&formModel.receiver.houseNumber='.$streetNumber.'
&formModel.receiver.zip='.$shipping_postcode.'
&formModel.receiver.city='.$shipping_city.'
&formModel.receiver.email='.$email.'

On the Order Info Page the Shipping Address is displayed allready but I can't get it as singel elements.
Can anybody help me with this?

Thanks for any hint,
Thomas

Newbie

Posts

Joined
Fri Aug 10, 2012 1:35 am

Post by taltenweg » Fri Jan 26, 2018 6:52 pm

Hi all, I have resolved the problem.

Thx Thomas

Newbie

Posts

Joined
Fri Aug 10, 2012 1:35 am
Who is online

Users browsing this forum: MrPhil and 16 guests