0

I'm showing in my shopping cart the weight per item using: $_item->getProduct()->getWeight(), however, it shows the original product weight and not what was set after configurations of the item.

For example: Product A has the weight set as 10lb but it has some custom options in which increments the weight based on user choice, but when go to shopping cart it shows only 10lbs, even though that the summary freight calculations is getting the right weight.

Is there any code to show the real weight in the shopping cart?

1 Answer 1

0

Here is the right code: $_item->getWeight();. My fault. Sorry.

That way shows properly the weight.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.