quantity deicimals

Views: 13,398

Results 1 to 20 of 49
26 Oct 2014, 9:12 PM
#1
jimmie avatar

jimmie

Totally Zenned

Join Date:
Jan 2013
Location:
New Port Richey, Florida
Posts:
971
Plugin Contributions:
0

quantity deicimals

i try to add to cart 1122.24, but can only get as far as 1122.2, wont let me get beyond that from product info page, but once in cart can add in the 4 then, how do i change this

26 Oct 2014, 10:04 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: quantity deicimals

One place to look is the units for the product in the product informtion page. Generally speaking items are added in whole numbers, so setting up to accept decimals is one part, then setting up for hundreths is yet another.

Verify that on the product page for the item(s) in question any amount identified in the units box. If it currently is 0.1 or not 1, then please report. There may be other configuration settings to adjust.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

26 Oct 2014, 10:38 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: quantity deicimals

Units should be:
.01

as you want .24 to work ...

Next, you need to update your template using your templates and overrides for:

            if ($products_qty_box_status == 0 or $products_quantity_order_max== 1) {
              // hide the quantity box and default to 1
              $the_button = '<input type="hidden" name="cart_quantity" value="1"[B] " maxlength="8" size="8"[/B] />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
            } else {
              // show the quantity box
    $the_button = PRODUCTS_ORDER_QTY_TEXT . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" [B]maxlength="8" size="8"[/B] /><br />' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '<br />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
            }

Then you need to adjust the setting for how many decimals you allow on quantity in the Configuration ... Stock ... and set this to 2:

Product Quantity Decimals
Allow how many decimals on Quantity

0= off

0
1
2
3

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

26 Oct 2014, 11:04 PM
#4
jimmie avatar

jimmie

Totally Zenned

Join Date:
Jan 2013
Location:
New Port Richey, Florida
Posts:
971
Plugin Contributions:
0

Re: quantity deicimals

Thank you

11 Nov 2014, 3:31 AM
#5
jimmie avatar

jimmie

Totally Zenned

Join Date:
Jan 2013
Location:
New Port Richey, Florida
Posts:
971
Plugin Contributions:
0

Re: quantity deicimals

517.8 does not work
517.81 works
how do i get both Decimals working?

11 Nov 2014, 3:42 AM
#6
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: quantity deicimals

jimmie:

517.8 does not work
517.81 works
how do i get both Decimals working?

Would help to be more descriptive. What does it mean not to work?

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

11 Nov 2014, 3:56 AM
#7
jimmie avatar

jimmie

Totally Zenned

Join Date:
Jan 2013
Location:
New Port Richey, Florida
Posts:
971
Plugin Contributions:
0

Re: quantity deicimals

Warning Please update your order.
The item: SFI Floors Highlands 12.3mm Laminate Flooring-Barnwood ... Quantity Units errors -
You ordered a total of: 517.8 Min: 17.26 Units: 17.26

11 Nov 2014, 3:58 AM
#8
jimmie avatar

jimmie

Totally Zenned

Join Date:
Jan 2013
Location:
New Port Richey, Florida
Posts:
971
Plugin Contributions:
0

Re: quantity deicimals

30 x 17.26 is 517.8

11 Nov 2014, 4:06 AM
#9
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: quantity deicimals

517.80, Does that work? Seeing as two decimals works. Doesn't seem right that 517.81 works. Does 517.82 or another number up to the next multiple work also?

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

11 Nov 2014, 4:08 AM
#10
jimmie avatar

jimmie

Totally Zenned

Join Date:
Jan 2013
Location:
New Port Richey, Florida
Posts:
971
Plugin Contributions:
0

Re: quantity deicimals

Zen-cart makes the 0 disapear
2 decimals or even a whole number work, as you can see from earlier in this post i did that to get it to work with to decimals

11 Nov 2014, 4:17 AM
#12
jimmie avatar

jimmie

Totally Zenned

Join Date:
Jan 2013
Location:
New Port Richey, Florida
Posts:
971
Plugin Contributions:
0

Re: quantity deicimals

Also i am using a Shipping module from freightquote.com, it wont work with decimals, Meaning when there is a Decimal in the cart it does not show as a shipping option, can this be fixed in the module file or is it on their server?

11 Nov 2014, 4:54 AM
#13
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: quantity deicimals

Looks like also have some sort of bulk purchase discount module.tried using 5178 units, and the price per unit went down...

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

11 Nov 2014, 5:25 AM
#14
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: quantity deicimals

What are your settings in Configuration ... Shipping/Packaging ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

11 Nov 2014, 5:53 AM
#15
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: quantity deicimals

What version of Zen Cart are you using?

Have you a copy of your freightquote.com shipping module?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

11 Nov 2014, 12:19 PM
#16
jimmie avatar

jimmie

Totally Zenned

Join Date:
Jan 2013
Location:
New Port Richey, Florida
Posts:
971
Plugin Contributions:
0

Re: quantity deicimals

Country of Origin Select the country of origin to be used in shipping quotes.
Postal Code Enter the Postal Code (ZIP) of the Store to be used in shipping quotes. NOTE: For USA zip codes, only use your 5 digit zip code.
Enter the Maximum Package Weight you will ship Carriers have a max weight limit for a single package. This is a common one for all.
Package Tare Small to Medium - added percentage:weight What is the weight of typical packaging of small to medium packages?
Example: 10% + 1lb 10:1
10% + 0lbs 10:0
0% + 5lbs 0:5
0% + 0lbs 0:0
Larger packages - added packaging percentage:weight What is the weight of typical packaging for Large packages?
Example: 10% + 1lb 10:1
10% + 0lbs 10:0
0% + 5lbs 0:5
0% + 0lbs 0:0
Display Number of Boxes and Weight Status Display Shipping Weight and Number of Boxes?

0= off
1= Boxes Only
2= Weight Only
3= Both Boxes and Weight 0
1
2
3
Order Free Shipping 0 Weight Status If there is no weight to the order, does the order have Free Shipping?
0= no
1= yes

Note: When using Free Shipping, Enable the Free Shipping Module this will only show when shipping is free. 0
1
Shipping Estimator Display Settings for Shopping Cart
0= Off
1= Display as Button on Shopping Cart
2= Display as Listing on Shopping Cart Page 0
1
2
Display Order Comments on Admin Invoice Do you want to display the Order Comments on the Admin Invoice?
0= OFF
1= First Comment by Customer only
2= All Comments for the Order 0
1
2
Display Order Comments on Admin Packing Slip Do you want to display the Order Comments on the Admin Packing Slip?
0= OFF
1= First Comment by Customer only
2= All Comments for the Order 0
1
2

11 Nov 2014, 12:24 PM
#18
jimmie avatar

jimmie

Totally Zenned

Join Date:
Jan 2013
Location:
New Port Richey, Florida
Posts:
971
Plugin Contributions:
0

Re: quantity deicimals

v 1.51 is my version

11 Nov 2014, 2:00 PM
#19
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: quantity deicimals

What is the Maximum Weight set to?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

11 Nov 2014, 2:06 PM
#20
jimmie avatar

jimmie

Totally Zenned

Join Date:
Jan 2013
Location:
New Port Richey, Florida
Posts:
971
Plugin Contributions:
0

Re: quantity deicimals

10000 max