
ho seguito leistruzioni...ho importato il file sql .....ecome dice il redame ho scritto le righe
In all of the checkout_* confirmation - payment - process - shipping .php pages after (in catalog)
require(DIR_WS_CLASSES . 'order.php');
$order = new order;
add the following lines:
// check order total minimum
if ($order->info['total'] < MIN_ORDER_AMOUNT) {
tep_redirect(tep_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'));
}
In shopping_cart.php, around line 107 should be:(catalog)
<tr>
<td class="stockWarning" align="center"><br><?php echo OUT_OF_STOCK_CANT_CHECKOUT; ?></td>
</tr>
<?php
}
}
?>
<tr>
replace the last line ( <tr>) with:
<?php
// minimum order total
if ($order->info['total'] < MIN_ORDER_AMOUNT) {
?>
<tr>
<td class="stockWarning" align="center"><br><?php echo TEXT_ORDER_UNDER_MIN_AMOUNT; ?></td>
</tr>
<?php
}
?>
<tr>
edit includes/languages/[language]/shopping_cart.php to add:
define('TEXT_ORDER_UNDER_MIN_AMOUNT', 'A minimum order amount of $' . MIN_ORDER_AMOUNT . ' is required in order to checkout.');
and that should do it.
poi in amministrazione in minimuN order ho impostato a 50.00
ma xchè nn mi blocca gli acquisti???AIUTOOOOOOOOOOOO