Lee Willis

Product Options for WP e-Commerce

| 57 Comments

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.

57 Comments

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

    • 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…

      • 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

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

    • 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?

  3. 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!

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

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

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

      • 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

  6. 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?

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

  7. Pretty sure you can – you just click into each variation, and set the download file you want for that variation?

  8. 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?

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

  10. Ahh, I see. I should have looked a little further.

    Code looks much nicer than my boring if statement. :)

  11. 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?

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

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

  13. hi,
    i am trying to setup a site for a client, and they need 2 prices per product. is this possible with your plugin?

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

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

  15. Hello Lee,

    The plugin has stopped working with the new WP Ecommerce update.
    Any feedback?

  16. Hello Lee

    After we have added product options, is there any way to set the order of those options from backend itself?

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

  17. okay.. so is there any extension of this plugin through which we can set a sorting order for the product options as required?

  18. 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?

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

    • 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”);

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

    • 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/

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

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

    • 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]

Leave a Reply

Required fields are marked *.

*