Hallo,
will im Shop einen Mindestbestellwert festsetzten. Zen Cart 1.3.6
Datenbank Patch Level: 1.3.6. Ich habe bislang folgendes eingefügt:
1) Import the sql.txt file into your database using either PHPMyAdmin or
the zen-cart admin. ist ok
2) Then in Admin ~ Configuration ~ Minimum Values at the bottom you
will see Minimum Order Amnout.
Enter the amount that you want as your order minimum depending on
your default currency. ok
3) Copy the files
includes/extra_configures/minorderamount.php
includes/modules/minorderamount.php
4) In includes/templates/yourtemplate/templates/tpl_shopping_cart_default.php
find:
<?php } //endif STOCK_ALLOW_CHECKOUT ?>
<?php } //endif flagAnyOutOfStock ?>
add the following lines below:
<?php // BOF MIN ORDER AMOUNT
if ($_SESSION['cart']->total < MIN_ORDER_AMOUNT) {?>
<div class="messageStackError"><?php echo sprintf(TEXT_ORDER_UNDER_MIN_AMOUNT, $currencies->format(MIN_ORDER_AMOUNT)); ?></div>
<?php }// EOF MIN ORDER AMOUNT ?>
find:
<div class="buttonRow forward"><?php echo '' . zen_image_button(BUTTON_IMAGE_CHECKOUT, BUTTON_CHECKOUT_ALT) . ''; ?></div>
replace with:
<?php // BOF MIN ORDER AMOUNT
if ($_SESSION['cart']->total >= MIN_ORDER_AMOUNT) {?>
<div class="buttonRow forward"><?php echo '' . zen_image_button(BUTTON_IMAGE_CHECKOUT, BUTTON_CHECKOUT_ALT) . ''; ?></div>
<?php }// EOF MIN ORDER AMOUNT ?>
5) Add to includes/languages/english/yourtemplate/shopping_cart.php:
// BOF MIN ORDER AMOUNT
define('TEXT_ORDER_UNDER_MIN_AMOUNT', 'A minimum order amount of %s is required in order to checkout.');
// EOF MIN ORDER AMOUNT
Ist Alles sowweit drin, im Warenkorb bekomme ich die Fehlermeldung:
P
arse error: parse error, unexpected $ ### /includes/templates/template_default/templates/tpl_shopping_cart_default.php on line 227
Kann mir da jemand weiterhelfen? Danke
will im Shop einen Mindestbestellwert festsetzten. Zen Cart 1.3.6
Datenbank Patch Level: 1.3.6. Ich habe bislang folgendes eingefügt:
1) Import the sql.txt file into your database using either PHPMyAdmin or
the zen-cart admin. ist ok
2) Then in Admin ~ Configuration ~ Minimum Values at the bottom you
will see Minimum Order Amnout.
Enter the amount that you want as your order minimum depending on
your default currency. ok
3) Copy the files
includes/extra_configures/minorderamount.php
includes/modules/minorderamount.php
4) In includes/templates/yourtemplate/templates/tpl_shopping_cart_default.php
find:
<?php } //endif STOCK_ALLOW_CHECKOUT ?>
<?php } //endif flagAnyOutOfStock ?>
add the following lines below:
<?php // BOF MIN ORDER AMOUNT
if ($_SESSION['cart']->total < MIN_ORDER_AMOUNT) {?>
<div class="messageStackError"><?php echo sprintf(TEXT_ORDER_UNDER_MIN_AMOUNT, $currencies->format(MIN_ORDER_AMOUNT)); ?></div>
<?php }// EOF MIN ORDER AMOUNT ?>
find:
<div class="buttonRow forward"><?php echo '' . zen_image_button(BUTTON_IMAGE_CHECKOUT, BUTTON_CHECKOUT_ALT) . ''; ?></div>
replace with:
<?php // BOF MIN ORDER AMOUNT
if ($_SESSION['cart']->total >= MIN_ORDER_AMOUNT) {?>
<div class="buttonRow forward"><?php echo '' . zen_image_button(BUTTON_IMAGE_CHECKOUT, BUTTON_CHECKOUT_ALT) . ''; ?></div>
<?php }// EOF MIN ORDER AMOUNT ?>
5) Add to includes/languages/english/yourtemplate/shopping_cart.php:
// BOF MIN ORDER AMOUNT
define('TEXT_ORDER_UNDER_MIN_AMOUNT', 'A minimum order amount of %s is required in order to checkout.');
// EOF MIN ORDER AMOUNT
Ist Alles sowweit drin, im Warenkorb bekomme ich die Fehlermeldung:
P
arse error: parse error, unexpected $ ### /includes/templates/template_default/templates/tpl_shopping_cart_default.php on line 227
Kann mir da jemand weiterhelfen? Danke
Kommentar