Support for Product permalink bases

This topic contains 2 reply and 2 voices, and was last updated by Simon 10 years, 8 months ago
Viewing 2 Posts - 1 through 2 (of 2 total)
Author Posts
March 28, 2014 at 8:26 am 17444
Simon 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
March 28, 2014 at 5:50 pm 17478
Tareq Hasan Tareq Hasan

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

http://pastie.org/private/jvs5vywtyircgfmd7fpmq

March 31, 2014 at 8:09 am 17639
Simon Simon

HI Tareq,

thanks for that. It worked perfectly.

Simon

Viewing 2 Posts - 1 through 2 (of 2 total)