Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    May 2008
    Posts
    4
    Plugin Contributions
    0

    Default Hiding price differences in drop down?

    Hey guys I hope this is the right section for this.

    I'm trying to find where I can hide the price differences between different sizes/quantities for the products in my store. I don't want it to show the +$2.50, or -$3.50, etc.

    Where can I find this feature?

    Thanks!

  2. #2
    Join Date
    May 2008
    Posts
    4
    Plugin Contributions
    0

    Default Re: Hiding price differences in drop down?

    Nobody?

  3. #3
    Join Date
    Jan 2004
    Posts
    66,374
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Hiding price differences in drop down?

    Why do you want to hide that information from them? Surely it's appropriate to let them know when an option is going to increase the price they're seeing ...?



    To do it, you could try changing this line:
    Code:
                        $products_options_display_price .= $price_onetime;
    to this:
    Code:
                        $products_options_display_price = '';
    in /includes/modules/YOUR_TEMPLATE/attributes.php
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    May 2008
    Posts
    4
    Plugin Contributions
    0

    Default Re: Hiding price differences in drop down?

    I'll try that thanks. I forget why the client wants it hidden exactly. I believe we have the price differences listed in the description.

    I'll give that a shot, hopefully it works. Thanks!

  5. #5
    Join Date
    May 2008
    Posts
    4
    Plugin Contributions
    0

    Default Re: Hiding price differences in drop down?

    Well after checking the file you directed me to, I found that the line is ALREADY changed to what you suggested. So... I'm stuck.

  6. #6
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,237
    Plugin Contributions
    20

    Default Re: Hiding price differences in drop down?

    DrByte - one reason to hide it would be in a situation like I currently have... setting up a pizza store; 32 different "extra" toppings, all at the same price - looks much neater to hide the attribute prices and say somewhere "All toppings are xx"
    Development Manager @ JSWeb Ltd
    Over 15 years with Zencart

  7. #7
    Join Date
    May 2008
    Posts
    3
    Plugin Contributions
    0

    Default Re: Hiding price differences in drop down?

    Hey Dr. Byte

    That is exactly what I was looking for. Thanks!!!!

    For anyone else......in my file the line was listed at 164.....maybe different in yours but at least maybe that'll get you close.

  8. #8
    Join Date
    Jan 2008
    Location
    Healdsburg, CA
    Posts
    18
    Plugin Contributions
    0

    Default Re: Hiding price differences in drop down?

    How do you do this? Everything in my store is the same price per pound. I don't want my customer to see a price next to every single option from 1 oz to 10 lb! To much information! There's got to be a way to do this.

  9. #9
    Join Date
    Jan 2008
    Location
    Healdsburg, CA
    Posts
    18
    Plugin Contributions
    0

    Default Re: Hiding price differences in drop down?

    Figured it out. Open includes/modules/attributes.php. Go to around line 158 and find:

    Code:
    // normal price
                            if ($new_attributes_price == 0) {
                              $products_options_display_price= '';
                            } else {
                              $products_options_display_price= ATTRIBUTES_PRICE_DELIMITER_PREFIX . $products_options->fields['price_prefix'] .
                              $currencies->display_price($new_attributes_price, zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ATTRIBUTES_PRICE_DELIMITER_SUFFIX;
                            }
    and replace it with:

    Code:
    // normal price
                            if ($new_attributes_price == 0) {
                              $products_options_display_price= '';
                            } else {
                              $products_options_display_price= '';
                             }
    That just tells it to display a blank.

  10. #10
    Join Date
    Jan 2007
    Posts
    32
    Plugin Contributions
    0

    Default Re: Hiding price differences in drop down?

    I tried to hide the attribute price using CSS by adding <span> tag.

    Code:
     // normal price
                            if ($new_attributes_price == 0) {
                              $products_options_display_price= '';
                            } else {
    $products_options_display_price= '<span>' . ATTRIBUTES_PRICE_DELIMITER_PREFIX . $products_options->fields['price_prefix'] .
    $currencies->display_price($new_attributes_price, zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ATTRIBUTES_PRICE_DELIMITER_SUFFIX . '</span>';
                            }
    It did work for radio option type, but it didn't work for dropdown option type.

    Can some one please let me know where I did wrong.

    Thanks

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 Hiding modifiers from customers in Options drop-down
    By envisionocity in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 26 Mar 2012, 06:49 PM
  2. Drop Down Price Changes
    By lxidesigns in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 1 Sep 2011, 08:42 PM
  3. Replies: 3
    Last Post: 19 Apr 2010, 06:22 PM
  4. Hiding drop-down attributes in order
    By english_1969 in forum General Questions
    Replies: 0
    Last Post: 23 Jul 2009, 05:58 PM
  5. Qty / Price drop-down
    By Jazzperson in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 6 Nov 2007, 11:14 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