Forums / Setting Up Categories, Products, Attributes / Price by Attributes not default to lowest price?

Price by Attributes not default to lowest price?

Locked

Started by srt9969 on 19 Jan 2009, 10:54 AM · Views: 1,521

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
19 Jan 2009, 10:54 AM
#1
srt9969 avatar

srt9969

New Zenner

Join Date:
Jan 2009
Posts:
62
Plugin Contributions:
0

Price by Attributes not default to lowest price?

Hi,
Using 'Price by Attributes', I want to show a product price in main description, but want to use an attribute price other than the lowest. Each product has 3 attributes, and I want to display the price of the middle one. I've already made it the default selected attribute, but that doesn't do the trick. I guess this needs a change to coding, but I'm happy to do that, if someone can point me at the right file. Of course, any other suggestions gratefully considered...

Thank you, regards

Sean

19 Jan 2009, 12:23 PM
#2
mamasylvia avatar

mamasylvia

Zen Follower

Join Date:
Feb 2008
Posts:
379
Plugin Contributions:
0

Re: Price by Attributes not default to lowest price?

We don't need no steeenken coding ...

It's easy. Say the attributes are colors, White, Blue, and Black. White is $5, Blue is $6, and Black is $7. You would set the product price to be $6. Edit the White attribute so the price section shows - and 1.000. Leave the Blue attribute with no price change, and edit the Black attribute to be + and 1.000. Does that help? You also might want to check out my "how-to" page at http://www.steigerfamily.com/zencartinfo.html

Sylvia
PM at your own risk, I don't check in regularly!
MamaSylvia.com My ZenCart tutorial

19 Jan 2009, 12:33 PM
#3
srt9969 avatar

srt9969

New Zenner

Join Date:
Jan 2009
Posts:
62
Plugin Contributions:
0

Re: Price by Attributes not default to lowest price?

Thanks for the reply, but sadly, I don't think I can do it this way. You see, I need to offer a single item (£0.10), 1kg of them (£5.00), or 2kg of them (£10.00). I want to use Price by Attribute, as I prefer the way the product is presented. I have the 1kg price set as default because the 'single item' price is the price for a sample (the product is normally bought by the 1kg), but it doesn't show in Product Description.
As an option, I could lose the 2kg selection, if I can get the Product Price to default to Highest instead of Lowest.
Thanks for any further help you may offer,

regards,
Sean

19 Jan 2009, 2:00 PM
#4
mamasylvia avatar

mamasylvia

Zen Follower

Join Date:
Feb 2008
Posts:
379
Plugin Contributions:
0

Re: Price by Attributes not default to lowest price?

Sure you can do it that way. Edit the PRODUCT to have a price of 5 pounds (sorry, I don't know how to make the pound symbol). Then edit the ATTRIBUTES so the sample is -4.90, 1 kg is +0, and 2 kg is +5.00.

Sylvia
PM at your own risk, I don't check in regularly!
MamaSylvia.com My ZenCart tutorial

19 Jan 2009, 3:19 PM
#5
srt9969 avatar

srt9969

New Zenner

Join Date:
Jan 2009
Posts:
62
Plugin Contributions:
0

Re: Price by Attributes not default to lowest price?

But that leaves me with -4.90, +0, +5.00 in the attributes list.
It needs (needs) to show £0.10, £5.00, £10.00.
No plus signs, no maths required of the customer, just straightforward price presentation. And the default price needs to be the middle one, and it also needs to be presented in the main Prod. Info window, and the products and all products listings.

Apart from that I don't mind what it looks like....:D

Thanks for your responses so far,

Sean

19 Jan 2009, 11:04 PM
#6
srt9969 avatar

srt9969

New Zenner

Join Date:
Jan 2009
Posts:
62
Plugin Contributions:
0

Re: Price by Attributes not default to lowest price?

bump

Any help with this, please?

Sean

20 Jan 2009, 1:05 AM
#7
mamasylvia avatar

mamasylvia

Zen Follower

Join Date:
Feb 2008
Posts:
379
Plugin Contributions:
0

Re: Price by Attributes not default to lowest price?

I don't know of any way to have ZenCart do what you want. From the lack of other responses, I'm guessing others don't, either.

Sylvia
PM at your own risk, I don't check in regularly!
MamaSylvia.com My ZenCart tutorial

20 Jan 2009, 9:16 AM
#8
srt9969 avatar

srt9969

New Zenner

Join Date:
Jan 2009
Posts:
62
Plugin Contributions:
0

Re: Price by Attributes not default to lowest price?

Well, thanks for trying, anyway...:bigups:

20 Jan 2009, 4:40 PM
#9
srt9969 avatar

srt9969

New Zenner

Join Date:
Jan 2009
Posts:
62
Plugin Contributions:
0

Re: Price by Attributes not default to lowest price?

Found it in the end, I think...

In Includes/functions/functions_prices.php

end of Line 124:
" order by options_id, price_prefix, options_values_price");

changed to
" order by options_id, price_prefix, options_values_price desc");

Seems to do the trick.
Let's see if that's broken something else, now...

Regards,

Sean

27 Jan 2009, 9:23 AM
#10
bimo_in_bali avatar

bimo_in_bali

New Zenner

Join Date:
Jan 2009
Location:
Earth
Posts:
36
Plugin Contributions:
0

Re: Price by Attributes not default to lowest price?

Hi Sean, I have the same problem with the price display.
did you manage to change the display?:smile:

Thanks,
Bimo