ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Asigning a weight to products

April 18, 2012 11:35am

Subscribe [2]
  • #1 / Apr 18, 2012 11:35am

    Mobster

    64 posts

    I’m looking to add weight to an individual product. (one SKU) for example.

    50lbs = 3.00

    2000lb’s of foo   = 2,300

    45,000lb’s of foo = 13,000

    If I have a channel of products, and I want to calculate total weight per say in a checkout. How could I assign selectable weights to one product?
     

    Would I create a separate channel called “weight” enter the various weights in that channel and use relationships to calculate the total? 

    Any suggestions are welcome. 

  • #2 / Apr 18, 2012 9:46pm

    Man With A Peg

    124 posts

    The cart software that you are using will have an effect on the “best” route to take. Is there a formula for the weight you are adding, or is it based on some sort of lookup table?

    For instance, w * .06, where w is 50lbs would produce 3lbs.

    With a lookup table, everything up to 2,000 lbs would have 3 lbs added. We would add 2,300 lbs for purchases between 20,000 lbs and 45,000 lbs.

    Or do you know every weight that is possible?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases