If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Need help with attribute offsets vs checkout prices

Need help with attribute offsets vs checkout prices

Started by jmberman on 13 May 2016, 10:46 PM · Views: 700

Results 1 to 14 of 14
13 May 2016, 10:46 PM
#1
jmberman avatar

jmberman

Zen Follower

Join Date:
May 2016
Location:
Ohio
Posts:
422
Plugin Contributions:
0

Post #1 by jmberman

I created an option called "GO GREEN 10% Discount"
Then went into Attributes Controller, choose an item and put:

Prices and Weights

  • (subtraction)
    Price Factor: 0.00
    Offset: -0.10

Hit save, and my product page says: GO green with a checkbox, and the price says 80cents on a $8.00 product, so far so good... but then on checkout... it's not actually subtracting the 80cents from the total?

Please help... THANK YOU!

Jonathan

13 May 2016, 10:59 PM
#2
jmberman avatar

jmberman

Zen Follower

Join Date:
May 2016
Location:
Ohio
Posts:
422
Plugin Contributions:
0

Post #2 by jmberman

Update: I set Price Factor to 0.1000
and it successfully ADDED 80cents to the $8 product, but can't seem to subtract yet...
even though the +/- is set to -

13 May 2016, 11:32 PM
#3
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #3 by mc12345678

Brief look through the code and it appears that you would want to have a positive (or no symbol) at all entries and that the price factor set to 0 with the offset at 0.1 to get a 90% reduction against the price of the item. Is there by chance a sale also applied to the attribute?

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

13 May 2016, 11:42 PM
#4
jmberman avatar

jmberman

Zen Follower

Join Date:
May 2016
Location:
Ohio
Posts:
422
Plugin Contributions:
0

Post #4 by jmberman

I'm using 1.5.4 thanks, trying out your suggestions.

13 May 2016, 11:46 PM
#5
jmberman avatar

jmberman

Zen Follower

Join Date:
May 2016
Location:
Ohio
Posts:
422
Plugin Contributions:
0

Post #5 by jmberman

Okay I did what you said, and on my product page I see:

Please Choose:
GO GREEN SAVE 10% ( $0.80 )

Check the box, hit add to cart...

no price change.

13 May 2016, 11:56 PM
#6
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #6 by mc12345678

Well, I looked some more and there actually is an expectation that the offset "price factor" be a positive value... the offset is then subtracted from that factor, so if you wanted something that is 10% of your total product's price, then a price factor of 1 with an offset of 1.1 should work.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

14 May 2016, 12:01 AM
#7
jmberman avatar

jmberman

Zen Follower

Join Date:
May 2016
Location:
Ohio
Posts:
422
Plugin Contributions:
0

Post #7 by jmberman

Okay, I tried that... then went to the $8.00 product, and at the bottom it shows:

Please Choose:
GO GREEN SAVE 10% ( +$0.80 )

Check box, Add to cart...

Subtotal shows: $8.80

So I went back and changed the first box plus to a minus... confirmed the rest...

Looked at the product page and see:

Please Choose:
GO GREEN SAVE 10% ( -$0.80 )

Check box, Add to cart...

Subtotal shows: $8.80

OMG What is happening!?

14 May 2016, 12:08 AM
#8
jmberman avatar

jmberman

Zen Follower

Join Date:
May 2016
Location:
Ohio
Posts:
422
Plugin Contributions:
0

Post #8 by jmberman

Trying out price factor of 1 with an offset of 1.1

14 May 2016, 12:10 AM
#9
jmberman avatar

jmberman

Zen Follower

Join Date:
May 2016
Location:
Ohio
Posts:
422
Plugin Contributions:
0

Post #9 by jmberman

Yes that worked ! Thank you

14 May 2016, 12:22 AM
#10
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #10 by mc12345678

jmberman:

Yes that worked ! Thank you

Glad it did. What was your final choice of symbols, nothing, + or -?

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

14 May 2016, 12:32 AM
#11
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #11 by mc12345678

Also, for clarification to other future readers. The reason that the posts at the bottom of the previous page showed values that didn't work, is because I had originally posted a price factor of 1 with an offset of 0.9, which appears to have been tried before seeing the edit that I made to use an offset of 1.1... sorry for the confusion, but I have a head cold which is playing with my ability to fully think through the issue correctly and I had in mind 1 - 0.9 equals 0.1 which is 10%, but it is a positive 10% not a negative 10%.

For those that don't like to deal with decimals, a price factor of 100 with an offset of 110 would have worked just the same. :)

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

14 May 2016, 12:33 AM
#12
jmberman avatar

jmberman

Zen Follower

Join Date:
May 2016
Location:
Ohio
Posts:
422
Plugin Contributions:
0

Post #12 by jmberman

That is precisely what happened :)

14 May 2016, 1:23 AM
#13
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #13 by mc12345678

jmberman:

That is precisely what happened :)

So to basically fully close this issue, what was the setting of the symbol in the first box: empty, + or -?

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

14 May 2016, 1:32 AM
#14
jmberman avatar

jmberman

Zen Follower

Join Date:
May 2016
Location:
Ohio
Posts:
422
Plugin Contributions:
0

Post #14 by jmberman

mc12345678:

So to basically fully close this issue, what was the setting of the symbol in the first box: empty, + or -?

- the subtraction is what I have now that works. Thanks.