Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I want to show products like an eCommerce store with product categories and detail pages, but I have no need for a shopping cart or checkout system. This is just to display the products for informational purposes.

I have used custom post types on another project and that worked out fine, but I am wondering if anyone knows of a plugin that would make this fast and easy to customize. Also an import/export feature would be nice for adding lots of products.

share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

if you have no need for regular blog posts, you can just use those. the post is probably not overly different from a custom post type for a product. though i just did a CPT for products and added some cool features. though since they were related to metaboxes and custom columns there's no reason you couldn't add them to posts, but in case you want to use your blog ever, i'd probably keep them as a separate CPT.

the ecommerce plugins i've seen are usually related to setting up your shopping cart.

where do you want to import from? you can always import/export your posts w/ the xml built-in import/exporter

share|improve this answer
    
Great thanks. This confirms that I am already approaching it the right way (that's always nice). –  Drai Aug 10 '11 at 18:50
    
I would be like to import from a csv file –  Drai Aug 10 '11 at 18:51
2  
a bit of confirmation is always good! i think CPT is the way to go. @rocket ronnie's code should get you set up in seconds. wordpress.org/extend/plugins/csv-importer might help, but idk if it imports to CPTs. –  helgatheviking Aug 10 '11 at 19:02
    
wordpress.org/extend/plugins/csv-importer/other_notes -- apparently version 0.3.2 implemented support for CPTs. –  Pat J May 1 '13 at 15:39
add comment

I would recommend going down the custom post route, for the time it takes its totlly worth it, plus it keeps things nice and tidy in the backend.

I would recomend using this plugin to add meta boxes to custom post types http://plugins.elliotcondon.com/advanced-custom-fields/

You will still need to set up the custom post type, stick this in your functions.php

//ADDING CUSTOM POST TYPE 'PRODUCT'
    function products_int(){
        $labels = array(
            'name' => _x('Products, 'post type general name'),
            'singular_name' => _x('Product', 'post type singular name'),
            'add_new' => _x('Add New', 'Product'),
            'add_new_item' => __('Add New Product'),
            'edit_item' => __('Edit Product'),
            'new_item' => __('New Product'),
            'view_item' => __('View Product'),
            'search_items' => __('Search for Products'),
            'not_found' =>  __('No products found'),
            'not_found_in_trash' => __('No products found in Trash'),
            'parent_item_colon' => ''
        );
        $args = array(
            'labels' => $labels,
            'public' => true,
            'publicly_queryable' => true,
            'show_ui' => true,
            'query_var' => true,
            'rewrite' => true,
            'capability_type' => 'post',
            'hierarchical' => false,
            'menu_position' => 4,
            'supports' => array('title','editor','thumbnail'),
            'taxonomies' => array('category')
        );
        register_post_type('product',$args);
    }

//CUSTOM POST TYPE
    add_action('init', 'products_int');

Thats it pretty much

share|improve this answer
    
Above and beyond! thanks. –  Drai Aug 10 '11 at 18:51
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.