Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Hiding price differences in drop down?

Hiding price differences in drop down?

Views: 2,456

Results 1 to 12 of 12
14 May 2008, 11:08 PM
#1
cafecoffee avatar

cafecoffee

New Zenner

Join Date:
May 2008
Posts:
4
Plugin Contributions:
0

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!

15 May 2008, 4:37 PM
#2
cafecoffee avatar

cafecoffee

New Zenner

Join Date:
May 2008
Posts:
4
Plugin Contributions:
0

Re: Hiding price differences in drop down?

Nobody?

15 May 2008, 10:07 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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: $products_options_display_price .= $price_onetime; to this:```
$products_options_display_price = '';

15 May 2008, 11:28 PM
#4
cafecoffee avatar

cafecoffee

New Zenner

Join Date:
May 2008
Posts:
4
Plugin Contributions:
0

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!

19 May 2008, 11:43 PM
#5
cafecoffee avatar

cafecoffee

New Zenner

Join Date:
May 2008
Posts:
4
Plugin Contributions:
0

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.

27 May 2008, 4:26 PM
#6
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

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"

5 Jun 2008, 9:03 PM
#7
2amaltars avatar

2amaltars

New Zenner

Join Date:
May 2008
Posts:
1
Plugin Contributions:
0

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.

26 Jun 2008, 7:01 AM
#8
exactlyhow avatar

exactlyhow

New Zenner

Join Date:
Jan 2008
Location:
Healdsburg, CA
Posts:
20
Plugin Contributions:
0

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.

26 Jun 2008, 7:19 AM
#9
exactlyhow avatar

exactlyhow

New Zenner

Join Date:
Jan 2008
Location:
Healdsburg, CA
Posts:
20
Plugin Contributions:
0

Re: Hiding price differences in drop down?

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

// 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:

// normal price
                        if ($new_attributes_price == 0) {
                          $products_options_display_price= '';
                        } else {
                          $products_options_display_price= '';
                         }

That just tells it to display a blank.

26 Jun 2008, 8:18 PM
#10
momokui avatar

momokui

New Zenner

Join Date:
Jan 2007
Posts:
32
Plugin Contributions:
0

Re: Hiding price differences in drop down?

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

 // 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. :no::no::no:

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

Thanks

22 Aug 2010, 5:28 PM
#11
willywanka666 avatar

willywanka666

New Zenner

Join Date:
Jul 2010
Location:
Tampa
Posts:
35
Plugin Contributions:
0

Re: Hiding price differences in drop down?

Thanks! Worked Great!

2 Mar 2011, 4:36 AM
#12
scott_see avatar

scott_see

New Zenner

Join Date:
Apr 2005
Location:
White Salmon, WA
Posts:
60
Plugin Contributions:
0

Re: Hiding price differences in drop down?

Look for //normal price comment

Here's what I did to get rid of the options price in attributes.php

                    // 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'] .       CHANGE BY SCOTT SEE

//                          $currencies->display_price($new_attributes_price, zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ATTRIBUTES_PRICE_DELIMITER_SUFFIX;        CHANGE BY SCOTT SEE

                        }

                      }

                    }



//                    $products_options_display_price .= $price_onetime;                     CHANGE BY SCOTT SEE
                    $products_options_display_price .= '';