Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product listing - products_price*percentage help


Davee

Recommended Posts

Hi

 

I'm trying to set products_price * percentage where a product has a sku value >0 in product listing, advanced search result etc

 

I've successfully completed this for product_info with ease but the others are proving difficult .....

 

case 'PRODUCT_LIST_PRICE':
           $lc_align = 'center';
     if (tep_not_null($listing['specials_new_products_price'])) {
     $lc_text = '' .  '<b><span class="productSpecialPrice">?' . number_format(($listing['specials_new_products_price']), 2, '.', '') . '</b>';
           }else if ($listing['sku']> 0) {      
     $lc_text = ' <span class="price">?' .  number_format(($listing['products_price'] * $listing['percentage']), 2, '.', '') . '</span>';
     }else{
     $lc_text = ' <span class="price">?' .  number_format(($listing['products_price']), 2, '.', '') . '</span>';
     }

 

This code only returns the product price

 

I'm not sure where the $listing array can be found ?

 

I've looked for a contribution, but can't find one :(

 

Can anyone help?

 

Thanks in advance

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...