Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / How to show Low Order Fee in shopping cart?

How to show Low Order Fee in shopping cart?

Views: 1,256

Results 1 to 6 of 6
6 Mar 2012, 6:47 PM
#1
feznizzle avatar

feznizzle

Totally Zenned

Join Date:
Apr 2010
Posts:
900
Plugin Contributions:
0

How to show Low Order Fee in shopping cart?

Hi!

I have an order minimum of $50 with a $10 fee. Currently, this fee does not show up until near the end of the checkout process.

I can find the file that controls the fee (/includes/modules/order_total/ot_loworderfee.php) but I'm not sure which file controls the shopping cart display... nor do I have any clue what to insert into the cart file to reflect that fee.

I can see that similar questions have been asked, but I have not found the answer. Sorry if this is a repeat or in the wrong place!

Can someone please point me in the right direction?

Thanks,
Mike

6 Mar 2012, 10:27 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to show Low Order Fee in shopping cart?

You could test the shopping cart total to the MODULE_ORDER_TOTAL_LOWORDERFEE_ORDER_UNDER and if lower then tell the customer there will be a fee of MODULE_ORDER_TOTAL_LOWORDERFEE_FEE ...

NOTE: you should also review the module for Virtual Products and Gift Certificates ...

7 Mar 2012, 2:40 PM
#3
feznizzle avatar

feznizzle

Totally Zenned

Join Date:
Apr 2010
Posts:
900
Plugin Contributions:
0

Re: How to show Low Order Fee in shopping cart?

Hi Ajeh,

Thanks for pointing me in the right direction.

Unfortunately, I barely know enough about php to perform an easy find/replace change. I can't even write a simple if/then routine like the one you suggest. :cry:

In case others come along later, this is what I did:

  1. Open the file /includes/languages/english/shopping_cart.php
  2. Find this statement:
    define('HEADING_TITLE', 'Your Shopping Cart Contents');
  3. Replace with this:
    define('HEADING_TITLE', 'Your Shopping Cart Contents<h4><span style="color: #ff0000;"><strong>NOTE:</strong> $10 Order Minimum charge will be added to orders under $50.</span></h4>');

This is far from ideal, but what it does is put an ALERT IN RED at the top of your shopping cart page. So now when your customer adds something to the cart, they will be given notice.

This is far from ideal because the ALERT is always there, no matter what the value of the cart content is. Ideally, the alert would only be shown until the minimum is reached.

If someone figures out how to write the routine suggested by Ajeh, would you please post it in here?

Thanks!

7 Mar 2012, 2:57 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to show Low Order Fee in shopping cart?

You could try something like this in the language file:

//define('HEADING_TITLE', 'Your Shopping Cart Contents');
define('HEADING_TITLE', (MODULE_ORDER_TOTAL_LOWORDERFEE_ORDER_UNDER > $_SESSION['cart']->show_total() ? 'Your Shopping Cart Contents<h4><span style="color: #ff0000;"><strong>NOTE:</strong> ' . $currencies->format(MODULE_ORDER_TOTAL_LOWORDERFEE_FEE) . ' Order Minimum charge will be added to orders under ' . $currencies->format(MODULE_ORDER_TOTAL_LOWORDERFEE_ORDER_UNDER) . '. </span></h4>' : 'Your Shopping Cart Contents'));
7 Mar 2012, 3:13 PM
#5
feznizzle avatar

feznizzle

Totally Zenned

Join Date:
Apr 2010
Posts:
900
Plugin Contributions:
0

Re: How to show Low Order Fee in shopping cart?

YAHOO!!!

That worked like a dream!!!!!
:clap::clap::clap:

Thank you so much, Linda! Wonder Woman to the rescue!

BTW, last night I signed up to buy you guys some coffee every month. I hope lots of other ZC users who benefit from all this free help do the same.

Thanks again!

7 Mar 2012, 3:21 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to show Low Order Fee in shopping cart?

Thanks for the update that this works for you and thanks for the monthly support ... it really helps us to provide you with the best free support and free ecommerce software ... :smile: