Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

MSRP?


Guest

Recommended Posts

Posted

Is there a way to add this to my site so I can add this to the product page?

Posted

oh wow....where should that go though? around the call in the product_info?

Posted

I am assuming you have something like:

 

echo 'List: ' . $products_info['products_price_list'];

 

Try

echo 'List:<s>' . $products_info['products_price_list'] . '</s>';

Posted

okay...sometimes trial and error works...thank you! :)

 

I asked without using my nogin. :)

 

But I also realized it's not so hard adding a product field! :)

Posted

also, is there an if statement that I can use so that if the list price isnt entered it will not show up or say N/A .....also for Store Option field that I added.....

Posted

I use something like this:

<?php

// BOF: Display List Price if there is one to show

 if ( $product_info['products_price_list'] > 0 ) {

?>

 <tr>

   <td align="right" class="pageHeadingPriceList">

     <?php echo PRODUCTS_PRICE_LIST_TEXT . PRODUCTS_PRICE_LIST_SLASH . (DISPLAY_PRICE_LIST_WITH_TAX=='1' ? $currencies->display_price($product_info['products_price_list'],tep_get_tax_rate($product_info['products_tax_class_id']),'1') : $currencies->display_price($product_info['products_price_list'],'','1')) . PRODUCTS_PRICE_LIST_SLASH_OFF; ?>

   </td>

 </tr>

<?php

 }

// EOF: Display List Price if there is one to show

?>

 

Not sure if that will help you.

Posted

okay...thank you again!

 

I used the outside variables you gave me. :)

 

<?php

// BOF: Display List Price if there is one to show

if ( $product_info['products_listprice'] > 0 ) {

?>

<b>List Price:</b><br>

<s><?php echo $products_listprice; ?></s><br>

<?php

}

// EOF: Display List Price if there is one to show

?>

Posted

one last question, if i want to do this for words, how would i do that?

 

I'm guessing that this:

 

<?php

// BOF: Display List Price if there is one to show

if ( $product_info['products_pickup'] > 0 ) {

?>

<b>Store Options:</b><br>

<?php echo $product_info['products_pickup']; ?><br>

<?php

}

// EOF: Display Store Options if there is one to show

?>

 

doesn't work as it doesnt use numbers, it uses characters. *i THINK that's why*

 

Do you knwo how to do it for characters?

Posted

if the dB field defaults to NULL, you can use:

if ( tep_not_null($product_info['products_pickup']) ) {

 

also this will work:

if ( $product_info['products_pickup'] != '' ) {

 

and this might work as well:

if ($product_info['products_pickup']) {

The only thing necessary for evil to flourish is for good men to do nothing

- Edmund Burke

Archived

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

×
×
  • Create New...