Home Forums WoodMart support forum Wishlists redirected back to basic wishlist url

Wishlists redirected back to basic wishlist url

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #445363

    metuza
    Participant

    Hello,

    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
    Rune

    #445394

    Artem Temos
    Keymaster

    Hello,

    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 builder

    Thank you in advance

    #445430

    metuza
    Participant

    Hello,

    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
    Rune

    #445473

    Artem Temos
    Keymaster

    Hello,

    Please, send us your FTP access also so we can check the issue further.

    Kind Regards

    #445479

    metuza
    Participant

    Hello,

    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

    #445489

    metuza
    Participant

    I 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
    Rune

    #445497

    metuza
    Participant

    Fixed 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’ );
    }

    #445521

    metuza
    Participant

    I 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’ );

    #445734

    Artem Temos
    Keymaster

    Hello,

    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

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