Guest Posted September 27, 2006 Posted September 27, 2006 similarly to this function: if ($cart->count_contents() > 0){ //do stuff } can i make something like (if $subtotal >4.00) ? if so, what are the proper codings to achieve it? I want to simply hide the checkout button if an individual's shopping cart subtotal is less than $4.00
pyramids Posted September 27, 2006 Posted September 27, 2006 Something like: if ($products[$i]['final_price'] > 4){ echo '<td align="right" class="main"><a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image_button('button_checkout.gif', IMAGE_BUTTON_CHECKOUT) . '</a></td>'; }else{ echo '<td align="right" class="main">There is a $4 min</td>'; }
♥Monika in Germany Posted September 27, 2006 Posted September 27, 2006 I suggest you install the minimum order contributions ... with the method you are describing here, I could manually enter a chekout URL and checkout anyway. :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...
♥Monika in Germany Posted September 27, 2006 Posted September 27, 2006 double post ... :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.