Post by lio » Thu Jan 07, 2010 3:07 am

Necesito que el monto mínimo de productos para realizar un pedido sea de 10 unidades.
¿Alguien sabe como hacelo?

lio
Newbie

Posts

Joined
Thu Jan 07, 2010 3:01 am

Post by cofran » Thu Jan 07, 2010 4:01 am

no conozco nada en las contribuciones para hacer eso, pero mira este post quizas te de una ayuda por donde empezar. Saludos!

Commercial Contributions: Twitter Auto Publish | Multiple Payment Fee | Pasat 4b para Opencart | Delivery Date PRO
Free Contributions: Custom Layout | Delivery Date | Dineromail | Call for Price | Mercadopago
Commercial Themes: .-
Free Themes: [-CoFraN-]® Electronica


User avatar
Active Member

Posts

Joined
Thu Oct 01, 2009 7:37 am
Location - Córdoba, Argentina

Post by lio » Thu Jan 07, 2010 4:32 am

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

lio
Newbie

Posts

Joined
Thu Jan 07, 2010 3:01 am
Who is online

Users browsing this forum: No registered users and 16 guests