• It appears in the latest version of WooCommerce (2.1.2) there is not way for users to select the page for the Wishlist. In your admin are it says
    Be sure that the wishlist page is selected in WooCommerce > Settings > Pages, but the Pages tab has been removed.

    We have found that the issues is caused in class.yith-wcwl-init.php, line 249 –

    add_filter( ‘woocommerce_page_settings’, array( $this, ‘add_page_setting_woocommerce’ ) );

    as the woocommerce_page_settings hook has been removed. We currently changed it to woocommerce_account_settings, so that our users can still use the plugin.

    We also noticed that the plugin seems to be adding the woocommerce-page, woocommerce-wishlist classes to the body on all page, when no wishlist page is selected.

    Hopefully you will update this awesome plugin soon. Thank you.

Viewing 10 replies - 1 through 10 (of 10 total)
  • I’m seeing the same problem here. Additionally, the “Add to Cart” button to go from wishlist to cart is not working either -even when 1.1.1 is supposed to fix this ?? .
    Any news on this?

    Marcelo,

    Ziga’s fix works. You basically have to force the option to choose the WishList location to the ACCOUNTS Page in Woo. Otherwise, it will not allow you to choose the WishList page.

    This is the file that needs to be edited:

    class.yith-wcwl-init.php, line 249

    Search for the following line of code:

    add_filter( 'woocommerce_page_settings', array( $this, 'add_page_setting_woocommerce' ) );

    And then replace it with this:

    add_filter( 'woocommerce_account_settings', array( $this, 'add_page_setting_woocommerce' ) );

    That fixed the issue for me.

    Many thanks to Ziga for the help here. Seems like such a simple fix that I’m not sure why YITH haven’t made it yet.

    Hello guys, I did the change as you said, and yet I can now select what is the Wishlist page, when clicking the “Add to cart” button, the plugin is trying to load an URL like the below, and getting a 404 error:
    https://mydomain.com/wp-content/plugins/yith-woocommerce-wishlist/add-to-cart.php?wishlist_item_id=4098

    May this be related to this modification?

    Has this issue been fixed? I am currently experiencing this issue right now and no clue how to fix it. The Wishlist redirect to cart is not working. The page appears blank and the link is shown as below

    https://mydomain.com/wp-content/plugins/yith-woocommerce-wishlist/add-to-cart.php?wishlist_item_id=11387&redirect_to_cart=true

    Any help would be appreciated.

    Thanks!

    Question, do you use SSL?

    Well SSL only for checkout. Would this affect the Wishlist plugin itself?

    Try my solution in the other thread below this one.
    Probably an issue between non SSL to SSL pages, another side affect of using SSL and this plugin.

    Apologies everyone, there was a small typo (incorrect copy/paste) in the earlier one.
    Please see the below.

    Filename = class.yith-wcwl-init.php
    Change;
    var yith_wcwl_plugin_ajax_web_url = '<?php echo admin_url('admin-ajax.php') ?>';

    TO

    var yith_wcwl_plugin_ajax_web_url = '<?php echo admin_url('admin-ajax.php', (is_ssl() ? 'https' : 'http')) ?>';

    Filename = class.yith-wcwl-init.php
    Change;
    var login_redirect_url = '<?php echo wp_login_url() . '?redirect_to=' . urlencode( $_SERVER['REQUEST_URI']) ?>';

    TO

    var login_redirect_url = '<?php echo wp_login_url() . '?redirect_to=', (is_ssl() ? 'https' : 'http') . urlencode( $_SERVER['REQUEST_URI']) ?>';

    Filename = class.yith-wcwl-init.php
    Change;
    '<a href="' . admin_url( 'admin.php?page=' . $wc_settings_page . '&tab=yith_wcwl' ) . '">' . __( 'Settings', 'yit' ) . '</a>',

    TO

    '<a href="' . admin_url( 'admin.php?page=', (is_ssl() ? 'https' : 'http') . $wc_settings_page . '&tab=yith_wcwl' ) . '">' . __( 'Settings', 'yit' ) . '</a>',

    Filename = class.yith-wcwl-ui.php
    Change;
    $html .= '<img src="' . esc_url( admin_url( 'images/wpspin_light.gif' ) ) . '" class="ajax-loading" id="add-items-ajax-loading" alt="" width="16" height="16" style="visibility:hidden" />';

    TO

    $html .= '<img src="' . esc_url( admin_url( 'images/wpspin_light.gif', (is_ssl() ? 'https' : 'http') ) ) . '" class="ajax-loading" id="add-items-ajax-loading" alt="" width="16" height="16" style="visibility:hidden" />';

    Filename = class.yith-wcwl.php
    Change;
    return admin_url( 'admin-ajax.php?wishlist_item_id=' . $item_id);

    TO

    return admin_url( 'admin-ajax.php?wishlist_item_id=' . $item_id, (is_ssl() ? 'https' : 'http'));

    will not work for woocommerce 2.0.20 also??

    I can’t see any wishlist page in woocommerce>settings>pages

    How can I retrieve wishlist page in woocommerce pages??

    I am using wishlist 1.1.2

    Thanks in advance.

    Forgive me if I am not posting in the right spot, but I seem to have created a problem for myself when trying to tweak the Woocommerce PHP for my site. What was an attempt to remove a button ( I did have luck removing elements from another page), has turned into me getting a blank screen when I try to go to my dashboard, no 404,nothing but empty white screen, no site, white space.
    I have since accessed my Cpanel where I located and removed the tweaked PHP with a freshly downloaded one, but still I am dead in the water. ANY advice as to how else I may try to get out of the mess I put myself in? I do have WP2backup as well, not to mention there is a backup wizard on the Cpanel.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Woocommerce 2.1.2 issues’ is closed to new replies.