Jump to content

If statement breaking everything


liamloveslearning

Recommended Posts

Hi everyone, Im trying to show a button if theres a price defined, and if the pirce is 0 not show a button, Ive written this so far but it keeps breaking my script and I cant understand why, can anybody spot any errors im overlooking?

   case 'PRODUCT_LIST_BUY_NOW':
            $lc_align = 'center';
		if ($list['PRODUCT_LIST_PRICE']== '0'){ 
		$lc_text = ' ';
		} else {
            $lc_text = osc_link_object(osc_href_link(basename($_SERVER['SCRIPT_FILENAME']), $osC_Product->getKeyword() . '&' . osc_get_all_get_params(array('action')) . '&action=cart_add'), osc_draw_image_button('button_buy_now.gif', $osC_Language->get('button_buy_now'))) . ' ';
            break;
        }

Link to comment
https://forums.phpfreaks.com/topic/187828-if-statement-breaking-everything/
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.