Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25
  1. #11
    Join Date
    Nov 2008
    Posts
    46
    Plugin Contributions
    0

    Default Re: Multiple products with fixed quantity pricing

    Quote Originally Posted by Ajeh View Post
    And I am assuming that you have your Products marked as Taxable Goods on each ...
    Yes

    On the Tax Rate, what is the priority set to if you edit it?
    Priority 0

    Have you a link to your site that we could perhaps peek at?
    Try this :

    http://home.reetspetit.net/testbay/ZenCart

    Only two products have prices - Look for Badges, Button Badges, 32mm and 38mm

    If you want an admin login I'll set one up for you when I'm back as I have to go out for a couple of hours.

    B. Rgds
    John

  2. #12
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Multiple products with fixed quantity pricing

    Change the Priority to 1 ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #13
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Multiple products with fixed quantity pricing

    Looks like it is working for me:
    Sub-Total: £250.00
    Free Shipping: £0.00
    UK VAT: £50.00
    Total: £250.00
    Did you change something?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #14
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Multiple products with fixed quantity pricing

    Scratch the working part ...

    Look in the Modules ... Order Totals ...

    What happens if you click on each one and do the following:

    1 Save settings to NotePad

    2 REMOVE

    3 INSERT

    If there is no change, what happens if you switch to the Classic Template?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #15
    Join Date
    Nov 2008
    Posts
    46
    Plugin Contributions
    0

    Default Re: Multiple products with fixed quantity pricing

    Quote Originally Posted by Ajeh View Post
    Scratch the working part ...

    Look in the Modules ... Order Totals ...

    What happens if you click on each one and do the following:

    1 Save settings to NotePad

    2 REMOVE

    3 INSERT

    If there is no change, what happens if you switch to the Classic Template?
    Changed Priority to 1

    No change

    Removed Modules, except for Total which wouldn't remove.

    Added back Shipping, Sub-Total, Tax

    No change.

    Changed to 'Classic' template (site curently using it)

    No change.

    FYI, this was a 1.3.9e site that I was upgrading to 1.3.9h

    The original site had various code changes made by someone else. Unfortunately they hadn't used the template system. I cleared out the old code. Did a new install to update the database and then added back the changes into it's own template structure bit by bit. The only core changes made that I remember that could not be templated were some 5 extra fields added to includes/modules/pages/product_info/main_template_vars.php which are picked up and displayed on the (now templated) product info page.

    Changed that back to the original file. No change.

    Where does it do the calculation for the Total ?

    B. Rgds
    John

  6. #16
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Multiple products with fixed quantity pricing

    Check the order class:
    /includes/classes/order.php

    Check the order total module for Total ot_total.php
    /includes/modules/order_total/ot_total.php

    for starters ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #17
    Join Date
    Nov 2008
    Posts
    46
    Plugin Contributions
    0

    Default Re: Multiple products with fixed quantity pricing

    Quote Originally Posted by Ajeh View Post
    Check the order class:
    /includes/classes/order.php

    Check the order total module for Total ot_total.php
    /includes/modules/order_total/ot_total.php

    for starters ...
    Well I don't pretend to be a PHP guru but I do have the system in svn and can roughly find my way round Eclipse.... I'll try and run it through the debuggerer and see if I can see anything obvious. Clearly neither of us can see quite what the problem is :-) However, there is one, so that's as good a place to start as any !

    If you want admin access to the site I can PM you a login. I think I can give you svn access - let me know if you want to try and and I will look further.

    Meanwhile, it's the weekend and I think it's beer o'clock :-) Will have a look if I get a chance. If not, Hasta Lunes......

    And thanks once again for all your efforts. It is greatly appreciated. It's why I picked ZenCart......

    B. Rgds
    John

  8. #18
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,870
    Plugin Contributions
    96

    Default Re: Multiple products with fixed quantity pricing

    What is your setting for your admin's Configuration->My Store->Display Prices with Tax? It looks like it might be set to true ...

  9. #19
    Join Date
    Nov 2008
    Posts
    46
    Plugin Contributions
    0

    Default Re: Multiple products with fixed quantity pricing

    Quote Originally Posted by lat9 View Post
    What is your setting for your admin's Configuration->My Store->Display Prices with Tax? It looks like it might be set to true ...
    Display Prices with Tax - false

    :-(

    Still wouldn't explain why it is not adding the tax to give a Total methinks ??

  10. #20
    Join Date
    Nov 2008
    Posts
    46
    Plugin Contributions
    0

    Default Re: Multiple products with fixed quantity pricing

    OK, got bored before bedtime. The calculation is done in order.php here

    Code:
        // Update the final total to include tax if not already tax-inc
        if (DISPLAY_PRICE_WITH_TAX == 'true') {
          $this->info['total'] = $this->info['subtotal'] + $this->info['shipping_cost'];
        } else {
          $this->info['total'] = $this->info['subtotal'] + $this->info['tax'] + $this->info['shipping_cost'];
    At this point I checked in Eclipse and the outputs were :

    $this->info['subtotal'] = 175
    $this->info['tax'] = (double) 0
    $this->info['shipping_cost'] = null

    info Array [16]
    order_status (string:1) 1
    currency (string:3) GBP
    currency_value (string:10) 1.00000000
    payment_method null
    payment_module_code null
    coupon_code null
    shipping_method null
    shipping_module_code null
    shipping_cost null
    subtotal (double) 175
    shipping_tax (int) 0
    tax (double) 0
    total (int) 0
    tax_groups Array [1]
    comments (string:0)
    ip_address (string:29) 192.168.100.24 - 192.168.100.24

    products Array [1]
    0 Array [16]
    qty (int) 100
    name (string:17) 38mm Button Badge
    model (string:6) 338253
    tax (int) 0
    tax_groups Array [1]
    tax_description (string:9) Sales Tax
    price (string:6) 1.7500
    final_price (double) 1.75
    onetime_charges (int) 0
    weight (int) 0
    products_priced_by_attribute (string:1) 0
    product_is_free (string:1) 0
    products_discount_type (string:1) 2
    products_discount_type_from (string:1) 0
    id (int) 222
    rowClass (string:7) rowEven

    Think the problem is earlier in the file but need some sleep now :-)

    B. Rgds
    John

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Quantity discount with multiple products 1.3.9h
    By scotto9 in forum General Questions
    Replies: 2
    Last Post: 27 Dec 2010, 11:24 PM
  2. products-multiple downloads, with individual attribute pricing
    By pushpull in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 17 Aug 2008, 03:06 AM
  3. FIXED Muliple Quantities at FIXED Prices per Multiple Quantity???
    By awarrior in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 4 Apr 2007, 09:42 PM

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