Hi Q,
This is sounding really good :-)
A consideration/suggestion if at all possible:
Create a product using the "main" image.
Create the first option as main product (as default/selected option) that has the main image associated with it.
All other options would follow -
If this makes sense.
Above would mean, perhaps, duplicating main graphic but in the great scheme of things that should not be too much of a problem.
Cheers
This is sounding really good :-)
A consideration/suggestion if at all possible:
Create a product using the "main" image.
Create the first option as main product (as default/selected option) that has the main image associated with it.
All other options would follow -
If this makes sense.
Above would mean, perhaps, duplicating main graphic but in the great scheme of things that should not be too much of a problem.
Cheers
A stupid question is the one you -don't- ask.........(Anon)
)C1.5.0.1 (IN devel)
OC V1.4.9.5
OC V1.4.9.2
OC V1.4.7
OC V1.3.4
Yeah, in product.tpl I would throw in a default blank option prompting the user to make a selection. Something like:Qphoria wrote:Any ideas?
Code: Select all
<table style="width: 100%;">
<?php foreach ($options as $option) { ?>
<tr>
<td><?php echo $option['name']; ?>:<br />
<select name="option[<?php echo $option['option_id']; ?>]">
<option>Select one</option>
<?php foreach ($option['option_value'] as $option_value) { ?>
<option value="<?php echo $option_value['option_value_id']; ?>"><?php echo $option_value['name']; ?>
<?php if ($option_value['price']) { ?>
<?php echo $option_value['prefix']; ?><?php echo $option_value['price']; ?>
<?php } ?>
</option>
<?php } ?>
</select></td>
</tr>
<?php } ?>
</table>
-Ryan
Qphoria wrote:not an "additional" main image.. People want the main product image to change when they change the select box.
Oh I see - something that is there before you select the first option. I had just assumed it would be the first option that would show when you first view the product. Can't you use some sort of if/else statement - if the product has options with images, then show the first option image, else show the main product image?
Well I thought of that, but I'm not sure I can do that either since the design of OpenCart's options is based on the first/default option being the "base". Meaning the Main Product Price is the price of the product with the first option. Like this example. The 50ml bottle is $50.00. If I added "Please select" there.. it might not matter, but it might cause confusion.rph wrote:Yeah, in product.tpl I would throw in a default blank option prompting the user to make a selection.Qphoria wrote:Any ideas?
However, based on this, maybe cmebd is correct in assuming that the main product image should be the first option image since it would be the "base" item. In my example it would show the 50ml bottle anyway.
Maybe I'll go with this and show the main image if the first option has no picture, or switch to the first option image if it has a picture
Sure you're not thinking of your mod? Pretty sure OpenCart considers price the base and makes all changes based on that (tax, options, etc.).Qphoria wrote:Well I thought of that, but I'm not sure I can do that either since the design of OpenCart's options is based on the first/default option being the "base". Meaning the Main Product Price is the price of the product with the first option.
I just tested on default 1.4.4 and it does work ($485 base price). "Please Select One" is essentially a $0 option which may have to be accounted for when a choice has to be entered.
Attachments
test.jpg (89.38 KiB) Viewed 4699 times
-Ryan
It was a nightmare. Pretty much recoded the entire thing. But it works great.
Here's the demo:
http://www.unbannable.com/v144/index.ph ... duct_id=36
Things to see:
- "Please Choose" is added via javascript to all options for you.
- Change the options. See the image change.
- Go back to "Please Choose" or any option that doesn't have an image, and it will return to the product main image
- Trying to add to cart without selecting an option will give error and prevent it
- Hover over the main image after changing each to see the tooltip description from the option info
- Supports popup for each image
- Supports language files for the "Please Choose" and Warning message
- No other functionality is broken.
Other info:
- Automod worked perfectly in the backend
- I've changed the module status to show enabled (just for visual effect)
- I've also tested with jcarousel and it works great
Thanks rph and cmebd for the options advice. Seems to work ok
Here's the demo:
http://www.unbannable.com/v144/index.ph ... duct_id=36
Things to see:
- "Please Choose" is added via javascript to all options for you.
- Change the options. See the image change.
- Go back to "Please Choose" or any option that doesn't have an image, and it will return to the product main image
- Trying to add to cart without selecting an option will give error and prevent it
- Hover over the main image after changing each to see the tooltip description from the option info
- Supports popup for each image
- Supports language files for the "Please Choose" and Warning message
- No other functionality is broken.
Other info:
- Automod worked perfectly in the backend
- I've changed the module status to show enabled (just for visual effect)
- I've also tested with jcarousel and it works great
Thanks rph and cmebd for the options advice. Seems to work ok
Hi Q,
Absolutely beautiful!! Glad I was able to input something useful.
I think, maybe, Instruction for Admin to make sure that they create and option for the initial "main" image - ie in the demo version it would be "black".
Eg: I went to the site and selected the second option (storage/size) but couldn't order black as a colour option.
BTW have you intentionally changed the currency to pounds sterling?
Cheers
Absolutely beautiful!! Glad I was able to input something useful.
I think, maybe, Instruction for Admin to make sure that they create and option for the initial "main" image - ie in the demo version it would be "black".
Eg: I went to the site and selected the second option (storage/size) but couldn't order black as a colour option.
BTW have you intentionally changed the currency to pounds sterling?
Cheers
A stupid question is the one you -don't- ask.........(Anon)
)C1.5.0.1 (IN devel)
OC V1.4.9.5
OC V1.4.9.2
OC V1.4.7
OC V1.3.4
Ok thanks for the information.
WRT currency - a passing comment in case you had inadvertently missed changing to US$
WRT currency - a passing comment in case you had inadvertently missed changing to US$
A stupid question is the one you -don't- ask.........(Anon)
)C1.5.0.1 (IN devel)
OC V1.4.9.5
OC V1.4.9.2
OC V1.4.7
OC V1.3.4
I was actually looking on the shop site ie, Newsletter module was GBP4.78 - the demo had US$ but no big issue anyway............
A stupid question is the one you -don't- ask.........(Anon)
)C1.5.0.1 (IN devel)
OC V1.4.9.5
OC V1.4.9.2
OC V1.4.7
OC V1.3.4
Hi, this is the same version as this ?
http://www.unbannable.com/v147/index.ph ... duct_id=36
thanks
http://www.unbannable.com/v147/index.ph ... duct_id=36
thanks
Who is online
Users browsing this forum: No registered users and 60 guests