Hey guys :)
I want to implement a "minimum order value" to my new site...
I was figuring to EITHER put this in the minishoppingcart or the ordersummary files to hide the checkout button until the minimum order amount is reached...
The problem I am having is this, I can't seem to invoke the subtotal in either of these files in such a way that I can run a comparison like this;
if (MyVariableForSubtotal < 100)
{
CheckoutButton.Visable = False;
minimumOrderMessage.Visable = True;
}
What is the quickest and easiest way for me to invoke an instance of the subtotal which I can use the "<" operator on? Does it need to be a decimal or an integar etc.. ??
Any help would be hugely appreciated! As I've been stuck on this for a while, I tried replicating the code which shows the sub-total on the minicart, but it just doesn't want to let me convert or compare it!
Thanks :)