Post by cmebd » Wed Mar 24, 2010 10:54 am

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

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


User avatar
Active Member

Posts

Joined
Fri Nov 13, 2009 11:17 am
Location - Tasmania, Australia

Post by rph » Wed Mar 24, 2010 11:10 am

Qphoria wrote:Any ideas?
Yeah, in product.tpl I would throw in a default blank option prompting the user to make a selection. Something like:

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


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by babyewok » Wed Mar 24, 2010 6:34 pm

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?

New member

Posts

Joined
Mon Oct 19, 2009 11:34 pm

Post by Qphoria » Wed Mar 24, 2010 7:57 pm

rph wrote:
Qphoria wrote:Any ideas?
Yeah, in product.tpl I would throw in a default blank option prompting the user to make a selection.
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.

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

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by rph » Thu Mar 25, 2010 2:58 am

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.
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.).

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

test.jpg (89.38 KiB) Viewed 4702 times


-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by Qphoria » Thu Mar 25, 2010 1:13 pm

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

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Qphoria » Fri Mar 26, 2010 9:19 am

Anyone look at it yet? Good? Bad?

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by cmebd » Fri Mar 26, 2010 11:21 am

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

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


User avatar
Active Member

Posts

Joined
Fri Nov 13, 2009 11:17 am
Location - Tasmania, Australia

Post by Qphoria » Fri Mar 26, 2010 11:36 am

It's up to the store owner to worry about his own pictures. Best bet would be to use the words "IPOD" as a main image and then show the color models on options.

Don't see how the currency is relevant so I won't answer the question. ::)

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by cmebd » Fri Mar 26, 2010 1:52 pm

Ok thanks for the information.

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


User avatar
Active Member

Posts

Joined
Fri Nov 13, 2009 11:17 am
Location - Tasmania, Australia

Post by Qphoria » Fri Mar 26, 2010 7:41 pm

why do i need to change currency on a demo store?

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by cmebd » Sat Mar 27, 2010 1:35 am

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


User avatar
Active Member

Posts

Joined
Fri Nov 13, 2009 11:17 am
Location - Tasmania, Australia

Post by Qphoria » Sat Mar 27, 2010 2:01 am

oh you mean my site? I don't even have that currency enabled. Can't you switch back using the currency selector?

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Silver » Mon Mar 29, 2010 11:51 pm

amazing mod!!!!!!!!!

let us know when you up to your shop.

thanks

New member

Posts

Joined
Wed Oct 21, 2009 6:55 pm

Post by Qphoria » Tue Mar 30, 2010 11:31 pm

I've added it now.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Silver » Thu Apr 08, 2010 12:05 pm

Where is it ?

I searched on your website with no success.

let me know the link pls I want to buy it.

thanks

New member

Posts

Joined
Wed Oct 21, 2009 6:55 pm

User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Silver » Mon Apr 12, 2010 8:49 pm

Hi, this is the same version as this ?

http://www.unbannable.com/v147/index.ph ... duct_id=36

thanks

New member

Posts

Joined
Wed Oct 21, 2009 6:55 pm

Post by Qphoria » Mon Apr 12, 2010 8:58 pm

yes that is it

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by rocker23 » Tue Apr 13, 2010 11:57 pm

Quick question on the weights- If the main product has a weight (i.e. .5 pounds) and the option has a weight (i.e. .2) are they added together, or does the option weight override the main product weight?

Thank you

Newbie

Posts

Joined
Tue Apr 13, 2010 11:15 pm
Who is online

Users browsing this forum: No registered users and 109 guests