The most cool thing of wordpress is custom post type. Now most of the plugins are using wordpress custom post type because of its flexibility.
Post types Order plugin give us the future to reorder the posts by just drag and drop. This plugin also supports custom post type.But wp ecommerce plugin also use the custom post type called
‘wpsc-product’. But it won’t work with drag and drop future with post types order plugin. To Make it work just do the one change that mentioned below.
Step 1 : Find the location of registering ‘wpsc-product’ post type in wp ecommerce plugin.
Goto : “site\wp-content\plugins\wp-e-commerce\wpsc-core” this location
File : “wpsc-functions.php” find this file and open it.
Step 2 : Change the parameter of register_post_type
Search “register_post_type( ‘wpsc-product’, array(” this line in file. here we can see the below code
// Products register_post_type( 'wpsc-product', array( 'capability_type' => 'post', 'supports' => array( 'title', 'editor', 'thumbnail' ), 'exclude_from_search' => false, 'public' => true, 'show_ui' => true, 'show_in_nav_menus' => true, 'menu_icon' => WPSC_CORE_IMAGES_URL . "/credit_cards.png", 'labels' => $labels, 'query_var' => true, 'register_meta_box_cb' => 'wpsc_meta_boxes', 'rewrite' => array( 'slug' => $wpsc_page_titles['products'] . '/%wpsc_product_category%', 'with_front' => false ) ) );
Here we just add another parameter ‘hierarchical’ => false,
After changing this will look like below.
// Products register_post_type( 'wpsc-product', array( 'capability_type' => 'post', 'supports' => array( 'title', 'editor', 'thumbnail' ), 'hierarchical' => false, 'exclude_from_search' => false, 'public' => true, 'show_ui' => true, 'show_in_nav_menus' => true, 'menu_icon' => WPSC_CORE_IMAGES_URL . "/credit_cards.png", 'labels' => $labels, 'query_var' => true, 'register_meta_box_cb' => 'wpsc_meta_boxes', 'rewrite' => array( 'slug' => $wpsc_page_titles['products'] . '/%wpsc_product_category%', 'with_front' => false ) ) );
Now we can see the reorder menu in product tag as below.
By reordering product using drag and drop future also will reflect in front end product listing.
We believe this post is helpful for someone. If you feel this post cool, please show your love by clicking vote button. Share this post with your social community.
Hello WordPress eCommerce,
Thanks for your Information.Can you please check the speed now ? we have installed Light-speed server and Upgraded our server detail as follows:
18GB RAM,
16 Core CPU,
100 MBPS Port Speed,
Maximum Up time & Reliability
At World Class FDC Servers With 99.99% Up-time.
Please Check and confirm this.
Sincerely,
Eversmile Hosting.com
I do agree with all the ideas you have presented in your post. They’re really convincing and will definitely work. Still, the posts are too short for novices. Could you please extend them a little from next time? Thanks for the post.
Thanks for your comment. definitely i took your valuable suggestion.