Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Managing Customers and Orders / product price in order after discount

product price in order after discount

Locked

Started by frilansreklam on 16 Jun 2009, 12:49 PM · Views: 990

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
16 Jun 2009, 12:49 PM
#1
frilansreklam avatar

frilansreklam

New Zenner

Join Date:
Sep 2008
Location:
Sweden
Posts:
99
Plugin Contributions:
1

Post #1 by frilansreklam

I need a quick answer. I don't sit with my working computer and can't get into the database.

If a customer buy two products and one products cost $10 and the other $15.
the customer use discount on 10%. What is the products price in the database for the order after discount? Is it updated or not?

(I know about the problem with tax so this is without tax)

I need to know this for a customers API

Swedish Zen Cart Support page http://www.zencart.nu

16 Jun 2009, 12:53 PM
#2
igd avatar

igd

New Zenner

Join Date:
Nov 2004
Posts:
76
Plugin Contributions:
0

Post #2 by igd

Not enough information really. is the discount from a coupon on order total, is one product 10% off or both?

depending on which the price in the order table will be either linked to order total module that is being used and the price different.

Dan - statuscontrols.com/web
web programming and design

16 Jun 2009, 1:16 PM
#3
frilansreklam avatar

frilansreklam

New Zenner

Join Date:
Sep 2008
Location:
Sweden
Posts:
99
Plugin Contributions:
1

Post #3 by frilansreklam

Ok.
Most of our administrations program in Sweden works from products not from the order total. So for a API work correctly it need to set discount on the product not in the order total.

really it dosn't metter if it's % or a amount discount. or if it's a gv. I need to know if the price change in orders_products or any other field.

If this not change is there any modules that make this for some part that I can work from?

Swedish Zen Cart Support page http://www.zencart.nu

17 Jun 2009, 2:50 PM
#4
frilansreklam avatar

frilansreklam

New Zenner

Join Date:
Sep 2008
Location:
Sweden
Posts:
99
Plugin Contributions:
1

Post #4 by frilansreklam

I have idéas how to fix it.

  1. count all products and split discount total in that pieces. then add it to products price in orders_products.
  2. create a new products in orders_products that is the discount.

Last one is tricky I think. So for the first one where should I put the code for best result?

(I don't have wroten the code yet)

I use 1.3.8

Swedish Zen Cart Support page http://www.zencart.nu