Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author codepeople

    (@codepeople)

    Hi,

    I’m sorry, the products defined in the “Sell Downloads” plugin do not have assigned a category, for this reason the permalinks structure, defined in your website no applies to the products. However, you can edit the “/wp-content/plugins/sell-downloads/sell-downloads.php” file, and modify the line of code:

    'rewrite' => ( ( get_option( 'sd_friendly_url', false )*1 ) ? true : false )

    for using a different permalink structure.

    Best regards.

    Thread Starter katypical

    (@katypical)

    That is a fair response but I still get a 404 when I use the checkbox on your plugin. The product link doesn’t work on the products page.
    Is it supposed to work like that?

    Plugin Author codepeople

    (@codepeople)

    Hi,

    After edit the permalink structure you should update the product to allow it generate the permalink again, based in the new structure, however, as I said in the previous ticket there are some permalink structures that not apply to the products created with the “Sell Downloads” plugin, in whose case should not be used friendly URLs with the store’s products.

    Best regards.

    Thread Starter katypical

    (@katypical)

    The line of code you gave to change is the same as what is already in the plugin. There is no edit. So I guess it doesn’t work.

    Plugin Author codepeople

    (@codepeople)

    Hi,

    I’ve indicated the line of code to edit, but not the way it should be modified, I’m sorry, because the customization depends of the permalinks structure in your website.

    Please, try the following changes, if you want to replace the “sd_product” text from the link of products, by the “product” text, for example

    http://www.yourwebsite.com/product/product-name

    First, be sure there is not a page with the “product” slug, and then, go to the line of code I’ve indicated previously:

    'rewrite' => ( ( get_option( 'sd_friendly_url', false )*1 ) ? true : false )

    and modify it as follows:

    'rewrite' => ( ( get_option( 'sd_friendly_url', false )*1 ) ? array('slug' => 'product') : false )

    and finally, just in the line above to the next “}” symbol, insert the piece of code:

    flush_rewrite_rules();

    and that’s all.
    Best regards.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Friendly URLs not working for plugin’ is closed to new replies.