Zen Cart Logo
Forums / Bug Reports / Attributes and percent pricing

Attributes and percent pricing

Locked

Views: 5,073

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
5 Dec 2007, 12:25 AM
#1
londoh avatar

londoh

New Zenner

Join Date:
Oct 2007
Posts:
14
Plugin Contributions:
0

Attributes and percent pricing

I've struggled with this issue before and it was covered somewhat in this thread:
http://www.zen-cart.com/forum/showthread.php?t=77659

I tried 1.3.8 hoping it was fixed, but the issue still appears to be there.
I have 2000 products to get into a project (real soon now!) and am hoping this can be resolved (or somebody can show me where I am going wrong!)

PROBLEM
Items with attributes that affect price do not calculate correctly when a 'Special' price is applied.
And there are 2 aspects:

  1. The Attribute price as displayed on Prod info page
  2. The combined price (Sale_Price + Attribute_Price) for product added to cart

STEPS TO REPRODUCE:
Using a virgin Demo Zen Cart 1.3.8 install:
add a new category = 'My New Cat'
add a new product = 'My New Product', Price = 200

go to attribute controller and use existing attributes to add
attributes to 'My New Product' as follows:

Color->Red
prefix +
Price: 0.00
Price Factor: 0.00
Price Factor Offset: 0.00

Color->Orange
prefix +
Price: 0.00
Price Factor: 1.2
Price Factor Offset: 1.00 (= +20%)

Color->Yellow
prefix -
Price: 0.00
Price Factor: 0.90
Price Factor Offset: 1.00 (= -10%)

Product is NOT 'Price by attribute'

Attribute switches are all as follows:
Used For Display Purposes Only: No
Attribute is Free When Product is Free: Yes
Default Attribute to be Marked Selected: No
Apply Discounts Used by Product Special/Sale: Yes
Include in Base Price When Priced by Attributes: Yes
Attribute Required for Text: No

These settings will display the attribute prices as:
Red
Orange ( +40.00 )
Yellow ( -20.00 )
PLEASE NOTE: These are the correct attribute prices

Items added to Cart show:

My New Product
* Color - Red £200.00 £200.00
* Color - Orange £240.00 £240.00
* Color - Yellow £180.00 £180.00
PLEASE NOTE: These are the correct combined product + attribute prices

Now, place this item on Special Offer at 100 via Admin Menu > Catalog > Specials
The Product Info Page now shows:
(£200.00) £100.00
Save: 50% off
This is correct.

The attribute prices display as:
Red
Yellow ( +10.00 )
Orange ( -5.00 )
PLEASE NOTE: The Yellow and Orange attribute prices are now INCORRECT.
They should be +20 and -10

Items added to Cart show:

My New Product
* Color - Red £100.00 £100.00
* Color - Orange £140.00 £140.00
* Color - Yellow £80.00 £80.00
PLEASE NOTE: The combined (sale_price + attrib_price) added to cart are now INCORRECT.
They should be 120 and 90
These incorrect attribute amounts are also DIFFERENT from the incorrect attribute prices displayed on the Product Info page.

SOLUTION:
I set out what I thought might be cause(s) of the problem(s):
http://www.zen-cart.com/forum/showpost.php?p=446408&postcount=12

I'm still using these fixes for demo purposes on the project and (with very limited testing) they seem to work OK, but I dont know the code well enough to consider what else might be getting scrambled

Hoping someone can help with a solution to this.

thanks if you can

l.

26 Dec 2007, 10:49 PM
#2
londoh avatar

londoh

New Zenner

Join Date:
Oct 2007
Posts:
14
Plugin Contributions:
0

Re: Attributes and percent pricing

I'd really appreciate any response to this.

Either opinion from devs, or users with experience of this functionality / problem.

Is it a bug? Is there a fix?

Or can somebody show me how to get it to work correctly? Or a workaround to correctly deal with individual items with attributes, on a sale price?

l.

27 Dec 2007, 2:04 AM
#3
ajeh avatar

ajeh

Oba-san

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

Re: Attributes and percent pricing

The problem is using Price Factor, Special and Priced by Attribute together ...

While Attributes using the regular attribute price, special and priced by attribute usually behave well together, the other pricing options do have issues that will be looked into in a future release ...

Price Factor was originally intended to work with the products_price and functioned with the Special ...

Taking it that extra step where you are using Price by Attribute there isn't really a true price at the time that the calculation is made and this throws things off in the shopping cart ...

This is not of help to you right now ... but we will be looking into further developments of Attributes and Pricing ...

27 Dec 2007, 3:31 AM
#4
londoh avatar

londoh

New Zenner

Join Date:
Oct 2007
Posts:
14
Plugin Contributions:
0

Re: Attributes and percent pricing

