Getting the dimensions and weight values from a variant instead of a product.

Hi,


I think this changes may be useful for stores that sell variants of a product like mine.


Thanks for the gem,