Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

shopping cart subtotal??


Guest

Recommended Posts

Posted

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

Posted

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>';
}

Posted

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 ...

Posted

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 ...

Archived

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

×
×
  • Create New...