Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Margin Report v1.00


Guest

Recommended Posts

Margin Report v1.00 all installed all happy !!!

 

NOPE

 

when this code is on the page /catalog/admin/categories.php

 

 

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

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

 

then the prices dont work at all ( no tax calculation or anything )

 

with it removed all is fine again

 

any ideas ????

 

script taken from :

 

Assume all file locations are in: /catalog/admin:

 

/categories.php

Find:

<tr bgcolor="#ebebff">

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

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

</tr>

 

Replace With:

<tr bgcolor="#ebebff">

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

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

</tr> <tr bgcolor="#ebebff">

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

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

</tr>

Link to comment
Share on other sites

the contrib works like a charm. i installed it and it worked without any additional modifications and from what I can tell no bugs either.

 

you should double and tripple check your work. relatively easy contrib. my guess is the modifications needed to the SQL queries.....

 

if you use phpmyadmin, are the prices, costs, etc. written to the database?

 

i even have this one running with the retail price contribution...

Link to comment
Share on other sites

when this code is on the page /catalog/admin/categories.php

 

 

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

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

 

then the prices dont work at all ( no tax calculation or anything )

that's because this part:

('products_price', $pInfo->products_cost, '');

 

should be:

('products_cost', $pInfo->products_cost, '');

 

B)

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.

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...