Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2013
    Location
    Wroclaw, Poland
    Posts
    4
    Plugin Contributions
    0

    Default v150 Order Total takes net price as a base to sum up

    Hello,
    I am running clean v1.50 version of zencart with standard tax module.
    Let's take as an example product which costs 12,59 (net) & 15,49(gross, including 23% tax-> exactly 15,4857)
    Order total for 2 products is calculated as below:
    (2x 12,59)*1,23 = 30,9714 -> 30,97

    And what customer think it should be is 2*15,49 = 30,98.

    The funniest thing is that in customer's chart zencart displays 30,98 both in 'total' field & in row with this product.

    Is there any option in admin panel responsible for switching the base of Order Total or should I just fix the code? Could you tell me where the total price is being calculated?

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: v150 Order Total takes net price as a base to sum up


  3. #3
    Join Date
    Nov 2013
    Location
    Wroclaw, Poland
    Posts
    4
    Plugin Contributions
    0

    Default Re: v150 Order Total takes net price as a base to sum up

    This solution only helps displaying our customer the same value in customer's cart as it is stated at the end of placing order. Taking look at the above example- I would like to calculate the total: gross price*quantity.
    Proposed solution works as long as the quantity is less than 1000 and as long as store admin keeps 4 decimals of net price.

    Could you tell me where to look for order total calculation in code?

  4. #4
    Join Date
    Nov 2013
    Location
    Wroclaw, Poland
    Posts
    4
    Plugin Contributions
    0

    Default Re: v150 Order Total takes net price as a base to sum up

    I don't know why I can't edit my previous message but just to make it clear. Taking the above example:
    Let's assume that we keep 4 decimals of each price.
    Having gross price equal 15.49
    net price = round(15.49 / 1.23 , 4) = 12,5935

    Then a customer wanting to order 1000 such products will see weird price 15490,01
    How is it calculated? round(12.5935*1000*1.23 , 2)
    I would like to make my zencart calculate the final price taking gross as the basis. That would be 15.49 * 1000 = 15490. Could you point me the place in ZenCart's code where order total is calculated?

 

 

Similar Threads

  1. Add base price to attribute price so that attribute shows total amount
    By dcitsolutions in forum Setting Up Categories, Products, Attributes
    Replies: 10
    Last Post: 18 Nov 2010, 08:56 AM
  2. base price + attributes = total
    By jeffreydesign in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 21 Apr 2008, 04:54 PM
  3. How to get total sum of an order on checkout_success page?
    By breadfan in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 20 Feb 2008, 06:27 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR