Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change quantity in decimals


stofmark

Recommended Posts

Posted

Hello,

 

I want to sell fabrics and i want to set the quantity of the products in decimals.

Like someone wants to buy 1,5 mtr fabric.

How can i do that? I want to update the price automatcally.

 

I'm not an php professional, i'm using oscommerce for a few weeks now.

Using Oscommerce online mechant v2.2 RC2

 

Can someone help me with this one?

 

Thnx!

Posted

I am doing the same thing ( selling fabric). To get the decimal amounts that I needed I used the Partial Quantity mod. It works well for this application. There is one additional change that needs to be made so that decimal quantities can be added on the admin side change. In file catalog/admin/catagories.php at around line 291 remove the (int) from the part of the line that reads

('product_quantity'=> (int)tep_db_prepare

it should now read

('product_quantity'=> tep_db_prepare

 

Julie

Posted

I am doing the same thing ( selling fabric). To get the decimal amounts that I needed I used the Partial Quantity mod. It works well for this application. There is one additional change that needs to be made so that decimal quantities can be added on the admin side change. In file catalog/admin/catagories.php at around line 291 remove the (int) from the part of the line that reads

('product_quantity'=> (int)tep_db_prepare

it should now read

('product_quantity'=> tep_db_prepare

 

Julie

 

Hi Julie,

 

I tried this but it doesn't works for me :(..

I followed the manual en changed everthing.

 

Can you help me..

 

Thnx!

Archived

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

×
×
  • Create New...