Details

Custom Fields for WP e-Commerce allows store owners to manage additional Product detail fields with the ease WordPress users have come used to through standard field controls displayed on the Add/Edit Products page in both WP e-Commerce 3.8+ and legacy 3.7 stores.

The recent release of Custom Fields 1.1 includes support for text boxes in conjunction to standard input fields, this enhancement makes it possible for store owners to add additional content blocks to the Product detail page.

WP e-Commerce Compatibility

  • WP e-Commerce 3.7 ready (up to 3.7.8)
  • WP e-Commerce 3.8+ ready (up to 3.13.*)

Documentation

Looking for support, a copy of the readme, Plugin updates, Ideas or usage instructions? Check out ourΒ Documentation for Custom Fields.

Screenshots

Comments

  1. Patrick MY Patrick

    May I know is there a way to use the custom field value for conditional statements, the same way as Custom Product Meta?

    Thanks!

    • Michael Visser au Michael Visser

      Hi Patrick, if you can give me an example of usage I’ll see what I can do πŸ™‚

      • Patrick MY Patrick

        Hi Michael,

        I am looking to use one of the values defined in Custom Fields (eg ISBN) in a conditional statement.

        if ($ISBN == ‘xxx’) {
        // do this
        }

        I understand that the current shortcode is used to output the labels and/or value in HTML codes, but is there a shortcode or a way to retrieve only the value? Thanks in advance πŸ™‚

        • pau1phi11ips GB Pau1phi11ips

          if (get_product_meta( wpsc_the_product_id(),’ISBN’,true ) == ‘something’) {
          //do this
          }

          • pau1phi11ips GB Pau1phi11ips

            Careful when copying that, looks like some of the ‘ around ISBN are weird.

        • Michael Visser au Michael Visser

          Hi Patrick, I’ll spin up some code for this. It’ll be a new function just for this Plugin πŸ™‚

          • Patrick MY Patrick

            Thanks a million, Michael!

            Looking forward to the next release.

  2. Carlos BR Carlos

    hi guys,
    i’m having that problem where the info on the custom field doesnt get saved. i have 3.8.6 and custom fieles 1.3.1.
    i’ve tried the solution above about it, that worked the last time, but the plugin already had that code.
    can you help me out plz?
    thx!

    • Michael Visser au Michael Visser

      Hi Carlos, feel free to contact me but I can’t promise immediate support. It’s pretty hectic right now with new e-commerce Plugins just a few days away as well as some awesome Plugin updates across the WP e-Commerce suite! πŸ™‚

  3. Jean-Francois Arseneault CA Jean-Francois Arseneault

    Michael,

    I notice that this plugin, like all the others, includes a /language subdir, but they’re all empty. When do you plan on putting the .pot files in there, so we can start translating the plugins and most importantly, the data we enter, using something like WPML?

    • Michael Visser au Michael Visser

      Hi Jean-Francois, I’ll be looking at that after this next wave of Plugin updates so likely in the next fortnight. I just need to generate the POT file and then let the community loose, I’ll set up a site to manage this and then get the translation files included in each new Plugin update. πŸ™‚

      • Jean-Francois Arseneault CA Jean-Francois Arseneault

        Sounds good! I know my way around POedit, I can work on the French translation. Surely, others will pick up other languages..

  4. Tammy US Tammy

    Hi Michael,
    Is there any way to re-order the Custom Fields? These are great and I keep thinking of new ones to add. As it is, they are ordered by creation. Do I just need to start over with a firm list?
    Thanks!

    • Kai Howells AU Kai Howells

      +1 for this feature!
      I don’t need full drag and drop reordering functionality (however that’d be very cool) but even if there’s a field for the displayed order, like when you’re creating pages you can specify a number for the page order, that would be great.

    • Michael Visser au Michael Visser

      Hi Tammy, in the meantime yes. But as Kai suggested an ordering option would be great and I’ll look at how to add this feature in once I’ve sent out the next batch of Plugin updates πŸ™‚

    • Michael Visser au Michael Visser

      Hi Tammy and Kai, custom field ordering has been added in 1.3.2! Please let me know it works for you. πŸ™‚

      • Kai Howells AU Kai Howells

        Downloading and testing now. Thank you for the update to this outstanding (and free!) plugin.

        Cheers,
        Kai

      • Kai Howells AU Kai Howells

        Thanks Michael, this works exactly as expected.
        Cheers,
        Kai

  5. Josh US Josh

    Any way to use this to create additional wpsc_product_has_personal_text() fields?

    Im trying to find some info on a plugin or a reading resource to create additional fields by product.. sort of how the variations work but for text/area fields.

    Thanks in advance

    • Ross US Ross

      This is something I am looking for also. If a solution is found, please share.

        • Ross Heintzkill US Ross Heintzkill

          I dled & installed that plugin, but it didn’t seem to work. I’m running WP v3.2.1 & WPEC 3.8.6. Did it work for you? I e-mailed the developer of the plugin, but did you get any other solution? I’m looking for the same thing: a way to have user-inputted fields get added to the Product & carry through to checkout.

          • Ross US Ross

            That other plugin worked perfectly for me.

  6. t-racer AU T-racer

    Hi Michael, Is it possible to target a specific custom field in the template like normal wordpress custom fields rather than having them all listed together in a preformatted way?
    eg

    • t-racer AU T-racer

      sorry, I put my code in a code tag but it disappeared anyway. Trying again…

      wpsc_the_custom_fields('labelname');

      • Michael Visser au Michael Visser

        I like… I’ve gone ahead and pushed out 1.2.9 adding ID support for CSS styling on individual custom fields as I thought that might be what you were after. I’ll have a play! πŸ™‚

    • Michael Visser au Michael Visser

      Hi t-racer, feel free to elaborate. I’m interested πŸ™‚

      • t-racer AU T-racer

        Ok, say I have a ‘date’ field and a ‘time’ field. It would be great to do something like this in the template:

        The show is on wpsc_the_custom_fields('date'); at wpsc_the_custom_fields('time');

        Not exactly what I want to use it for but do you get what I mean?

        • t-racer AU T-racer

          I’d actually love to have a date picker as a custom field input but that might be a bit ambitious! πŸ™‚

      • Michael Visser au Michael Visser

        Hi t-racer, 1.3 is out. Set the Position under Settings within the WordPress Administration to Manual. From here drop the following attribute for displaying single custom fields. I’ll build this out further to support other properties as well as documentation.

        < ?php wpsc_the_custom_fields( 'slug=author' ); ?>

        • t-racer AU T-racer

          You, sir, are a legend!

          But instead of Author: Joe Bloggs with the table, list etc, I needed just Joe Bloggs.

          So I had a look at your code and managed to get it to do what I want.

          I added $layouts[] = array( 'value-only.php', __( 'Value Only', 'wpsc_cf' ) );</code to line 315 of custom-fields.php

          Then I created a new file in the themes folder called wpsc-single_product_customfields_value-only.php and placed the following code in it:


          $custom_field ) { ?>

          Now it works exactly as I need it to. Thank you so much!

          • t-racer AU T-racer

            trying again with that code…

            if( $custom_fields ) {
            foreach( $custom_fields as $custom_field_id => $custom_field ) {
            if( wpsc_cf_has_value( $custom_field ) ) {

            wpsc_cf_value( $custom_field );

            }
            }
            }

            • Michael Visser au Michael Visser

              Nice! πŸ™‚

  7. Tammy US Tammy

    I downloaded & installed Custom Fields last night. Everything works great and the field shows up in edit product. Text entered remains there as it should. The custom field does NOT show on the finished product screen – it doesn’t get published. Did I miss a step? WP 3.2.1, WP-ecommerce 3.8.6, Gold cart 2.9.2

    • Michael Visser au Michael Visser

      Spotted the issue, it’s my use of the wpsc_is_single_product() function within WP e-Commerce that’s returning the wrong value. I’ll go back to my tried and trusted method. 😐

  8. Kai Howells AU Kai Howells

    With the custom fields, is there any way to reorder them?

    If I’ve got a big list of custom fields and I want to change one from being an input to a textarea, or add a custom field near the top – is there any way to do this?

    Thanks,
    Kai

    • Michael Visser au Michael Visser

      Hi Kai, I’ll add in ordering controls, as for bulk changes I’ll look into this πŸ™‚

    • Michael Visser au Michael Visser

      Hi Kai, as above, field ordering has been added in the latest Plugin update.

  9. Abhijit IN Abhijit

    Hi,

    Is there any way i can add image upload in the custom fields ?

    Thanks,
    Abhijit

    • Abhijit IN Abhijit

      No reply yet…thats odd..:(

      • Michael Visser au Michael Visser

        Hey Abhijit, just need a bump from time to time. πŸ˜›

        My Premium Plugins get most of my sweat, I spend as much time as I can on these little guys. Image upload would be a major enhancement and might justify a Premium-release, I’ll see what I can do via the Ideas system. πŸ™‚

        http://www.visser.com.au/forums/topic/add-image-support-to-custom-fields/

        • Abhijit IN Abhijit

          Ohhh…thats ok then…

          Thanks for your time.

      • Guest PL Guest

        I did it like that in release-3_8.php

        case 'wysiwyg':
        $output = '

        jQuery(document).ready( function () {
        jQuery("#wpsc_cf_product_' . $i . '").addClass("mceEditor");
        if ( typeof( tinyMCE ) == "object" && typeof( tinyMCE.execCommand ) == "function" ) {
        jQuery("#wpsc_cf_product_' . $i . '").wrap( "" );
        tinyMCE.execCommand("mceAddControl", false, "wpsc_cf_product_' . $i . '");
        }
        });

        ' . get_product_meta( $post->ID, $wpsc_cf_field['slug'], true ) . '
        ' . $wpsc_cf_field['description'] . '';
        break;

        • Michael Visser au Michael Visser

          Awesome, I’ll bake that in the next Plugin update! Great work!

  10. Nadja von Massow NL Nadja von Massow

    Hey – great little plugin!
    But how can I strip out the label?

    • Michael Visser au Michael Visser

      Hi Nadja, you’ll be able to control this and more in the next Plugin update πŸ˜‰

    • Michael Visser au Michael Visser

      1.2.4 is available now, just remove the label from the template πŸ™‚

      • Nadja von Massow GB Nadja von Massow

        Man, you’re a star. Thanks! (Especially for the fast action).

  11. Kai Howells AU Kai Howells

    Hi Michael (again)

    With the custom fields, would it be possible to have custom fields specified as drop-downs for the Dashboard interface? If this were to make it into a paid version of this plugin, it would be worth paying for.

    Cheers,
    Kai

    • Michael Visser au Michael Visser

      Hi Kai, so you would assign drop-down values in Settings > Custom Fields and then select that value from the Products > Add/Edit Products screen drop-down for that Custom Field? I could do that πŸ˜‰

      • Kai Howells AU Kai Howells

        Yes, exactly.
        Say I had a custom field that had a relatively static number of possible values – it would make it easier for the administrators to enter the values if they could select from a drop-down list for that particular field.

      • Kai Howells AU Kai Howells

        Also, while I’ve got your attention ^_^

        How difficult would it be to have the custom fields put in a table that I could then format with CSS so that my custom field names and their values can all be nicely aligned.

        Oh, and while I’m working on a wish list, would it also be possible to automatically enter after newlines when using a Textarea type for the custom field?

        • Michael Visser au Michael Visser

          Already written the template file for Custom Fields, it was just an initial Plugin update I wanted to get out the door.

          I’ll have another Plugin update tomorrow to introduce the ‘wpsc-single_product_customfields.php’ template file support in use across my Plugin suite πŸ˜‰

          Roger on the new lines, should have known better; my bad.

          • Kai Howells AU Kai Howells

            Slab of beer (virtually) on it’s way to you now. Thanks again for being so responsive.

            Cheers!

          • Kai Howells AU Kai Howells

            I needed the custom fields to appear in a table, and have made some changes to one of the include files. I’ve emailed you my updated version just in case you have anyone else who has a similar requirement.

  12. Kai Howells AU Kai Howells

    Hi Michael,

    This is a really useful plugin.
    One thing I’d like to be able to change is that on my products page, the data that I’ve entered into Custom Fields has a heading “Custom Fields” formatted as an title. Is there any way to get rid of this heading and just have my custom metadata display?

    Thanks,
    Kai

    • Michael Visser au Michael Visser

      Hi Kai, you can hide the heading in the latest 1.2.3 Plugin update, you’ll find the presentation settings under Settings > Custom Fields. πŸ™‚

      • Kai Howells AU Kai Howells

        Awesome, thank you for the super-fast reply!

        Cheers mate,
        Kai

  13. Stephane FR Stephane

    Hi,
    I would like to be able to display a category trough a custom field..using for example :
    [wpsc_products category_id=’3′ ]
    do you think it’s possible..cause I tried but I only got the text not the gallery.

    In reality I would like to put a category under a product page.
    a page like that:
    – product #1 : image, description, add to cart, price etc
    – category #X (with all the thumbnails)

    I thought I could do that with a custom field.
    Do you have a clue..?
    Thanks

    • Michael Visser au Michael Visser

      Hi Stephane, Custom Fields simply lets you add additional details to a Product, it does not integrate with WordPress shortcodes. You’ll likely need to make template changes to see what you’re after. πŸ™‚

      • Stephane FR Stephane

        Hi, thanks for your answer..
        yes,
        I found the way to do it by adding a code to my template

        and we can use the data of the custom field to use instead of [my_shortcode].

        thanks for your works

        • Stephane FR Stephane

          could be an automatic feature for the ones who want to integrate category as gallery to a product !

  14. pau1phi11ips GB Pau1phi11ips

    Hi Michael,

    Nice plugin.

    Just a thought for a future update – could you add a checkbox in the settings to disable the helpers underneath the entry fields please?

    It’s handy when building the theme but not after it’s finished and the end customers don’t need to see this. It would be better to put the Description box underneath to give people a prompt at what info is required in the field instead.

    • pau1phi11ips GB Pau1phi11ips

      Oops, forgot the php would be filtered. I was refereing to these helpers;
      php echo get_product_meta( wpsc_the_product_id(),’Authors’,true );

      • Michael Visser au Michael Visser

        Hi pau1phi11ips, I’ll get that option added in the next Plugin update. πŸ™‚

      • Michael Visser au Michael Visser

        Hi pau1phi11ips, switched out the tooltip for the custom field description in 1.2.2. πŸ™‚

Leave a Reply to GNight Cancel reply

Before you comment - Do you have a support request? If so, this is not the right place to post it. Please submit support requests for Premium Plugins on the Support page and in the community Support Forums for free Plugins.

Support

Custom Fields comes with a Quick Start document (readme.txt) to help with installing the Plugin. Additional support can be found from theΒ ContactΒ page or methods below.

Urgent Support

If you find yourself needing immediate support for your purchase use theΒ Premium SupportΒ page or Live Support button.

Custom Fields Forum

If you have any problems, questions or suggestions please join the members discussion on our Custom FieldsΒ forum.