By default, eShop shopping cart plugin will use standard post to display it’s product options. But it would be better if we can use custom post type which is available in wordpress 3 to have separate post type for our product. First we need to install eShop and Custom Post Type UI then use Custom Post Type UI to create custom post type easily instead of messing around with functions.php.
Next is look for editing eshop-product-entry.php file inside eshop plugin folder. Search for this code approx on line 13
add_meta_box( 'epagepostcustom', __( 'Product Entry', 'eshop' ), 'eshop_inner_custom_box', 'post', 'normal','high' );
Now replace ‘post’ with your newly created post type, i.e: product.
add_meta_box( 'epagepostcustom', __( 'Product Entry', 'eshop' ), 'eshop_inner_custom_box', 'product', 'normal','high' );
That’s all, when you add new product, there’s eShop options available for that custom post type.
By Jauhari 3 August 2010 - 10:25
Mantap mas.. lama ndak ngoprek2 WordPress…
By TYO 1 May 2011 - 23:26
eHM,numpang pencet keyboard
By SILVERDUB 27 May 2011 - 03:21
Saya cari kata kuci “how to include custom post type in search”.
Eeee… malah ketemu tulisan ini.
Uhuk.. uhuk..
By yzlow 7 November 2011 - 13:11
Hi, here’s a better method to add custom post types without having to touch the core files for eShop.
http://yzlow.monstrosity-studio.com/enable-custom-post-types-for-eshop/220/