Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2006
    Posts
    12
    Plugin Contributions
    0

    Default Free Product set to Free showing Attribute Variable - help?

    Hello.

    I'm running the latest version of Zen and I'm having a visual issue with Downloadable products set to be FREE.

    Everything is set up correctly in the Attributes Controller and the Option Name I have is "Product Download" and the Value is "Zip File Archive".

    It looks fine at regular price, but when I set the price to zero and set up product to display as "free" (so I can get the FREE graphical icon) I get this:

    Zip File Archive [was: +$0.00 now is: Free]

    Is there a way to make it just say "Zip File Archive" without the "[was: +$0.00 now is: Free]" addendum to the end? Is there a setting I missed?

    Did a search here but couldn't find anything. Any help would be greatly appreciated.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,726
    Plugin Contributions
    6

    Default Re: Free Product set to Free showing Attribute Variable - help?

    When setting up a Product that is a Download ...

    1 Downloads are NOT Virtual Products

    2 Downloads are NOT Always Free Shipping

    If you want the Product to be Free set the Product as:
    Product is Free YES

    You would need to customize the code for the:
    /includes/modules/attributes.php

    and copy to your templates and overrides directory ...

    Then alter the display for this section of code around lines 143 to 161:
    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_price' (' $products_options->fields['price_prefix'] .
                          
    $currencies->display_price($new_attributes_pricezen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ') ';
                        } 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_pricezen_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_price' (' $products_options->fields['price_prefix'] .
                              
    $currencies->display_price($new_attributes_pricezen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ') ';
                            }
                          }
                        } 
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  3. #3
    Join Date
    Jan 2007
    Posts
    36
    Plugin Contributions
    0

    Default Re: Free Product set to Free showing Attribute Variable - help?

    Quote Originally Posted by Ajeh View Post
    When setting up a Product that is a Download ...

    1 Downloads are NOT Virtual Products

    2 Downloads are NOT Always Free Shipping

    If you want the Product to be Free set the Product as:
    Product is Free YES

    You would need to customize the code for the:
    /includes/modules/attributes.php

    and copy to your templates and overrides directory ...

    Then alter the display for this section of code around lines 143 to 161:
    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_price' (' $products_options->fields['price_prefix'] .
                          
    $currencies->display_price($new_attributes_pricezen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ') ';
                        } 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_pricezen_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_price' (' $products_options->fields['price_prefix'] .
                              
    $currencies->display_price($new_attributes_pricezen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ') ';
                            }
                          }
                        } 
    I'm trying to make this [was: now is:] disappear too. Is the above code the altered code or the code we need to adjust? I'm not a coder, so it means little to me.

  4. #4
    Join Date
    Apr 2008
    Location
    Calif
    Posts
    85
    Plugin Contributions
    0

    help question Re: Free Product set to Free showing Attribute Variable - help?

    Quote Originally Posted by Ajeh View Post
    When setting up a Product that is a Download ...

    1 Downloads are NOT Virtual Products

    2 Downloads are NOT Always Free Shipping

    If you want the Product to be Free set the Product as:
    Product is Free YES

    You would need to customize the code for the:
    /includes/modules/attributes.php

    and copy to your templates and overrides directory ...

    Then alter the display for this section of code around lines 143 to 161:
    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_price' (' $products_options->fields['price_prefix'] .
                          
    $currencies->display_price($new_attributes_pricezen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ') ';
                        } 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_pricezen_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_price' (' $products_options->fields['price_prefix'] .
                              
    $currencies->display_price($new_attributes_pricezen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ') ';
                            }
                          }
                        } 
    Ok finally I found a thread I needed the answer to. However, since I am a chicken when it comes to altering code, bad experiences, can someone tell me where I can make the [was: +$0.00 now is: Free] $0.00 the actual price of the product? This will at least make it look like I mean for that line to be there, until I build my courage to try messing with code again.

    Thanks in advance.
    Last edited by ccembd; 26 Jun 2008 at 08:05 AM. Reason: left out a word

 

 

Similar Threads

  1. Attributes HOW-TO
    By skya in forum Setting Up Categories, Products, Attributes
    Replies: 448
    Last Post: 10 Jul 2006, 08:06 AM
  2. [Newbie Angst] Price Not Showing Next to Attribute
    By AnthonyBaker in forum Setting Up Categories, Products, Attributes
    Replies: 19
    Last Post: 11 Jun 2006, 11:01 PM
  3. Can I set up product quantities per attribute?
    By scrappy in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 29 May 2006, 09:15 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
  •