add item options size/color?
-
Is there any way to add size/color options to the items?
-
Hi wkdwich can you provide more information please?
What size and what color are you referring too? Are you referring to the image displayed on a page or post as a gallery or are you referring to the lightbox?
say I had a tee-shirt to sell and it came in blue, red and white, small, medium and large.. how can I add these as options when purchasing the tee-shirt?
Hi, please read the following URL.
Thank you
OK read that, got it.. but I’m still not getting the options showing in the cart
Stiletto Nail Tips pack of 10 assorted<br>USD $10.00<br> <input type='hidden' name='on0' value='Size'>Size: <select name="os0"> <option value="Select a Size">Select <option value="Small">Small <option value="Medium">Medium <option value="Large">Large </select> <input type='hidden' name='on1' value='Color'>Color: <select name="os1"> <option value="Select a Color">Select <option value="Red">Red <option value="Blue">Blue <option value="White">White </select>
I carefully made sure the proper single or double quotes were there..
Did you add the code into the Store Template?
oh but the editor keeps changing the single to double quote marks ;(
OH OH OH… I see where I’m having an issue here.. You have it adding the option code to the “store” template I was adding it to the item description.. Now, having moved the option code to the store template it not only adds the options when “adding to cart” it displays much nicer too..
But now the issue is not every item in the cart will have these exact option choices.. how to handle that?
Hi if you want all items in the cart to have the same option then you need to use the same shortcode. Remember you can create Custom Store Templates. In most cases you will not use the same temple for every item that is why this plugin gives you the power to create different templates. Remember that when you create a different template you must also add that custom template to the shortcode.
Let me know if that makes it clear to you.
Regards
Better not great yet..
I think I am over analyzing this ??
Here’s what I did.. Copied the STORE template to a new template:
store_size_only
and removed the code for the color optionthat gives me the code:
[catablog template=”store_size_only”]
but that produces 22 lines with the size dropdowns and add to cart button ONLY– no image, title or description..changing the code to:
[catablog_gallery id=”69″ template=”store_size_only”]
produces the exact same result, 22 lines with the size dropdowns and add to cart button ONLY– no image, title or description..changing the code to:
[catablog_gallery id=”69″ template=”store_size_only” category=”size_only”]
(2 items have been assigned to size-only category, 1 item has been assigned to size-color category)
produces the exact same result, 22 lines with the size dropdowns and add to cart button ONLY no image, title or description..changing it to:
[catablog template=”store_size_only” category=”size_only”]
has no change either..changing to:
[catablog category=”size_only”]
does give me ONLY the 2 items in the size_only category with the size dropdowns and add to cart button ONLY– no image, title or description..now changing to:
[catablog template=”store_size_only” category=”size_only”]
does give me ONLY the 2 items in the size_only category with the size dropdowns and add to cart button ONLY no image, title or description. The links are correct so if I choose a size and add to cart it does this correctly..Using
[catablog category=”size_color”]
gives me everything.. image 2 dropdowns, add to cartRight now it is set at:
[catablog category=”size_only” template=”store_size_only”]
[catablog category=”size_color”]
You can see it here:
https://www.nailtech.com/NTmain/Hi you are almost there.
What you need to do is this. If you are creating a separate template for your store then you need to copy and paste the content from the store template and maybe the default template into one new template. Name this template anything you want for example store-size-only. That is the only way you will achieve the results you want on all your items as per your URL above.
Also make sure that the store content is on top of the default content when you create the new template.
So your shortcode would look like [catablog template=”store-size-only].
Let me know if that helps you.
OK I got it now.. I did have to take the default and merge it with the store to create:
<div class='catablog-row %CATEGORY-SLUGS%'> <div class="catablog-images-column"> %MAIN-IMAGE% %SUB-IMAGES% </div> <h3 class='catablog-title'>%TITLE-LINK%</h3> <div class="catablog-description"> <p>%DESCRIPTION%</p> <form method='post' action='https://www.paypal.com/cgi-bin/webscr' target='paypal'> <input type='hidden' name='cmd' value='_cart'> <input type='hidden' name='business' value='[email protected]'> <input type='hidden' name='item_name' value='%TITLE-TEXT%'> <input type='hidden' name='item_number' value='%PRODUCT-CODE%'> <input type='hidden' name='amount' value='%PRICE%'> <input name='on0' type='hidden' value='Size' />Size: <select name="os0"> <option value="Select a Size">Select</option> <option value="Small">Small</option> <option value="Medium">Medium</option> <option value="Large">Large</option> </select> <input type='hidden' name='shipping' value='3.00'> <input type='hidden' name='shipping2' value='0.50'> <input type='hidden' name='currency_code' value='USD'> <input type='hidden' name='return' value='https://www.nailtech.com/NTmain'> <input type='hidden' name='quantity' value='1'> <input type='hidden' name='add' value='1'> <input type='image' src='https://images.paypal.com/en_US/i/btn/x-click-but22.gif' border='0' name='submit' width='87' height='23' alt='Add to Cart'> </form> </div> </div>
and that did the trick using:
[catablog category="size_only" template="store_size_only"]
IMHO though this is really backwards.. I feel the options should be attached to the items/images.. thats where my first stab at this was headed.. this item needs options color R,B&G, that one needs G, W&Blk, the other item needs both a color and size choice, but not all sizes are available. the last item has all sizes available but no color choices.. see where I’m trying to head with this? <G> the categories still are very useful in grouping and sorting.
Hi wkdwich I am glad you got it working ??
I agree with you in regards to the categories. It is also good to remember that templates plus categories work great together.
If you had to add different types of items which required different types of shopping cart requirements, then you would use categories and templates. For example you might need to have 4 different store templates combined with a few categories. This would give you a very powerful display of your products in one page using 4 different shortcodes ??
Just my thoughts.
Once again I am happy you got it working.
Enjoy the plugin
- The topic ‘add item options size/color?’ is closed to new replies.