Necesito que el monto mínimo de productos para realizar un pedido sea de 10 unidades.
¿Alguien sabe como hacelo?
gracias por la respuesta, lo he logrado solucionar.
1. This could possibly be better done with a proper Order Total Module
2. If you want an easy hack, you could make it a lot easier.
Try this:
EDIT: catalog/view/theme/default/template/checkout/confirm.tpl
FIND:
Code: Select all
<div id="payment"><?php echo $payment; ?></div>
REPLACE WITH:
Code: Select all
<?php if ((int)$this->cart->countProducts() > 4) { ?>
<div id="payment"><?php echo $payment; ?></div>
<?php } else { ?>
<div class="warning">You must purchase at least 5 items to checkout</div>
<?php } ?>
That's it. Only 1 file.
thanks Qphoria !!
1. This could possibly be better done with a proper Order Total Module
2. If you want an easy hack, you could make it a lot easier.
Try this:
EDIT: catalog/view/theme/default/template/checkout/confirm.tpl
FIND:
Code: Select all
<div id="payment"><?php echo $payment; ?></div>
REPLACE WITH:
Code: Select all
<?php if ((int)$this->cart->countProducts() > 4) { ?>
<div id="payment"><?php echo $payment; ?></div>
<?php } else { ?>
<div class="warning">You must purchase at least 5 items to checkout</div>
<?php } ?>
That's it. Only 1 file.
thanks Qphoria !!
Who is online
Users browsing this forum: No registered users and 146 guests