Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Coding problem with Retail Price


Recommended Posts



I have a slight code problem. I recently added EZ Feilds and it works great.


Here's my problem, follow the link below.



I would like to take this information!

Retail Price: $3,500.00


And add it to my product_listings.php page.

I've almost got it installed on product_listings.php page!



Code string below:

Retail Price: <span class="product_retail_price">' . $currencies->display_price($new_products['products_retail_price'], tep_get_tax_rate($new_products['products_tax_class_id'])) . '


I'm missing something because the $0.00 never changes.


All idea's welcome!


My product_listing page is below maybe a fresh set of eye's will help.


echo' <td align="left" width="15%" class="smallText"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id']) . '"></td><td align="left" valign="top" >' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</td><td width="100%" valign="top" align="left"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">

<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a><br><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Part#: <strong>' . $listing['products_model'] .'</strong><br>Retail Price: <span class="products_price">' . $currencies->display_price($listing['products_retail_price'], tep_get_tax_rate($new_products['products_tax_class_id'])) . '</s>

<br>Your Price: <strong><span class="product_price">' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</strong></span><br><br><font size="2" face="Verdana, Arial, Helvetica, sans-serif">' . TEXT_QUANTITY_IN_BASKET . $cart->get_quantity(tep_get_uprid($listing['products_id'],$listing['id'])) . '

<table width="70%" height="20" border="0"><TD height="20" width="30%" ><div align="left"><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=add_product&products_id=' . $listing['products_id'], 'NONSSL') . '">' . tep_image_button('button_in_cart.gif', TEXT_BUY . $listing['products_name'] . TEXT_NOW) . '</div><TD width="30%" valign="middle"><div align="left"><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id'], 'NONSSL') . '">' . tep_image_button('button_buy_now.gif', TEXT_BUY . $listing['products_name'] . TEXT_NOW) . '<a></TABLE><p> </p>' . "\n";




Azati Prime

Link to comment
Share on other sites

Hi JanZ,


Thanks for your reply. I solved the problem yesterday. I left a line of code out on my index page.


Works great now...



Link to comment
Share on other sites


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

  • Create New...