Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem with Graduated Prices (StaffelPreis)


devink

Recommended Posts

Hi,

 

I'm hoping someone has seen and resolved this one, my PHP knowledge is not good.

 

Graduated prices is not working, the discount is not being applied. Possibly related, I think that in the admin (categories.php), the value is being calculated as an integer. So, a value of ?0.25 actually appears as 0 if I return to the product to edit it.

 

Has anyone seen this, or can anyone help me to help myself with what I think is a problem in the way the value is stored as an integer, instead of with decimal points?

 

I think this is the code that is retrieving the prices into an array...

 

                // Nettopreisberechnung

             {

              $insert_sql_data = array('products_id' => $products_id,

                                  'quantity' => tep_db_prepare_input($HTTP_POST_VARS['quantity'.$s]),

                                  'unitprice' => tep_db_prepare_input($HTTP_POST_VARS['unitprice'.$s]));

              tep_db_perform(TABLE_PRICES, $insert_sql_data);

             }

 

In the database, the decimals are stored correctly, and they display correctly in the catalog.

Many Thanks,

 

Steve

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...