project_e_commerce
project_e_commerce copied to clipboard
Help!!!!
i am getting an error saying id is undefined when i try to get shippingOptions[0].id??
Same problem
me too
Same, any fix? But for me it's only when i try to select the "National" shipping (USA) options returns a empty array and => "Cannot read property 'id' of undefined"
To make it stop breaking I did :
if (options.length !== 0) {
setShippingOptions(options);
setShippingOption(options[0].id);
}
But it's not the best fix i think. I keep trying to find a solution
try to check if shipping is enabled for every item on commercejs