Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > My shipping address is different from my billing address View modes: 
User avatar
Member
Member
Jerreck - 2/14/2014 8:42:06 AM
   
My shipping address is different from my billing address
So, there's this block of code in /CMSModules/Ecommerce/Controls/ShoppingCart/ShoppingCartOrderAddresses.ascx.cs:

// If shopping cart does not need shipping
if (!ShippingOptionInfoProvider.IsShippingNeeded(ShoppingCart))
{
// Hide title
lblBillingTitle.Visible = false;

// Hide shipping address section
plcShippingAddress.Visible = false;

// Change current checkout process step caption
ShoppingCartControl.CheckoutProcessSteps[ShoppingCartControl.CurrentStepIndex].Caption = GetString("order_new.shoppingcartorderaddresses.titlenoshipping");
}


Apparently it toggles the loading of the "my shipping address is different from my billing address" option in the shopping cart web part. It also seems to be looking for some column in one of the database tables to tell it whether or not to enable this option.

For the life of me, I can't find what column on what table it's talking about, nor can I find where in the UI to toggle this option. So, for the moment, I've just taken off the "!" from "!ShippingOptionInfoProvider.IsShippingNeeded(ShoppingCart)".

Obviously, this isn't a prefect solution, but it works for now. Can anyone tell me where to find this option in the UI?

User avatar
Certified Developer 10
Certified Developer 10
josha-bpstudios - 2/14/2014 9:07:45 AM
   
RE:My shipping address is different from my billing address
Check your shipping settings under Ecommerce- configuration. You probably need to have shipping set up in order for the system to run through that check I would imagine.

User avatar
Member
Member
Jerreck - 2/14/2014 9:34:29 AM
   
RE:My shipping address is different from my billing address
I thought so, also, but there doesn't seem to be any option that would trigger this. I set-up a couple of shipping options to no effect, and scoured pretty much every settings page in the Ecommerce module in CMS Desk and Site Manager to see if anything seemed relevant. So far, no dice.

User avatar
Certified Developer 10
Certified Developer 10
Accepted solutionAccepted solution
josha-bpstudios - 2/14/2014 11:05:09 AM
   
RE:My shipping address is different from my billing address
Do any of the items in your cart require shipping? This could be something else that affects the visibility. Check in the product under shipping to see if any of them require shipping. If not, check the box and then re add the item to the cart after clearing it.

User avatar
Member
Member
Jerreck - 2/14/2014 11:59:48 AM
   
RE:My shipping address is different from my billing address
Ah, good call. I can't believe I didn't see that option. Thank you.

For others, in order for this option to appear in the shopping cart web part, you must specify that a product needs shipping, which can be done in at least two different places, maybe more:

CMS Desk > Content > Your Product's Document Page > Form > Shipping

OR

CMS Desk > Ecommerce > Products > Your Product > General > Shipping.

If any products in your cart have "Needs Shipping" checked, then this option will appear.

Thanks again josha-bpstudios :)