Zen Cart Logo
Forums / Managing Customers and Orders / How to edit text for minimum order mod?

How to edit text for minimum order mod?

Locked

Views: 1,504

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
19 May 2007, 9:18 PM
#1
highroller avatar

highroller

New Zenner

Join Date:
May 2007
Posts:
23
Plugin Contributions:
0

How to edit text for minimum order mod?

Hello, I installed a minimum order mod found at http://www.modyourzencart.com/free-of-charge/general-modules/min-order-amount

How can I change this text (TWENTY_DOLLAR_MINIMUM_ORDER_PLEASE_) to $20 Minimum order please. And instead of burgandy change the notification area red.

I was messing around with tpl_shopping_cart_default.php

<?php // BOF MIN ORDER AMOUNT if ($_SESSION['cart']->total < MIN_ORDER_AMOUNT) {?> <div class="messageStackError"><?php echo sprintf(TWENTY_DOLLAR_MINIMUM_ORDER_PLEASE, $currencies->format(MIN_ORDER_AMOUNT)); ?></div>

Every time a I take out the under scores or try to add $20 in the line I get an error message on my websites shopping cart content display.

Does anyone know a solution for this.

Thank you

19 May 2007, 11:25 PM
#2
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: How to edit text for minimum order mod?

In your includes/languages/english/your_template/shopping_cart.php file,

find:

define('TABLE_HEADING_REMOVE', 'Remove');

add right below:

define('TWENTY_DOLLAR_MINIMUM_ORDER_PLEASE', CURRENCY_SYMBOL . '20 minimum order please');

This should work as expected. :wink2:

20 May 2007, 12:31 AM
#3
highroller avatar

highroller

New Zenner

Join Date:
May 2007
Posts:
23
Plugin Contributions:
0

Re: How to edit text for minimum order mod?

Thank you, for your reply.

I added the code that you provided but now is shows this in the shopping cart contents area

CURRENCY_SYMBOL20 minimum order please

How can I make it so that the $ show?

Thank you

20 May 2007, 1:41 AM
#4
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: How to edit text for minimum order mod?

Replace:

define('TWENTY_DOLLAR_MINIMUM_ORDER_PLEASE', CURRENCY_SYMBOL . '20 minimum order please');  

with:

define('TWENTY_DOLLAR_MINIMUM_ORDER_PLEASE', '$20 minimum order please');  

Simple as that. :cool:

20 May 2007, 1:51 AM
#5
highroller avatar

highroller

New Zenner

Join Date:
May 2007
Posts:
23
Plugin Contributions:
0

Re: How to edit text for minimum order mod?

That did it. :smile: Thank you for all you help TheOracle.