How to set minimum price for order?

Slope

No avatar

2007-11-15 12:43

Do you anyone know, how can I set minimum price for one order? Is there some code, plugin or module? Thank you.

» Quick.Cart v2.x

merci

No avatar

2007-11-16 09:43

Slope - it isn't easy to do, so we can't give you ready solution - step after step - too much writing. You have to know php well to do this. Do you feel that you are able to do this?

Slope

No avatar

2007-11-16 14:35

I wish I were able to do this. Unfortunately my profession is slightly different than programming. Thank you guys...you've done bunch of work.

spamex

No avatar

2007-11-18 21:04

One 'easy way' :

1) in config.php =>
$config['minimal_cart']= 50;

2) in your language file en.php
$lang['minimal_cart'] = 'Minima Cart';

3) in your config_form.tpl
<tr><th>$lang[minimal_cart]</th><td>
<input type="text" name="minimal cart" value="$config[minimal_cart]" size="5" maxlength="5" /></td></tr>

4) in orders_basket.tpl
<script type="text/javascript">
<!--
cartminitxt="$lang[minimal_cart]: "+$config[minimal_cart]+" $config[currency_code]" ;
if ( $aList[fSummary] >= $config[minimal_cart]) document.write("<fieldset><input type=\"submit\" name=\"sSave\" value=\"$lang[Next] &raquo;\" class=\"submit\" /></fieldset>");
else document.write( cartminitxt );
//-->
</script>

status

No avatar

2007-12-12 20:36

hey.
I have the same question.
I saw the solution, but where is "config.php"
the others I've found them :)

merci

No avatar

2007-12-13 08:50

status - Q.Cart don't have file named config.php I think that spamex means config/general.php

Back to top
about us | contact