Page 1 of 4 123 ... LastLast
Results 1 to 10 of 33
  1. #1
    Join Date
    Aug 2011
    Posts
    199
    Plugin Contributions
    0

    Default Price not getting displayed correctly; with attributes

    Hi,
    I have used radio buttons to price a product, based on its sizes.
    So in the pricing screen I have kept the price as 0. This is an exempted product, hence I have created a new tax class called "no vat" & mentioned the rate as 0%.
    attaching the screen shot for the same:
    Click image for larger version. 

Name:	product setting.jpg 
Views:	135 
Size:	30.8 KB 
ID:	14208

    Next in the attribute section I have done the following setting :
    Click image for larger version. 

Name:	attribute setting.jpg 
Views:	146 
Size:	59.4 KB 
ID:	14210

    On this category I have put a discount of 10% thru salemaker.

    But, if you see the website - the amount next to radio button has not taken the discount, whereas the amount next to the price is showing the discount.

    Another funny thing is that despite mentioning "no vat", a vat of 5.5% is added on each of these products in the attribute window. I have highlighted that in the image above.
    I have a vat category of 5.5%, but clearly I have not defined it here.
    I have no clue what to change where. Please help !
    Attached Images Attached Images  

  2. #2
    Join Date
    Aug 2011
    Posts
    199
    Plugin Contributions
    0

    Default Re: Price not getting displayed correctly; with attributes

    Anyone ?

  3. #3
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: Price not getting displayed correctly; with attributes

    What price is displayed on the public side of things, not admin screen?
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

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

    Default Re: Price not getting displayed correctly; with attributes

    I am pretty sure that I have found the issue for that, I just need to test a little more ...

    Is there anywhere else you see a problem on the Product Tax/No Tax issue besides the Attributes Controller?

    I will try to finish testing this fix as soon as I can and get the fix for v1.5.1 as I have been working on fixes for v1.5.3 ...
    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: v1.5.5]
    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. #5
    Join Date
    Aug 2011
    Posts
    199
    Plugin Contributions
    0

    Default Re: Price not getting displayed correctly; with attributes

    @ RixStix - by mistake I have attached wrong image. The last one was meant to be the site image. Here it is :
    Click image for larger version. 

Name:	Site.jpg 
Views:	77 
Size:	47.9 KB 
ID:	14215

  6. #6
    Join Date
    Aug 2011
    Posts
    199
    Plugin Contributions
    0

    Default Re: Price not getting displayed correctly; with attributes

    @ RixStix - by mistake I have attached wrong image. The last one was meant to be the site image. Here it is :
    Click image for larger version. 

Name:	Site.jpg 
Views:	77 
Size:	47.9 KB 
ID:	14215

  7. #7
    Join Date
    Aug 2011
    Posts
    199
    Plugin Contributions
    0

    Default Re: Price not getting displayed correctly; with attributes

    @ Ajeh, Thank you so much !
    There are only two categories; on my site; where there is no tax. One of them is books and the other these. I do not have attributes on books, so can't see any issue there.
    If you want me to do some testing at my end, would be happy to help :)

  8. #8
    Join Date
    Aug 2011
    Posts
    199
    Plugin Contributions
    0

    Default Re: Price not getting displayed correctly; with attributes

    @ Ajeh, Thank you so much !
    There are only two categories; on my site; where there is no tax. One of them is books and the other these. I do not have attributes on books, so can't see any issue there.
    If you want me to do some testing at my end, would be happy to help :)

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

    Default Re: Price not getting displayed correctly; with attributes

    devyani ... pretty positive I will have your solution tomorrow after I wake up and have some coffee ... :)

    Your issue is actually more of a "proper display" problem and not an error of bad or damaged code and does not affect you store, but is wrong and a pain in the admin ...

    Please let me know if you have seen this anywhere else in your admin or your store, besides the attributes controller so that I can give you those fixes when I put the fix together for you on the Attributes Controller ...

    NOTE: This will also be fixed in our next release and I am surprised as heck that no one has reported this until now ... thanks for the excellent catch! I will get you the solution quick as I can tomorrow but it is 3:14am here and I gotta snooze a bit first ...
    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: v1.5.5]
    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!

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

    Default Re: Price not getting displayed correctly; with attributes

    To fix the Attributes controller to display the Tax or No Tax on a Product, edit the file:
    /your_secret_admin/attributes_controller.php

    Change the code around line 1222 and add the code in RED:
    Code:
    <?php
      $current_options_name = '';
      // get products tax id
      $product_check = $db->Execute("select products_tax_class_id from " . TABLE_PRODUCTS . " where products_id = '" . $products_filter . "'" . " limit 1");
    //  echo '$products_filter: ' . $products_filter . ' tax id: ' . $product_check->fields['products_tax_class_id'] . '<br>';
      while (!$attributes_values->EOF) {
        $current_attributes_products_id = $attributes_values->fields['products_id'];
    Change the code around line 1594 and add the code in RED:
    Code:
    $attributes_price_final = $currencies->display_price($attributes_price_final, zen_get_tax_rate($product_check->fields['products_tax_class_id']), 1);
    Change the code around line 1596 and add the code in RED:
    Code:
    $attributes_price_final_onetime = $currencies->display_price($attributes_price_final_onetime, zen_get_tax_rate($product_check->fields['products_tax_class_id']), 1);
    Change the code around line 1629 and add the code in RED:
    Code:
          $new_attributes_price = '|' . $currencies->display_price($new_attributes_price, zen_get_tax_rate($product_check->fields['products_tax_class_id']), 1);
    Now check to see if the Product without tax displays in the Attributes Controller right and check it a Product with tax displays in the Attributes Controller right ...
    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: v1.5.5]
    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!

 

 
Page 1 of 4 123 ... LastLast

Similar Threads

  1. want to multiply the attributes columns with price displayed..
    By satzin in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 6 Aug 2009, 07:42 PM
  2. Attributes field not showing correctly in New install with
    By roshlin in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 1 Feb 2009, 12:45 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