Home › Forums › WoodMart support forum › Wishlists redirected back to basic wishlist url
Wishlists redirected back to basic wishlist url
- This topic has 8 replies, 2 voices, and was last updated 1 year, 9 months ago by Artem Temos.
-
AuthorPosts
-
February 22, 2023 at 1:13 pm #445363
metuzaParticipantHello,
I noticed that it is not possible to view wishlists from within admin or as a guest when urls looks like this: https://www.villmarksbua.no/onskeliste/3/ – i am then redirected back to https://www.villmarksbua.no/onskeliste/
Tested on 3 different installs and all had the same issue.
Brgds
RuneFebruary 22, 2023 at 3:06 pm #445394
Artem TemosKeymasterHello,
Please, disable all plugins that are not related to our theme and provide us with your admin access. We will log in and check what is wrong there. You can leave only the following plugins that are required for our theme:
WoodMart core
WooCommerce
Elementor/WPBakery page builderThank you in advance
February 22, 2023 at 4:26 pm #445430
metuzaParticipantHello,
Well, you can have a look at my clients site as it is soon to be closed down and has almost no traffic. We have the same issue there. It was working ok when the admin table was introduced 2-3 versions ago, but on todays test it does not work. I have added the requested information and deactivated plugins.
As mentioned we have the same issue on all 3 sites.
Brgds
RuneFebruary 22, 2023 at 5:55 pm #445473
Artem TemosKeymasterHello,
Please, send us your FTP access also so we can check the issue further.
Kind Regards
February 22, 2023 at 6:15 pm #445479
metuzaParticipantHello,
Well, the host one.com had a new system in place where an email was sendt to setup a new ftp password. Could not set my own mailaddress so mail went to website owner who is in the mountains 😉 So then no access to ftp for the next 2-4 days. Sorry..
Brgds
February 22, 2023 at 6:58 pm #445489
metuzaParticipantI see your rewrite rule starts like this, add_rewrite_rule( ‘^wishlist/ – so i did a test using this url wich works ok, https://www.villmarksbua.no/onskeliste/?wishlist_id=3 and if i change the whislist slug from /onskeliste/ to /wishlist/ then this url works ok, https://www.villmarksbua.no/wishlist/3/.
So whatever slug i am using the url fails, but when using /wishlist/ url works just fine.
Brgds
RuneFebruary 22, 2023 at 7:40 pm #445497
metuzaParticipantFixed the issue adding slug name in place of wishlist.
public function custom_rewrite_rule() {
$id = woodmart_get_opt( ‘wishlist_page’ );
$slug = get_post_field( ‘post_name’, $id );
add_rewrite_rule( ‘^’ . $slug . ‘/([^/]*)/page/([^/]*)?’, ‘index.php?page_id=’ . ( (int) $id ) . ‘&wishlist_id=$matches[1]&paged=$matches[2]’, ‘top’ );
add_rewrite_rule( ‘^’ . $slug . ‘/page/([^/]*)?’, ‘index.php?page_id=’ . ( (int) $id ) . ‘&paged=$matches[1]’, ‘top’ );
add_rewrite_rule( ‘^’ . $slug . ‘/([^/]*)/?’, ‘index.php?page_id=’ . ( (int) $id ) . ‘&wishlist_id=$matches[1]’, ‘top’ );
}February 22, 2023 at 10:00 pm #445521
metuzaParticipantI have setup asome new rewrite rules which work.
$id = woodmart_get_opt( ‘wishlist_page’ );
$page_slug = get_post_field( ‘post_name’, $id );
add_rewrite_rule( ‘(([^/]+/)*’ . $page_slug . ‘)(/(.*))?/page/([0-9]{1,})/?$’, ‘index.php?pagename=$matches[1]&wishlist_id=$matches[4]&paged=$matches[5]’, ‘top’ );
add_rewrite_rule( ‘(([^/]+/)*’ . $page_slug . ‘)(/(.*))?/?$’, ‘index.php?pagename=$matches[1]&wishlist_id=$matches[4]’, ‘top’ );February 23, 2023 at 3:10 pm #445734
Artem TemosKeymasterHello,
Thank you for the details. We will review this with our development team and fix it in our next theme update if needed.
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register