WordPress.org

Ready to get started?Download WordPress

Forums

WP Marketplace - Complete Shopping Cart / eCommerce Solution
[Plugin: WP Marketplace - WordPress Shopping Cart System] 404 For Single Product Page (6 posts)

  1. baseem
    Member
    Posted 1 year ago #

    Hello,
    I'm having trouble with the plugin. when I press on a specific item or I hit the "View" button after adding a post I get 404 page not found.
    I double checked the permalinks just like in the installation instructions but it's not working. can you please direct me to where this problem might come from?
    Thanks a lot!

    http://wordpress.org/extend/plugins/wpmarketplace/

  2. iahnn
    Member
    Posted 1 year ago #

    Try the default permalink. If it didnt work, there must be an issue with your theme. Try switching to a different theme.

  3. baseem
    Member
    Posted 1 year ago #

    Thanks for the quick reply! The default permalinks works! :)
    However I can't keep it like that. do you have any idea why this might be happening?

  4. iahnn
    Member
    Posted 1 year ago #

    it might be a cause of your theme's canonical redirect issue. If you are good in programming, then i think you can fix the issue. But if you cant, you better switch to another theme.

  5. baseem
    Member
    Posted 1 year ago #

    Yes I am a programmer. Thanks a lot for your help.
    Btw, I'm using Twenty-Eleven theme. (default in wordpress) and it is making the problem.

  6. baseem
    Member
    Posted 1 year ago #

    So after around a week of frustration. I fixed this problem by simply calling: flush_rewrite_rules() after the new post type is added in the plugin. (it is specified by wordpress documentation to use it but for some reason you didn't)
    so in wpmarketplace/libs/install.php
    the code for function wpmp_post_types should look like that:

    function wpmp_post_types(){
        register_post_type("wpmarketplace",array(
    
                'labels' => array(
                    'name' => __('Marketplace'),
                    'singular_name' => __('Product'),
                    'add_new' => __('Add Product'),
                    'add_new_item' => __('Add New Product'),
                    'edit_item' => __('Edit Product'),
                    'new_item' => __('New Product'),
                    'view_item' => __('View Product'),
                    'search_items' => __('Search Product'),
                    'not_found' =>  __('No product found'),
                    'not_found_in_trash' => __('No product found in Trash'),
                    'parent_item_colon' => ''
                ),
                'public' => true,
                'publicly_queryable' => true,
                'has_archive' => true,
                'show_ui' => true,
                'query_var' => true,
                'rewrite' => array('slug'=>'product','with_front'=>false),
                'capability_type' => 'post',
                'hierarchical' => false,
                'menu_icon' =>plugins_url().'/wpmarketplace/images/wpmp.png',
                'supports' => array('title','editor','author','excerpt','thumbnail','ptype','comments','custom-fields') ,
                'taxonomies' => array('ptype')
    
            )
        );     
    
        flush_rewrite_rules();
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic