Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1. #11
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,237
    Plugin Contributions
    20

    Default Re: Attribute to show actual price

    EXCELLENT!!

    I can see how the "no value" situation would be rather tricky to resolve, and unless you have a burning curiosity to figure it out, then please don't spend on more time on it on my behalf. To me - and hopefully to the client - the end result is now clear enough.

    Thank you.
    Development Manager @ JSWeb Ltd
    Over 15 years with Zencart

  2. #12
    Join Date
    Sep 2008
    Posts
    53
    Plugin Contributions
    0

    Default Re: Attribute to show actual price

    This works great for displaying the full price in your attribute dropdowns. I have been running into some problems when a product is on special, though.

    It seems that the price displayed in the dropdown is different from the price added to the cart when the product is on special.

    The price displayed in the dropdown is base price (not discounted) + discounted attribute price. The price added to cart is the correct discounted base price + discounted attribute price.

    Would there be any quick way to fix this?

    Here is an example: http://www.shinetrim.com/zencart/ind...roducts_id=370

    Quote Originally Posted by Ajeh View Post
    Try this ...

    Remove the Attribute Prefixes ...

    Change the file for the display to include the products_price around lines 146 - 164 or so:
    /includes/modules/attributes.php

    to read:
    PHP Code:
                        if ($products_options->fields['options_values_price'] != '0' and ($products_options->fields['product_attribute_is_free'] != '1' and $product_info->fields['product_is_free'] != '1')) {
                          
    // show sale maker discount if a percentage
                          
    $products_options_display_priceATTRIBUTES_PRICE_DELIMITER_PREFIX $products_options->fields['price_prefix'] .
                          
    $currencies->display_price($new_attributes_price $product_info->fields['products_price'], zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ATTRIBUTES_PRICE_DELIMITER_SUFFIX;
                        } else {
                          
    // if product_is_free and product_attribute_is_free
                          
    if ($products_options->fields['product_attribute_is_free'] == '1' and $product_info->fields['product_is_free'] == '1') {
                            
    $products_options_display_priceTEXT_ATTRIBUTES_PRICE_WAS $products_options->fields['price_prefix'] .
                            
    $currencies->display_price($new_attributes_price $product_info->fields['products_price'], zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . TEXT_ATTRIBUTE_IS_FREE;
                          } else {
                            
    // normal price
                            
    if ($new_attributes_price == 0) {
                              
    $products_options_display_price'';
                            } else {
                              
    $products_options_display_priceATTRIBUTES_PRICE_DELIMITER_PREFIX $products_options->fields['price_prefix'] .
                              
    $currencies->display_price($new_attributes_price $product_info->fields['products_price'], zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ATTRIBUTES_PRICE_DELIMITER_SUFFIX;
                            }
                          }
                        } 
    I have to fool with this more for the first attribute's price that starts with no value ... but it's close

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Show attribute sale price with regular price
    By pooka in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 16 Dec 2012, 05:22 PM
  2. v139h Need actual price for options to show instead of added dollar amount
    By In2Deep in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 18 Jul 2012, 12:51 AM
  3. Show Normal Price and Sale Price by Attribute
    By katrobb in forum Setting Up Specials and SaleMaker
    Replies: 1
    Last Post: 4 Oct 2010, 01:28 AM
  4. Can I have each attribute show its price without using Priced By Attribute?
    By linuxmant in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 18 Nov 2009, 07:58 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