Forums / Setting Up Categories, Products, Attributes / Attribute pricing problem

Attribute pricing problem

Views: 2,723

Results 21 to 33 of 33
4 Feb 2010, 12:41 AM
#21
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Attribute pricing problem

I cannot see the dropdown via an image ... :lamo:

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!

4 Feb 2010, 12:47 AM
#22
z3n avatar

z3n

Zen Follower

Join Date:
Apr 2008
Posts:
122
Plugin Contributions:
0

Re: Attribute pricing problem

Ajeh:

I cannot see the dropdown via an image ... :lamo:

Huh? Maybe you over looked the link at the bottom of my post?

http://tinyurl.com/yf5zhwh

:P

4 Feb 2010, 12:51 AM
#23
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Attribute pricing problem

work with me here ...

you said look at the dropdown ... what am I suppose to be looking at it is an image with a picture of a dropdown in it ...

What is the Price of the Product ... and then, EDIT the Attribute that does not work and let me see the data as you have it on the screen when editing ...

I cannot "see" what an image of your dropdown is doing nor guess at the data ...

It sounds like you are trying to use a percentage as a value in an attribute ... and I am not understanding how you are adding a percentage into numeric fields that do not use percentages ... :unsure:

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!

4 Feb 2010, 1:01 AM
#24
z3n avatar

z3n

Zen Follower

Join Date:
Apr 2008
Posts:
122
Plugin Contributions:
0

Re: Attribute pricing problem

lol, ok, you're confusing me now..

For each product, I have 2 attributes.

1 is a flat dollar amount - $350 for example

The second attribute uses price_factor - 0.2 and 0.4

So if the price of the product is $1,000, there would be two options in the attribute drop down selection on the detail page, one for $200 and one for $400, along with the $350 flat charge

If you click on the link and look at my product detail page, you'll see the attributes at the bottom, one labeled "Warranty Options" is the one you want to look at

The dollar amounts in that drop down are not 0.2 and 0.4 of the special price

But if you add the item to your cart, and select one of those options, it calculates exactly 0.2 or 0.4

http://tinyurl.com/yky4u89

4 Feb 2010, 1:14 AM
#25
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Attribute pricing problem

That is what I was trying to pull from you ...

If I do not know the exact information you have used on the Attributes there is no way I can test your problem as I cannot "see" the problem with an image ...

Let me attempt to setup a Product like this and see if I can produce a problem ...

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!

4 Feb 2010, 1:26 AM
#26
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Attribute pricing problem

What do you think a Product price of $1000.00 with an Attribute with a Price Factor: .2
Offset: .4

should calculate to be?

I am getting $1000 for the Product and -$200 for the attribute ...

The only issue I see is that you may have left the prefix at + where the prefix should set to a minus ( - ) to reflect that you have setup a negative Price Factor on the Attribute ...

If you mean to Add $200 ... then you have this setup backwards ...

If you mean another value, then you need to explain it more ... :smile:

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!

4 Feb 2010, 1:38 AM
#27
z3n avatar

z3n

Zen Follower

Join Date:
Apr 2008
Posts:
122
Plugin Contributions:
0

Re: Attribute pricing problem

I sell engines

$1,000 Engine
$350 core charge (attribute)

Warranty options (attributes)

  • Gold (+$200) ---- this is set as 0.2 price factor (attributes_price_factor)
  • Platinum (+$400) ---- this is set as 0.4 price factor (attributes_price_factor)

core charge attribute is required, warranty is optional

4 Feb 2010, 2:39 AM
#28
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Attribute pricing problem

Are you using the Price Factor for this because the price changes a lot? Or for another reason?

There is something moofy on the Price Factor and Specials but I need to know your ultimate goal here ... and then compare that to the fixes already posted and if something else is missed ...

But I am wearing out here ... :blink:

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!

4 Feb 2010, 2:50 AM
#29
z3n avatar

z3n

Zen Follower

Join Date:
Apr 2008
Posts:
122
Plugin Contributions:
0

Re: Attribute pricing problem

Ajeh:

Are you using the Price Factor for this because the price changes a lot? Or for another reason?

There is something moofy on the Price Factor and Specials but I need to know your ultimate goal here ... and then compare that to the fixes already posted and if something else is missed ...

But I am wearing out here ... :blink:
Yes, I use price factor because the price of the engines is different, and the cost of the warranty will always be 20% (0.2) or 40% (0.4) of the engine cost

4 Feb 2010, 2:51 AM
#30
z3n avatar

z3n

Zen Follower

Join Date:
Apr 2008
Posts:
122
Plugin Contributions:
0

Re: Attribute pricing problem

I have found that this piece of code controls the display of that dollar amount.. The error could be here. All I need it to do is display the correct dollar amounts in the attribute drop down, because when you do add it to the cart, it calculates the price correctly anyways, so all this is about is showing the correct amount to the user

                    // collect price information if it exists
                    if ($products_options->fields['attributes_discounted'] == 0 && $products_options->fields['options_values_price'] == '0.0000') {
                      // apply product discount to attributes if discount is on
                      //              $new_attributes_price = $products_options->fields['options_values_price'];
                      $new_attributes_price = zen_get_attributes_price_final($products_options->fields["products_attributes_id"], 1, '', 'false');
                      $new_attributes_price = zen_get_discount_calc((int)$_GET['products_id'], true, $new_attributes_price);
                    } else {
                      // discount is off do not apply
                      $new_attributes_price = $products_options->fields['options_values_price'];
                    }
4 Feb 2010, 3:25 AM
#31
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Attribute pricing problem

I think I need to see your Admin ...

You show an example with wrong numbers based on how you think this should work then try to spell out an example with different numbers and I just cannot build the products correctly this way ...

PM me and when I have time I will look at this further ... brain is now fried ... :frusty:

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!

4 Feb 2010, 6:58 PM
#32
z3n avatar

z3n

Zen Follower

Join Date:
Apr 2008
Posts:
122
Plugin Contributions:
0

Re: Attribute pricing problem

Thanks, PM sent