View Full Version : Attribute questions
Jim@petmedstore
03-31-06, 10:48 PM
I am trying to figure out how we can set the attributes:
We have a products that has
species - dog, cat, horse etc.
then we have weight range for those species
Weight group - say 1-9 lb, 10-20 ....
then we have packages available for those weight group
Supply- 4 month, 6 month etc.
the price is based on a combination of all three.
I also want a control over displaying the second attribute if the first is
selected, and then the third if second and first is selected if that is
possible.
Not sure how to proceed, what is the besy way to achieve this. any examples
woule be highly appreciated.
Thank you so much for your valuable responses.
Jim
Bruce - PhosphorMedia
04-01-06, 06:37 AM
Does 10 pounds for a dog for 3 months differ in price than 10 pounds for a cat for 3 months (and if so, I'd want to know why...got something aginst dogs...or cats<G>).
Jim@petmedstore
04-01-06, 08:04 AM
Does 10 pounds for a dog for 3 months differ in price than 10 pounds for a cat for 3 months (and if so, I'd want to know why...got something aginst dogs...or cats<G>).
No there products mainly the medications are made with different strength base don their weight, so are differnt priced.
Bruce may be you can suggest how to layout the attributes best.
Thanks
Jim
Vic - WolfPaw Computers
04-01-06, 08:16 AM
The simplest solution by far is to create a seperate product, one for cats, one for dogs.
Then add your attributes for weight of the animal and quantity options.
You're not going to have much control over the attribue such as displaying if selected. You'd have to write some javascript and use an OnChange event and perhaps DIVs with a hidden layer, unhiding it after the first option is selected.
Frankly I dont really see the point in doing something like that if you decide to use the above suggestion of seperate products. Doesnt seem like it would be worth the coding time to write the JavaScript for only 2 options.
Bruce - PhosphorMedia
04-01-06, 05:25 PM
This would probably be the best approach anyway...since you could duplicate the "cat" med product in the Cat > Medicine category...and in Medicine > Cat....besides, Cat owners don't need the "option" of selecting a medicine for "Dogs"...and visa versa. (Yea, I know, some have both, but i believe most lean one way or the other. Actually, its common for dog owners to have cats, but not the other way around<G>.)
Jim@petmedstore
04-01-06, 11:04 PM
Vic,
let me see if I understood it right:
So I have two product pages one for cat and one for dog:
We will take example of cat:
I have cat weight groups
under 9 lb
over 9 lb
and I have 4, 6 and 12 month supply for each, so at the end I will have
6 different products.
cat under 9 lb -> 4 month
cat under 9 lb -> 6 month
cat under 9 lb -> 12 month
cat over 9 lb -> 4 month
cat over 9 lb -> 6 month
cat over 9 lb -> 12 month
As I understand , price is associated to one attribute only, so basically I will have 6 different attributes for cat products.
Weight group will contain two entires - <9lb and >9lbs
user cas selct one, and then supply has three entries 4, 6, and 12
how will I compute the price as supply group entries are common for both.
I might be missing something, but the way miva attributes awork are new to me.
Will appreciate your help.
Thanks
Jim
AmperorDirect.com
04-01-06, 11:12 PM
Could be pretty simple, IF the price difference between 4 and 6 months is identical in both weight categories.
Base price $100
Cat Under 9 lb (no extra charge)
Cat Over 9 lb (add $50)
Supply
4 Months (no extra charge)
6 Months (add $50)
12 Months (add $50)
Work the $ amounts to your needs.
Vic - WolfPaw Computers
04-02-06, 12:14 AM
Could be pretty simple, IF the price difference between 4 and 6 months is identical in both weight categories.
Base price $100
Cat Under 9 lb (no extra charge)
Cat Over 9 lb (add $50)
Supply
4 Months (no extra charge)
6 Months (add $50)
12 Months (add $50)
Work the $ amounts to your needs.
JIm, ^^^
This was the solution I had in mind.
Two groups of attributes, one for weight of animal, another for monthly supply.
Jim@petmedstore
04-02-06, 08:37 AM
JIm, ^^^
This was the solution I had in mind.
Two groups of attributes, one for weight of animal, another for monthly supply.
The price difference is not same, so it has to be independent.
Can I have something like this:
if (cat<9 selected>
show Supply attribute options for cat < 9 lb
else if (cat>9 selected>
show Supply attribute option for cat > 9 lbs
I am a programmer but haven't coded in mivascript, so not sure if it is
doable with miva attributes. So wanted an expert openion of you guys.
thanks
Jim
Bruce - PhosphorMedia
04-02-06, 06:38 PM
IMO, not without a LOT of coding...at the Component level. You'd need to get inside the loop logic that calls the attributes (then the attribute's options) and do you tests in there.
You might check with Weiland and Sebenza to see if their template manager modules not only allow you to change formating in those areas, but apply logic as well.
Jim@petmedstore
04-02-06, 07:44 PM
IMO, not without a LOT of coding...at the Component level. You'd need to get inside the loop logic that calls the attributes (then the attribute's options) and do you tests in there.
You might check with Weiland and Sebenza to see if their template manager modules not only allow you to change formating in those areas, but apply logic as well.
Thanks Bruce
Jim
vBulletin® v3.7.4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.