Guest Posted May 18, 2003 Posted May 18, 2003 Is there a way to add this to my site so I can add this to the product page?
Ajeh Posted May 18, 2003 Posted May 18, 2003 Are you trying to just add something like this? http://www.8thoctave.com/osc_freecall/prod...&products_id=78
Guest Posted May 18, 2003 Posted May 18, 2003 yes, exactly like that... I got as far as adding the tables....but I can't figure out the strike through... see? http://www.greekretreat.com/product_info.p...products_id=190
Guest Posted May 18, 2003 Posted May 18, 2003 oh wow....where should that go though? around the call in the product_info?
Ajeh Posted May 18, 2003 Posted May 18, 2003 I am assuming you have something like: echo 'List: ' . $products_info['products_price_list']; Try echo 'List:<s>' . $products_info['products_price_list'] . '</s>';
Guest Posted May 18, 2003 Posted May 18, 2003 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! :)
Guest Posted May 18, 2003 Posted May 18, 2003 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.....
Ajeh Posted May 18, 2003 Posted May 18, 2003 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.
Guest Posted May 18, 2003 Posted May 18, 2003 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 ?>
Guest Posted May 18, 2003 Posted May 18, 2003 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?
dreamscape Posted May 18, 2003 Posted May 18, 2003 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.