Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > don't show shipping address if it is empty View modes: 
User avatar
Certified Developer 8
Certified Developer 8
jao - 9/25/2013 3:25:47 PM
   
don't show shipping address if it is empty
Is it possible to hide the shipping address if the customer hasn't provided it?
If the customer didn't enter the shipping address, the billing address is automatically copied to the shipping address, so checking IfEmpty(ShippingAddress) doesn't work.

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 10/4/2013 10:33:24 AM
   
RE:don't show shipping address if it is empty
Hello,

The solution is to modify this behaviour in the code, file:
\CMSModules\Ecommerce\Controls\ShoppingCart\ShoppingCartOrderAddresses.ascx.cs in the method ProcessStep find the following code:
else
{
ShoppingCart.ShoppingCartShippingAddressID = ShoppingCart.ShoppingCartBillingAddressID;
}

... here you can customize it.

Best regards,
Martin Danko