Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25
  1. #11
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Option Prices in Parentheses

    You might consider making the Physical Gift Certificate a Document Product so that you can customize the code easier on the Attributes based on the products_type ...

    Otherwise, when you later want to use Attributes with prices etc. you will not have them there ...
    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!

  2. #12
    Join Date
    Apr 2006
    Posts
    51
    Plugin Contributions
    0

    Default Re: Option Prices in Parentheses

    Seems like so much work for a very simple feature...I had a hard time explaining to my boss that I would need to set aside an entire aftrenoon to remove the parentheses...It's a good thing she trusts me! But sometimes issues like this put a strain on that trust...

  3. #13
    Join Date
    May 2005
    Posts
    18
    Plugin Contributions
    0

    Default Re: Option Prices in Parentheses

    OK I fixed mine.

    This is only for the dropdown box display.

    includes/modules/attributes.php

    Comment out lines 153 - 158.

    // 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_price, zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ') ';
    // }

    Did the trick for me :-)

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

    Default Re: Option Prices in Parentheses

    Well the first part on the weight is just a switch ...

    The Price on Dropdowns gets built and is set at around line 165 in the attributes.php
    PHP Code:
                      $products_options_array[sizeof($products_options_array)-1]['text'] .= 'I AM HERE' $products_options_display_price
    Change your line to read that and you can see what all is effected by that line ...

    Then set your condition for when it should and should not show the price ...
    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
    Apr 2006
    Posts
    51
    Plugin Contributions
    0

    Default Re: Option Prices in Parentheses

    Quote Originally Posted by Ajeh
    Well the first part on the weight is just a switch ...

    The Price on Dropdowns gets built and is set at around line 165 in the attributes.php
    PHP Code:
                      $products_options_array[sizeof($products_options_array)-1]['text'] .= 'I AM HERE' $products_options_display_price
    Change your line to read that and you can see what all is effected by that line ...

    Then set your condition for when it should and should not show the price ...
    VERY interesting -- is there a way to do this with overrides so that it won't be affected by an upgrade?

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

    Default Re: Option Prices in Parentheses

    That is an override using:

    /includes/modules/attributes.php

    And going to:
    /includes/modules/your_template_dir/attributes.php

    However, that has to be checked on upgrades for changes to the original file to see what has to be upgraded on your file ...
    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
    Jul 2006
    Posts
    123
    Plugin Contributions
    0

    Default Re: Option Prices in Parentheses

    Oh hell... I tried that and it did not work for me... looka t my page...
    http://www.timeoutmassage.com.au/zen...roducts_id=480

    I want to get rid of the (+$price) ect.... not sure how... I have the latest version..

    ta
    Dave

  8. #18
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: Option Prices in Parentheses

    [update] - Sorry you meant the whole parenthese - not just the parenthese to be removed.

    I'm really not an an attributer specialist but let's try this out.

    Under your includes/modules/attributes.php file,

    find:

    PHP Code:
    $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'])) . ') '
    replace with:

    PHP Code:
    $products_options_display_price''
    This should do the trick.
    Last edited by TheOracle; 13 Jul 2006 at 02:27 PM.

  9. #19

    Default Re: Option Prices in Parentheses

    I'm having a similar issue.

    Thanks Oracle for that tip. I removed just the parentheses in that part of the code. It would be best (for Gift Certs) if you could show JUST the value without the option name. That way it would not make any difference if you made a mistake (i.e. assigned a $40 value to a "$50" attribute name).

    I'm poking around in attributes.php and if I were a programmer I would add something like:

    Code:
    If products_name == 'Gift Certificate'
       $products_options_details = '';
    Feel free to fix my code!!


    BTW, a less elegant solution is to name your options differently--you CAN have several options with the same name such as "->"
    You'll get a warning about "Possible Duplicate Options" but Zen lets you do it.
    http://soldoutrooms.com/index.php?ma...products_id=26

    This might cause some confusion tho'

  10. #20
    Join Date
    Dec 2005
    Posts
    142
    Plugin Contributions
    0

    Default Re: Option Prices in Parentheses

    There is no includes/modules/attributes.php file.

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. FexEx Parentheses
    By sharc316 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 17 Oct 2011, 04:14 PM
  2. Prices, different prices for each option.
    By askewedviewphotos in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 17 Sep 2011, 06:52 PM
  3. Where to get rid of parentheses in attribute prices?
    By maryx in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 22 Jun 2011, 06:05 PM
  4. Multiple option prices
    By cadfc in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 13 Jul 2006, 03:56 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