The WordPress e-commerce solution from getshopped.org already features a powerful “variations” system that allows you to have different versions of products. This allows you to set colours, sizes or other attributes that make sense for your store. It also allows those choices to affect stock availability, pricing and a whole raft of other variables.
For some store owners this is great, but for others it’s all a bit too complicated – all they need to do is let customers choose from the available options and have those choices recorded against the sale.
Welcome to the “WP e-Commerce Simple Product Options” plugin.
The plugin allows you to set up multiple “option sets” and then options within them. Then for each product you create you can choose which option sets and options customers can choose for it, and then have the customers choices recorded against the product sale.



August 22, 2011 at 3:23 pm
Hi Lee
I got onto your site through jeff Ghazally. We’ve had big issues with variations crashing our site.
Our site sells contact lenses and require lots of variations.
pack sizes – 6 different values
left
right eye
power range – 90 different values
base – 7 different values
diameter
CYL – -0.75/-1.25/-1.75/-2.25
Axis – in icrenments of 10 – from 10 to 180
Add – +1.00, +1.50, +2.00, +2.50, Low, Med, High
Tint – Blue, Sapphire Blue, Green, Hazel, Gray, Violet, brown
We can’t add the last 4 variations because it just freezes the admin and front end. See this page http://optionseyecare.com.au/products-page/bausch-lomb/soflens-daily-disposable-90-pack-90-x-1-day-lenses/
If you need access to the backend let me know.
Will your plugin help solve this problem?
Cheers
Tony
August 22, 2011 at 3:45 pm
It will possibly help – although wouldn’t the choices the user makes for each of those affect the price? (Particularly pack size?).
I guess you could use my plugin for the choices that *don’t* affect price/stock etc, and leave those that do as standard variations…
August 22, 2011 at 4:35 pm
Fortunately all the products are set up individually for each pack size so there is never a need to choose a different pack size.
In fact none of the options affect price except quantity.
Does this make it more workable?
Cheers
Tony
August 22, 2011 at 4:45 pm
Hi Lee
I just uploaded your plugin and activated it but it doesn’t appear in the products menu.
Could you advise what I could be doing wrong please.
Cheers
Tony
August 22, 2011 at 7:29 pm
No idea really Tony, the plugin just registers a standard WordPress taxonomy, and relies on WordPress (pretty much) to show the menu entries. My only thought is that it could be related to permissions – are you running as a blog administrator – or something else?
August 22, 2011 at 4:47 pm
Hi,
Looks like your plugin is exactly what I need for a client. We need options for the customer to choose from but the options themselves don’t affect the price. We tried variations but we noticed that with tiered pricing, each variation essentially becomes it’s own product. This seemed great to begin with but ultimately, if a customer wants say 4 of one variation and 7 of another, they weren’t getting the 11+ price rate, but instead the rate for the respective tier.
I’ve installed your plugin, and I set up the options in the WP Admin interface. I also see how to apply the options on a Product in the Admin interface, but, I am not seeing the options appear for the customer on the Product page itself. Am I doing something wrong? Or is there some code I need to add to the single product template?
I would appreciate any help you can offer and If you’d like to login and take a look I can get you an admin login.
Thanks!
August 22, 2011 at 7:57 pm
I’ve replied to the thread on getshopped.org here:
http://getshopped.org/forums/topic/simple-product-options/#post-221481
August 22, 2011 at 7:59 pm
Thanks Lee. I’m about to try the fix you posted. Hoping this is what I need. And thanks again.
August 22, 2011 at 4:49 pm
Hi Lee
Sorry to send so many emails – does your plugin run on WP MU – could this be the problem why it’s not showing in the products menu?
Cheers
Tony
August 22, 2011 at 7:30 pm
I haven’t tested with MU specifically, but I can’t think of any obvious reason why it wouldn’t work …
August 22, 2011 at 8:07 pm
Hi Lee
Am logged in as super admin. Desperate for this to work. Any other ideas.
Cheers
Tony
August 22, 2011 at 8:25 pm
What happens if you try and visit wp-admin/edit-tags.php?taxonomy=wpec_product_option&post_type=wpsc-product
??
August 22, 2011 at 8:33 pm
Hi Lee
I see Product options with this error message at the top.
You should create “Parent” elements for each option type you want, and then “child” elements for each individual choice for that option. Do not create children of children as they won’t show up
August 22, 2011 at 8:39 pm
That sounds about right … that’s the taxonomy edit screen for the Product Options taxonomy. No idea why the menu item isn’t showing up for you, but you should be able to use that URL to configure the available options.
August 22, 2011 at 9:26 pm
Great thanks Lee.
I created 2 product options with their children(values) but how do I access these.
I went to edit an existing product and tried creating a new product but could not see the options.
Do you think it’s related to not showing in the product menu?
Cheers
Tony
August 23, 2011 at 10:17 pm
Almost certainly. For some reason it appears you don’t have access to that taxonomy for some reason …
September 4, 2011 at 3:41 pm
Hi Lee, sounds great. Would this work for downloadable goods? I an album (music) comes in variations of 128bit MP3, 320bit MP3 and FLAC files. The customer can choose which format they want to purchase and will receive the correct download file after successful transaction?
September 4, 2011 at 9:01 pm
I’m afraid not. This plugin only works where the “options” don’t drive different behaviours (Price, stock levels, downloadable file, etc.).
I can’t see why you wouldn’t be able to do what you described with the standard WP e-Commerce variations though.
September 4, 2011 at 9:44 pm
Sadly not as far as I tried. I wasn’t able to offer different download files for the variations.
Never mind – worth a try.
September 4, 2011 at 9:46 pm
Pretty sure you can – you just click into each variation, and set the download file you want for that variation?
September 5, 2011 at 9:26 pm
This is pretty much what I need with one exception. I don’t have any price difference on each variation, but I still want to track how much of each variation is in stock. Is there any easy add-on for this?
September 5, 2011 at 9:58 pm
You’d have to use WP e-Commerce’s built in “variation” functionality for that.
September 12, 2011 at 11:33 pm
Hey Lee,
Not sure if anyone else has come across this error but when I have this plugin activated and one of my products does not use it ( uses the normal variations ) it was coming back with an error on the page. I went ahead and added an if statement inside the display_product_options function and now it runs like a breeze.
Here is the replacement function if anyone ends up needing it, although I’m sure you will just end up putting this in your next update.
http://www.text-upload.com/read.php?id=137464&c=7141753
Thanks Lee
September 13, 2011 at 7:43 am
Think this is fixed (In a slightly more warning-proof way) in the dev version, see my note here:
http://getshopped.org/forums/topic/simple-product-options/page/2/#post-224535
September 13, 2011 at 3:58 pm
Ahh, I see. I should have looked a little further.
Code looks much nicer than my boring if statement.
September 14, 2011 at 3:22 am
Hi Lee, I really like your plugin, as it helped in allowing me to add the necessary options to my shop.
At first, my options weren’t showing up, but thanks to your directions, I have modified wpsc-products_page and single_page to make them show up.
My problem is the display of the options. In Firefox(Mac) the options are staggered, I believe it’s because it doesn’t see a line break. In Safari, it works fine though. I have not checked any PC browsers.
The second problem, is that the options are showing up backwards like this:
|Small| Size:
|Blue| Color:
I need it to show up like this:
Size: |Small|
Color: |Blue|
Any ideas?
September 14, 2011 at 7:23 am
You’ll see the same thing in other browsers (Specifically, I see it in Chrome and Firefox on Linux. The cause is your theme’s stylesheet which is adding “float: left;” to your select boxes. The labels and select boxes have specific CSS classes (wpec-product-option-title and wpec-product-option-select respectively) so you should be able to add CSS rules to amend this for the product option stuff if you still need that style on the rest of your site.
September 21, 2011 at 6:33 am
Nice work Lee, that was exactly the problem. Any idea why the options do not show in the shopping cart. In other words, once the user has made his selections on the options, that are necessary to process an order, they are not visible. http://aniceday.org/products-page/
Thanks again for your help.
chris
September 21, 2011 at 7:27 am
Hi,
WP e-Commerce doesn’t show the personalisation information during checkout I’m afraid. You’d need to modify your checkout theme page (wpsc-shopping_cart_page.php) to achieve that.
November 3, 2011 at 10:00 pm
Could you point me in the right direction for accomplishing this?
1. How would I retrieve the option name?
2. Are you planning on including this in a future release or is this even possible?
BTW your plugin is amazing. Exactly what I have been looking for.
November 3, 2011 at 11:14 pm
I’ve recently committed some hooks to WP e-Commerce to allow this to work. So – if you have the latest version of MY plugin then all you need to do is port over the changes here:
http://code.google.com/p/wp-e-commerce/source/diff?spec=svn1075&r=818&format=side&path=/trunk/wpsc-theme/wpsc-shopping_cart_page.php
http://code.google.com/p/wp-e-commerce/source/diff?spec=svn1075&r=983&format=side&path=/trunk/wpsc-theme/wpsc-shopping_cart_page.php
and you’ll be good to go!
November 3, 2011 at 11:26 pm
Awesome that looks great! It works perfectly. Thank you very much. In theory could I also do this with the shopping cart?
thanks for you hard work on this plugin.
November 3, 2011 at 11:29 pm
You mean the cart widget?
http://code.google.com/p/wp-e-commerce/source/diff?spec=svn983&r=983&format=side&path=/trunk/wpsc-theme/wpsc-cart_widget.php
November 3, 2011 at 11:33 pm
Yeap, that was it! so… where is the donate button?
Seriously.
November 3, 2011 at 11:34 pm
It’s here
http://www.leewillis.co.uk/wordpress-plugins/
November 3, 2011 at 11:38 pm
There ya go! Have a beer or something on me. Thank you again for your help and the plugin.
November 3, 2011 at 11:40 pm
Cheers – much appreciated!
November 4, 2011 at 4:47 pm
…Me again…
When using your plugin with a customized field I get one long string.
http://ScrnSht.com/ehpifg
Notice how
My Spectacular Event Select Size: S
all runs together.
Is there a way to make your option break to a new line?
thanks!
November 4, 2011 at 6:55 pm
I’m assuming that “My Spectacular Event” is the personalisable text, and “Select Size” is the start of your options?
Try editing simple-product-options-frontend.php, look for line 54, it should read:
esc_html_e ( $option );Change it to
echo nl2br ( esc_html ( $option ) );If that works I’ll stick it in the next release.
November 4, 2011 at 8:27 pm
Perfect. Thanks!
October 6, 2011 at 12:17 pm
hi,
i am trying to setup a site for a client, and they need 2 prices per product. is this possible with your plugin?
October 6, 2011 at 6:19 pm
No – this plugin doesn’t allow you to set different prices for the options. It sounds like what you want is the standard “Variations” capability. I’d head on over to http://getshopped.org/forums/ and ask around there if you’re not sure how to set variations up.
October 7, 2011 at 4:22 pm
Still no options added to product’s admin page show for me on the live product page.
Using latest plugin version. Tried on both wpec latest, and previous version, and added the line of code you suggested.
Using default 2011 theme with nothing but wpec running.
Added line to theme file and plugin version of the file.
Still nothing.
October 13, 2011 at 2:20 pm
Hello Lee,
The plugin has stopped working with the new WP Ecommerce update.
Any feedback?
October 13, 2011 at 2:43 pm
Can you define “stopped working” ?
October 14, 2011 at 7:18 am
Hello Lee
After we have added product options, is there any way to set the order of those options from backend itself?
October 14, 2011 at 7:26 am
Not really I’m afraid … I believe the options are sorted by name – so it’s possible you could name them in such a way that they’d display in the order you want.
October 14, 2011 at 8:11 am
okay.. so is there any extension of this plugin through which we can set a sorting order for the product options as required?
November 23, 2011 at 1:36 pm
I installed this plugin, all looks/works fine in WP admin but the options box just does not show up on the product page… its enabled for this product
http://41orchard.com/new/shop/personalised-wall-decals/apple-initial/
as you can see there are no options showing up, any ideas why not?
November 23, 2011 at 2:55 pm
It’s possible that your theme files don’t include the required hooks. See the note here:
http://wordpress.org/extend/plugins/wp-e-commerce-simple-product-options/installation/
[Point 5 - Which applies to anyone using non-standard WP e-Commerce theme files [Your case], or theme files from a release below 3.8.6]
December 10, 2011 at 4:28 pm
Testing your plug in for a client.
Many thanks for creating it.
Is there a simple way to remove the options from the Gold Grid Display in a Category view? (Just want them to show up on the Product view)
December 10, 2011 at 10:04 pm
The simple way would be to remove the hooks from the Gold Cart category template file. It’ll be do_action(“wpsc_product_form_fields_begin”); or do_action(“wpsc_product_form_fields”);
January 22, 2012 at 10:32 am
Hi Lee.
This is amazing plugin.
One thing I really want is ordering fix.
For example, variation which can choose “month”
It should be order by 1,2,3,4,5,6,7,8,9,10,11,12.
However it start from 10,11,12,1,2………
Is there any way to fix this probrem?
there’s solution for WP e-Commerce’s built in “variation” function.
http://www.getseenonline.com.au/wp-ecommerce-variation-ordering-fix.html
But I would really love to use your plugin instead of built in one.
Thank you.
January 22, 2012 at 11:20 am
As per the previous comment, the current version of the plugin sorts by name, and I don’t have any plans to change that specifically. The original plugin was developed for a client and they’re happy with the current functionality.
I’m happy to look at porting similar functionality into the plugin as a paid commission. If you’re interested, get in touch here and I’ll put a quote together for you:
http://www.leewillis.co.uk/contact/
January 31, 2012 at 6:41 am
I’m beginning to see this plugin is not what I was looking for. I was hoping to add a product option which is a text field you type in a url, but only for admins adding the product. not an option for a customer.
February 8, 2012 at 12:43 am
Hi Lee, gorgeous plugin, congrats,
I need to know if it´s possible(maybe with a nothing fancy proceed) to send the product options info to the transaction results and emails for customer and admin.
At this time I have the product option selected info in the wigdet shopping cart and checkout, but still need transaction results and emails.
I try with something like this without any success: http://getshopped.org/forums/topic/custom-fields-for-admincustomer-email/
Any help is really welcome.
Thank you very much in advance
R
February 8, 2012 at 8:28 am
Product options are per-item, not per order so you’d need to hook onto the filter wpsc_transaction_result_content, and generate the output there. The filter gets passed an array containing the purchase ID (Order number), the cart item record, and the whole order object.
The product options are stored in the custom_message field on the cart item record I believe.
Patches welcome
[Or I'm happy to quote for developing this if you're interested - just drop me a note on the contact page]