Home Forums Theme Support Dokan Support for Product permalink bases

This topic is: resolved

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  Simon 5 years, 1 month ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #17444

    Simon
    Member
    Post count: 8

    Hi,

    Great theme. At present products can only be edited when the permalink is set to product type. Our shop will use the ‘Shop base with category' .

    So now products can be edited when the edit product link is
    http://website.com/product/woo-single-2/edit/
    BUT NOT WHEN it is
    http://website.com/shop/accessories/woo-single-2/edit/

    I can see this can be altered in the class Dokan_Rewrites (rewrites.php) @ function register_rule()

    Can you supply the code so we can move forward so all permalink types work rather than halt our project until the next update?

    Maybe you should just generate non-permalink urls for editing products and all other dashboard functions. That is site.com/dashboard?edit_product?product=8698&action=edit – then it won't matter what permalink people have.

    thanks!

    Simon

    #17478

    Tareq Hasan
    Keymaster
    Post count: 2831

    As you've located the codeblock already, replace it with this:

    http://pastie.org/private/jvs5vywtyircgfmd7fpmq

    #17639

    Simon
    Member
    Post count: 8

    HI Tareq,

    thanks for that. It worked perfectly.

    Simon

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Support for Product permalink bases’ is closed to new replies.