Jump to content



Latest News: (loading..)

quantity round up

roundup round up

  • Please log in to reply
2 replies to this topic

#1   spidermonkey

spidermonkey
  • Members
  • 1 posts
  • Real Name:Brad
  • Gender:Male

Posted 21 May 2013 - 08:38 PM

My site sells Hardwood.  Currently I am charging by the square foot.  I need the square feet ordered by the customer to be rounded up to the next carton.  Each different product has a different amount of square feet per carton. (ie: some have 25.5sq.ft per carton, another has 30.25sq.ft. per carton)

What I'm trying to do:
http://www.floormall.com/bruce-cb211-dundee-strip-gunstock-2-1-4-oak-hardwood-flooring/p1891553

Anyone know of a solution???

Thank you

#2 ONLINE   burt

burt

    Code Monkey

  • Community Team
  • 7,758 posts
  • Real Name:G Burton
  • Gender:Male
  • Location:UK/DEV/on

Posted 21 May 2013 - 10:07 PM

There are some changes required as far as I can see;

1.  allow partial quantities to be inserted (for purchasing)
2.  add the "sq/foot per carton" setting to each product
3.  work out what the customer wants (#1) compared to #2, and either allow the order to progress or to update the quantity to the next level (and tell the customer so).

All in all, not a difficult project, but also not quite straightforward.

I don't think that there is presently anything available that would handle this.
Dummies guide to designing osCommerce 2.3 Click Me

Or maybe a ready made theme for your shop ??

Warning: My posts may contain Horsemeat.

#3   multimixer

multimixer

    Lemons or Melons ?

  • Partner
  • 4,400 posts
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted Yesterday, 04:12 AM

What you need is
- allow decimal quantities, like @burt said
- Minimum quantity per product (e.g. not less than 30)
- Quantity step per product (e.g. can be ordered only in steps of 15 or 30 etc)

I've done this in a custom project (link), I don't know if something similar is available as an add-on, but it is possible to do for sure. Minimum quantity here is 0.2 and quantity step is 0.1, so you can try to enter a quantity of 0.12 or 0.34. Small pop up messages appear depending on what the case is, in both, product info page and shopping cart page