Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fractional Quantity problems


skaterguy

Recommended Posts

Posted

Hi Folks

 

I have an interesting problem to a vanilla installation. After pressing the buy button, if I enter 1.5 in the quantity field and press the checkout button. My quanitity field gets reset to a whole interger of 1.0 - however, if I edit the product quantity back to 1.5 in the Order confirmation screen. The quantity field will stay at 1.5...

 

In a nutshell the shopping cart Update Button allows fractions in the quantity field such as 1.5 - but if you use the checkout button it will convert my quantity field to a whole number upon check-out finalization.

Has this bug been reported!

 

I want to be able to have fractions such as 1.5 meters....

 

What gives!!!

 

Danny

Posted
Hi Folks

 

I have an interesting problem to a vanilla installation. After pressing the buy button, if I enter 1.5 in the quantity field and press the checkout button. My quanitity field gets reset to a whole interger of 1.0 - however, if I edit the product quantity back to 1.5 in the Order confirmation screen. The quantity field will stay at 1.5...

 

In a nutshell the shopping cart Update Button allows fractions in the quantity field such as 1.5 - but if you use the checkout button it will convert my quantity field to a whole number upon check-out finalization.

Has this bug been reported!

 

I want to be able to have fractions such as 1.5 meters....

 

What gives!!!

 

Danny

 

Not a bug, just the way it works. Obviously designed to work with whole products, no one should be able to buy 1? warddrobes.

 

so there must be a rounding function in there somewhere that you would need to change.

Posted
Not a bug, just the way it works.  Obviously designed to work with whole products, no one should be able to buy 1? warddrobes.

 

so there must be a rounding function in there somewhere that you would need to change.

 

 

1. What about if the product is fabric - you should be able to buy 1.5 meters of fabric?

 

2. Plus it isn't consistent if you press the UPDATE button (shopping cart) it will takes a fractional value... but if you press the BUY button (shopping cart) it doesn't take a frational value. If a function is called it should be used in both places not only in one place?

 

I would call this a bug...

 

Danny

Posted
1. What about if the product is fabric - you should be able to buy 1.5 meters of fabric?

 

2.  Plus it isn't consistent if you press the UPDATE button (shopping cart) it will takes a fractional value... but if you press the BUY button (shopping cart) it doesn't take a frational value.  If a function is called it should be used in both places not only in one place?

 

I would call this a bug...

 

Danny

 

Guess you're right then.

 

Better report it.

Posted

I think I am trying to do something just like you. I have created a site http://www.butlerhillglass.com, but I cannot charge by the pound. I am not sure if I need to do something inside of OScommerce or if a script is needed. Feel free to look at the site. I would mainly like quanity conveted into pounds. I currently cannot do less than one though or a fraction.

Posted
Thanks, where and how to you report a bug...

 

Danny

 

 

On the community menu at the top of this page there is a Bug Reports option. maybe try there.

Posted
This is by far not a new issue. Search using the term "fractional"

 

http://www.oscommerce.com/forums/index.php?act...lite=Fractional

 

Lots of people are using fractional quantities, I'm not so I'm not familiar with the issues.

 

Thanks - did the search and it appears to be alot of discussion about whether a product has to be a whole number... alot of rants - but no real answers... I also checked the bug section- and the same rants appear their as well.

 

I guess I will have to search thru the code to see why this is happening. It should be consistent - (whole or fraction allowed) not one button allowing fractions and another not.

 

Any help with this issue would be appreciated.

 

Danny

Posted
I would like store to be able to order .5 items. I just can't figure out how.

 

I guess nobody wants to help us... so I guess I will have to look at the code to see what is happening. I would have thought that this would have been a common issue and that someone would have helped us by now.

 

Danny

  • 4 weeks later...
Posted
I guess nobody wants to help us... so I guess I will have to look at the code to see what is happening. I would have thought that this would have been a common issue and that someone would have helped us by now.

 

Danny

 

 

I have the same problem selling fabric and could surely use a fix, but in the meantime am setting my minimum quantity (0.5 yd) as "1 unit". So if someone wants 5 yds they'll have to order qty 10.

 

It'll be a nightmare, but perhaps not as bad as the alternative...!

 

Lou

Posted

It's ok folks, you can sell fractional products, you just need to put some thought into using the attribute function properly. We sell mosaic tile, by the pound. I have it set up so that 1 pound is the basic unit, with optional attributes that can allow half, quarter pounds, and in some cases sheets, what ever I want. You can adjust the price, and set it to adjust the weight for shipping calculations too. It will show the adjustments on the order invoice as well.

 

You will want to do a search to find solutions to some common problems. The way attributes are displayed in a stock store is not likely to make you jump for joy, but code changes and contribs are around to fix this. The stock method of inputting attributes leaves a lot to be desired, there are contribs for this too.

 

Before I found osc, I was using a shop program that was such a straight jacket I was using half pounds as a basic unit, and it was awful, do not do it!

 

Jeremy

  • 7 months later...
Posted

Thanks Jeremy

 

Tried the product attribute method - but since we like to give the client alot of flexibility ie: being able to buy .1 or .2 or 2.5 etc of a meter of our product. This method was a real nightmare. I really like OSC but wish that some of the developers would help us out.

 

I started by checking out the Database where the several fields would need to be changed from int to decimal.

 

Table name orders_products

Field name Products_quantity int(2) not null default 0

 

Table name products

products_quantity int(4) not null default 0

products_ordered int(4) not null default 0

 

Table Name Customers_basket

customers_basket_quantity int(2) Not Null default 0

 

I hope this is all the fields that require adjustment ... I looked at the code and couldn't find anything that made the product quantity an interger.

 

Any suggestion/comments or help would be appreciated.

 

Dan

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...