Forums / General Questions / Discount coupon off of Sales not Shipping and Sales

Discount coupon off of Sales not Shipping and Sales

Locked

Started by batteryman on 12 Oct 2007, 5:49 PM · Views: 2,025

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
12 Oct 2007, 5:49 PM
#1
batteryman avatar

batteryman

Zen Follower

Join Date:
Jul 2004
Location:
Las Vegas
Posts:
327
Plugin Contributions:
0

Discount coupon off of Sales not Shipping and Sales

Hello,

This is a two part question.

  1. I was looking around in /public_html/includes/modules/checkout_process.php and I came across this bit of code and at line 88 there is a double $$. Should it be that way or should I remove one of the $?

$credits_applied = 0;
for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) {
if ($order_totals[$i]['code'] == 'ot_subtotal') $order_subtotal = $order_totals[$i]['value'];
if ($$order_totals[$i]['code']->credit_class == true) $credits_applied += $order_totals[$i]['value'];
if ($order_totals[$i]['code'] == 'ot_total') $ototal = $order_totals[$i]['value'];

  1. I want to change the discount coupon to only remove whatever the incentive is off of the products being purchased and not the entire amount that includes the shipping.

How would I accomplish this??

Thank you,

Avel

User of zencart

12 Oct 2007, 6:30 PM
#2
batteryman avatar

batteryman

Zen Follower

Join Date:
Jul 2004
Location:
Las Vegas
Posts:
327
Plugin Contributions:
0

Re: Discount coupon off of Sales not Shipping and Sales

Hello,

Yeah.... Um Im feel stupid.... I found out how to do it in the admin under Modules>Order Totals.

But I am still curious on the first part of the question.

Thank you,

Avel

User of zencart