I was able to work something else which accomplishes the same result. Sort of.
For anyone interested...
In includes/templates/YOUR_TEMPLATE/template/tpl_checkout_confirmation_default.php
locate this
PHP Code:
<div class="buttonRow"><?php echo TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?></div>
<div class="buttonRow confirm-order"><?php echo zen_image_submit(BUTTON_IMAGE_CONFIRM_ORDER, BUTTON_CONTINUE_CHECKOUT_CONFIRMATION_ALT, 'name="btn_submit" id="btn_submit"') ;?></div>
<div class="buttonRow"><?php echo TITLE_CONTINUE_CHECKOUT_PROCEDURE; ?></div>
and replace for this
PHP Code:
<!-- bof disable checkout button on orders less than $100 -->
<?php
if (!IS_ADMIN_FLAG) {
global $order;
if ($order->info['total'] < 100) {
echo '<p style="text-align: center;border: 3px solid #777777; padding: 10px 0;"><strong>Your order does not qualify for Free Shipping at this time.</strong><br /><strong>Please go back to select another shipping option or add additional items to the shopping bag to meet the minimum order to qualify for free shipping.</strong></p>';
} else {
?>
<!-- eof disable checkout button on orders less than $100 -->
<div class="buttonRow"><?php echo TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?></div>
<div class="buttonRow confirm-order"><?php echo zen_image_submit(BUTTON_IMAGE_CONFIRM_ORDER, BUTTON_CONTINUE_CHECKOUT_CONFIRMATION_ALT, 'name="btn_submit" id="btn_submit"') ;?></div>
<div class="buttonRow"><?php echo TITLE_CONTINUE_CHECKOUT_PROCEDURE; ?></div>
<!-- bof disable checkout button on orders less than $100 -->
<?php } } ?>
<!-- eof disable checkout button on orders less than $100 -->
What this code does is prevent placing the order by hiding the checkout button if order is less than $100. A message appears in place of the button with instructions to select another shipping option or add more products to the shopping cart. Maybe not the best or the most elegant solution but it works.
Bookmarks