Hi Ajeh

thanks for reply, even if it isnt very hopeful - which is gonna be a hassle cos its exactly whats required and I've spent a load of time setting up ZC, assuming this would be workable somehow
:censored::frusty:
Its a shame you didnt respond to my PM several weeks ago - I would have still had some other options.

for what its worth, I'll point out that I'm not using 'Price by Attribute', (ie: "Product Priced by Attributes" is set to NO) and therefore in this scenario there is always a true price - its either the regular price or Special price. Then plus or minus the attribute adjustment.
Its not at all a complicated scenario.

I'd also like to ask: do you have any comments on the possible solutions I posted ?
I'd very much appreciate your opinion if you have time to take a look. Things seem to work correctly with those mods. I'm just concerned maybe its gonna throw something else off. Maybe you know what stuff might be at risk?

thanks for your time

l.

27 Dec 2007, 3:38 AM
#5
ajeh avatar

ajeh

Oba-san

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

Re: Attributes and percent pricing

I have not had time to look into solutions to this and all the possible pitfalls ...

It is solvable ... but will take time to work through all the scenarios to adjust this to make it function in this manner ...

10 Sep 2009, 3:48 PM
#6
girdy74 avatar

girdy74

New Zenner

Join Date:
Jul 2008
Posts:
26
Plugin Contributions:
0

Re: Attributes and percent pricing

I realize you said that the Price By Attribute does not function or 'play well' with Specials, but I have an odd thing happening. Some are working (no complaints there) and some are not! Weird. I have looked SOOO close to see where I can find a difference in attributes and products that I just cannot find any difference.

Our website is https://www.botaniesoap.com, if you scroll down you will SEE MONTHLY SPECIALS FOR SEPTEMBER. The Essential Oils are displaying properly (these ARE set as Priced By Attribute)...the original price shows and the red (special) price is correct. then, look at the ORGANIC PALM OIL...original (price in black) SHOULD BE $19 and the red price (which shows correct) is $17. This also happens with the Juniper Berries...specials price in red shows CORRECT but the original price shows INCORRECT $6.00 which SHOULD BE $6.99.

All the essential oils that are listed are listing the correct price and discount, the herbs and oils are not. Does anyone have ANY idea why some would be working and others not?

NOTE: When you click on the actual product...it's fine. It doesn't tell you the price is SPECIAL but it displays the correct price. The pages it messes up on are: The home page or index page where the specials are displayed below and the Specials page (left hand navigation you will see CURRENT SPECIALS in orange......this page displays incorrectly for the herbs and oils but NOT for the essential oils. :frusty:

If this normally doesn't work with Price By Attribute, why would it be working with some and not others? Any ideas??

11 Sep 2009, 12:31 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Attributes and percent pricing

What it is showing is:

Juniper Berries (Organic)
Juniper Berries (Organic)
$6.99 $6.29
Save 10% off

With the line through 6.99, ... it just "looks" like $6.00 ... :cool:

11 Sep 2009, 7:44 PM
#8
girdy74 avatar

girdy74

New Zenner

Join Date:
Jul 2008
Posts:
26
Plugin Contributions:
0

Re: Attributes and percent pricing

If you look at the bottom of the home page it doesn't read as two 9's. It is definitely two 0's. We have triple checked this before posting to the forums. We have also had customers contact us and ask us why it states a sale when it shows as adding to the product instead of subtracting. There is a difference between the look of 6.99 crossed out and 6.00 crossed out. This only is happening on the Specials page and the bottom of the home page.

:no:

13 Sep 2009, 4:03 PM
#9
ajeh avatar

ajeh

Oba-san

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

Re: Attributes and percent pricing

Give me the products_id for this Product that you believe is $6.00 ...

I did a cut and paste on the numbers that I posted ... and that shows a $6.99 with a line through it that makes it look like $6.00 for products_id 171

14 Sep 2009, 4:36 AM
#10
girdy74 avatar

girdy74

New Zenner

Join Date:
Jul 2008
Posts:
26
Plugin Contributions:
0

Re: Attributes and percent pricing

:oops: I owe you an apology. You are 100% right. I zoomed in a couple times on the page in Firefox...YOU GOT IT. 6.99! Maybe a font change or display the font bigger would help. We have had a few customers ask us why it was stating as 6.00 (in black as the normal price) and marked down to 6.29??

Thanks for your replies and pointing that out. :yes:

Cheers

14 Sep 2009, 2:42 PM
#11
ajeh avatar

ajeh

Oba-san

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

Re: Attributes and percent pricing

You are most welcome ... that is why I tested with the cut and paste as I have seen that "appearance" of numbers looking like zeros when they are actually 9s or 8s etc ...

I wish they had a nice diagonal line or X for that ... :smile: