chrometweaks.org

Can I use Drupal with iPage domain name for ecommerce?

Click Here To View All Answers...


My question is Can I use Drupal with iPage domain name for ecommerce? Looking forward for any comment. Second question of mine... I searched but could not find info on this:.

When I add a product with a price of 11.95, for example, and then return to edit that product, the price is listed as 11.9500. This does not show up in the store, only in admin. Why is this, and how do I get it to stop?.

I'm using MS1 with US currency default. Thanks.....

Comments (70)

Yes sir! although you might wanna make sure and wait for another person here to confirm my answer as I am on the fence. Better yet, why don't you call the iPage guys because they can answer your iPage question better...

Comment #1

This is what I don't get though: I DO have it set to show two decimal places and it is doing just that on the consumer side. But on admin it is showing 4 decimal places, which I do not get and find slightly disconcerting. Maybe I am missing something simple but any more clarification on why I get two extra zeros would be appreciated...

Comment #2

I just read your reply more carefully and realized you were talking about the actual database set-up for that field. This makes more sense now, but it is still annoying to see those extra zeros in the price field. I guess I will just have to get used to this and explain to my clients to ignore them...

Comment #3

Happens on my store too. One of several peculiarities.

HLT..

Comment #4

Look in admin/categories.php.

Look for :.

         <tr>.

           <td class="main"><?php echo TEXT_PRODUCTS_PRICE; ?></td>.

           <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15')'&nbsp;'tep_draw_input_field('products_price', $pInfo->products_price); ?></td>.

         </tr>.

Change to:.

         <tr>.

           <td class="main"><?php echo TEXT_PRODUCTS_PRICE; ?></td>.

           <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15')'&nbsp;'tep_draw_input_field('products_price', round($pInfo->products_price,2)); ?></td>.

         </tr>..

Comment #5

Thanks. For future reference, this worked perfectly if anybody else wants to get rid of their extra zeros. :whatthat:..

Comment #6

Has anyone got this working in MS2?.

On the admin side I would just like to see 2 decimal places (while the database may still calculate 4 decimal places)..

I've tried the code given above but does not seem to work on Milestone 2..

Any one any help?.

Thanks!.

JuJu..

Comment #7

I searched but could not find info on this:.

When I add a product with a price of 11.95, for example, and then return to edit that product, the price is listed as 11.9500. This does not show up in the store, only in admin. Why is this, and how do I get it to stop?.

I'm using MS1 with US currency default. Thanks.....

Comment #8

It is set in the database table products > products_price decimal(15,4).

The second number governs how many decimal places are stored in the database..... not sure where in the code though for displaying only the two(didn't look). You are better off leaving it as it is as it's used in calculating the different currencies when they are updated...

Comment #9


This question was taken from a support group/message board and re-posted here so others can learn from it.