custom product 'meta' info

Hi,

I'm looking to setup a store using marketpress in order to sell books.

Is there any way I could add meta information on a per product basis such as author, isbn numbers, publisher, publication date in such a way as they are searchable, but without using the 'Product details' section which results in an inappropriate (for this purpose) dropdown.

I'd thought of using tags, which might work for publishers, authors etc... but is useless for the ISBN numbers. Even for publisher or author, using tags is agnostic towards what the tag _is_, so the ability to add meta info as key/value pairs would be the better solution, but doesn't seem to exist for products within marketpress, unless I'm missing something.

I would also need to be able to display this information in a structured way at the top of the product description, so again, having key/value pairs available through some meta information would be helpful.

Thoughts?

Rob

  • Philip John
    • DEV MAN’s Apprentice

    Hiya Rob!

    Sure, this is possible and I'd recommend doing this using custom fields.

    First, you'll need to install CustomPress.

    Then, navigate to Custom Press > Content Types > Custom Fields where you'll be able to add a new custom field like so;

    Then you'll have a new option on the new product screen like this;

    Once you've done that you'll need to add the custom field to your product descriptions. Going back to the Custom Fields screen in CustomPress you will find an embed code for your new custom field like this;

    You can paste that code straight into your theme files to display the extra info alongside your product description.

    Cheers,
    Phil

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.