osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Coupons are Added instead of - in Admin

This is a discussion on Coupons are Added instead of - in Admin within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; I have been searching for an answer, but havent been successful just yet... Current Version: osCMax v2.0 RC2 No ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 12-28-2007, 08:44 AM
Active Member
 
Join Date: May 2003
Posts: 137
Thanks: 3
Thanked 1 Time in 1 Post
Rep Power: 0
countingsheep
Exclamation Coupons are Added instead of - in Admin

I have been searching for an answer, but havent been successful just yet...

Current Version: osCMax v2.0 RC2

No shipping is installed. Admin wants to send customer email with total for shipping after package is ready to be shipped. Orders work fine until we have a coupon set up.

In admin, it shows that the coupon is being added to the total instead of subtracted:


1 x Catch A Falling Star Tag Ornament (Sale 323) $8.21
1 x Warm 'n Wooly Mittens (Sale 25 $16.46
1 x Folk Art Hangables (Individual) (Sale 236B) $7.96
Sub-Total: $32.63
Shipping $4.60
Discount Coupons:YES0710: $3.27
Total: $40.50





How is shipping being calculated if nothing is set to use to calculate it, and why is the discount being added?

Last edited by countingsheep; 12-28-2007 at 09:44 AM. Reason: version of oscmax
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 12-28-2007, 02:13 PM
Active Member
 
Join Date: May 2003
Posts: 137
Thanks: 3
Thanked 1 Time in 1 Post
Rep Power: 0
countingsheep
Default Re: Coupons are Added instead of - in Admin

Just a note, this is only happening in the admin area, the email that the customer and the admin owner gets, reflects the proper calculations?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 12-28-2007, 05:38 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,190
Thanks: 66
Thanked 290 Times in 276 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: Coupons are Added instead of - in Admin

See the bugtracker and sticky here on the forums regarding this. This is an old issue that has to do with how the order editor mod was coded.

There is a fix posted here:
Edit Orders Bug
__________________
Michael Sasek
osCMax Developer


osCMax Templates - Hundreds of premium quality templates. New designs every month!

xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience


osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 12-28-2007, 08:26 PM
Active Member
 
Join Date: May 2003
Posts: 137
Thanks: 3
Thanked 1 Time in 1 Post
Rep Power: 0
countingsheep
Default Re: Coupons are Added instead of - in Admin

Using dreamweaver to search, neither of the files have either of those lines of code in it.... based on the set of instructions in this link.
Edit Orders Bug
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 12-28-2007, 08:40 PM
Active Member
 
Join Date: May 2003
Posts: 137
Thanks: 3
Thanked 1 Time in 1 Post
Rep Power: 0
countingsheep
Default Re: Coupons are Added instead of - in Admin

The edit_orders.php file... this is the only part I can find that is similar:
around Line 1048
// Override order.php Class's Field Limitations
$totals_query = tep_db_query("select * from " . TABLE_ORDERS_TOTAL . " where orders_id = '" . (int)$oID . "' order by sort_order");
$order->totals = array();
while ($totals = tep_db_fetch_array($totals_query)) {
$order->totals[] = array('title' => $totals['title'], 'text' => $totals['text'], 'class' => $totals['class'], 'value' => $totals['value'], 'orders_total_id' => $totals['orders_total_id']);
}

Would that be where I change it? Although, in the admin/classes/orders.php file, I cant find anything close to what he shows..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 12-28-2007, 08:53 PM
Active Member
 
Join Date: May 2003
Posts: 137
Thanks: 3
Thanked 1 Time in 1 Post
Rep Power: 0
countingsheep
Default Re: Coupons are Added instead of - in Admin

After looking into this more, I see the file being used for the edit_orders.php file is

$Id: edit_orders.php,v 1.2.2.1.2.2 2005/09/21 20:57:37 Michael Sasek Exp $

osCMax Power E-Commerce
osCommerce Documentation by OSCdox :: osCommerce and osCMax documentation

Copyright (c) 2003 osCommerce
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 12-28-2007, 09:10 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,190
Thanks: 66
Thanked 290 Times in 276 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: Coupons are Added instead of - in Admin

Upgrade to RC3 and then fix it
__________________
Michael Sasek
osCMax Developer


osCMax Templates - Hundreds of premium quality templates. New designs every month!

xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience


osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 12-29-2007, 09:06 PM
Active Member
 
Join Date: May 2003
Posts: 137
Thanks: 3
Thanked 1 Time in 1 Post
Rep Power: 0
countingsheep
Default Re: Coupons are Added instead of - in Admin

So will it cause major mishaps if I just replace that one file?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 12-29-2007, 10:12 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,190
Thanks: 66
Thanked 290 Times in 276 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: Coupons are Added instead of - in Admin

It shouldn't. Just make a backup of the original one in your version and give it a shot.
__________________
Michael Sasek
osCMax Developer


osCMax Templates - Hundreds of premium quality templates. New designs every month!

xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience


osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 12-30-2007, 09:24 AM
Active Member
 
Join Date: May 2003
Posts: 137
Thanks: 3
Thanked 1 Time in 1 Post
Rep Power: 0
countingsheep
Default Re: Coupons are Added instead of - in Admin

That caused errors just adding the one file. Maybe I am supposed to add all three.. I will try that... but I also have another question.. why does this happen:

That is what is on the email the client receives after placing the order.

FROM: nobody@black.countingsheepwebdesigns.com on behalf of Diane Rudolph [diane@thebrushnpalette.com]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Coupons by Ingo michael_s New osCommerce Contributions 0 12-07-2007 12:30 PM
Auth.net Transaction added to Admin mrgtih2 Authorize.net 0 08-07-2007 05:37 AM
WYSIWYG editor for added pages in catalog section of admin themainebaby osCMax v2 Customization/Mods 6 02-20-2006 12:08 PM
Why don't popups work when products are added through Admin? Shadeau osCMax v1.7 Installation 1 05-28-2005 11:54 AM
Strange message in Admin at Coupons area ozstar osCMax v1.7 Discussion 2 04-18-2005 04:35 PM


All times are GMT -8. The time now is 03:31 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax