Updating Wishlist App- Bookshop

Modified on Fri, 14 Jun at 5:14 PM

We regret to announce that the Wishlist Compare Plus app will be terminated from August 15, 2024 (GMT+7) due to it is no longer compatible with Shopify's updates.

To ensure a smooth transition, we recommend switching to our new app  SWishlist: Simple Wishlist app, which we believe is a more efficient solution for your needs. Please note that SWishlist: Simple Wishlist app includes only the wishlist function and does not have the compare function.

Below is the detailed information regarding the updating of the wishlist app on Bookshop : 

  • Version 2.1: We have added the code to the theme, you just need to follow the instruction in Theme settings > App Intergrations > Wishlist 
  • Version 2.0: Please follow the instruction below to update the code. 
  • Older versions: Please contact us to get assistance.


If you are using Bookshop version 2.0 theme and Wishlist Compare Plus app, when transitioning from Wishlist Compare Plus app to SWishlist: Simple Wishlist app you will need to edit your theme code to set up the app efficiently. Please follow the instruction below to update your theme code and intergrate the new app:

First of all, please install our new app SWishlist: Simple Wishlist. To prepare for editing your theme, we recommend that you should duplicate your theme to create a backup copy. This make it easy to discard your changes and start again if you need to. After you set up the theme code, you can push this theme live. 


Disable compare function 
Before you get started, you need to disable compare function because  SWishlist: Simple Wishlist app does not have the compare function.
 

Steps:
1. From your Shopify admin, go to Online Store > Themes.
2. Next to the live theme, click Customize to access the Theme editor.
3. Open Theme settings section, tap App Intergrations  

4. Uncheck Enable Compare and Save the change.


Edit your theme code
After you have disabled compare function, you will need to edit the code for your theme.
From your Shopify admin, go to Online Store >Theme > Find the theme you have just duplicated, click the ... button and then click Edit code
Once you are done each step, please remember to hit Save in the top right of the page to save your change.

Steps:

1. Look for the file named "theme.liquid" or type a keyword into the File filters... field to find the file. Once you find it, click on it.
In "theme.liquid" file, you need to find below code and remove it. 


    {% include 'arn_wl_cp_settings' %}

    {% include 'arn_wl_cp_styles' %}

    {% include 'arn_icons_define' %}

    {% if shop.metafields.arena.wl_cp_settings.general_settings.app_script == false %}

        <script defer crossorigin="anonymous" src="{{ 'arn-wishlist-compare.js'  | asset_url }}"></script>

    {% endif %}



2. Find the file named "wl_cp_buttons.liquid" and click on it. 
Remove the whole code in this file, then replace with the below code:


{% case type %}

    {% when 'wl_add_btn' %}

    <button class="st-wishlist-button" data-handle="{{ product.handle }}"></button>

    {% when 'wl_add_text' %}

    <button class="st-wishlist-button" data-type="details" data-handle="{{ product.handle }}"></button>

    {% when 'wl_show_btn' %}

    <button class="st-wishlist-details-button" data-type="manually"></button>

    {% when 'wl_show_text' %}

    <button class="st-wishlist-details-button" data-type="manually"></button>

{% endcase %}


3. Find the file named "bc.global.js.liquid" and click on it.
In this file, press Ctrl+F on Windows, or Command+F on Mac to search the below code: 
AT_Slider.init();

 
Then, you need insert the below code under "AT_Slider.init();" :

$(document).on('click', '.st-wishlist-button-details', function(e) {

      e.preventDefault();

    });




4. Find the file named "custom.scss.liquid" and click on it. 
Scroll down to the last line of the file and insert the below code. 


.header-main .wishlist-target >button {

  padding: 0;

  .st-number {

    width: 24px;

    height: 24px;

    line-height: 24px;

    font-size: 11px;

    font-weight: 600;

    top: -7px;

    right: -15px;

    transform: translate(0%, 0%);

  }

}


.products-list-item .product-wrapper .product-head .product-button .product-wishlist {

  display: flex;

  align-items: center;

  justify-content: center;

  .st-wishlist-button {

    padding: 0;

  }

}

.product-wrapper{

  &.product-style-1 .product-head .product-button>.product-wishlist {

    display: flex;

    align-items: center;

    justify-content: center;

    &:hover {

      >button {

        color: inherit;

        svg {

          color: inherit !important;

        }

      }

    }

    > button {

      padding: 0;

    }

  }

  &.product-style-2 .product-content .product-hover .product-wishlist{

    &:hover {

      >button {

        color: inherit;

        svg {

          color: inherit !important;

        }

      }

    }

    >button {

      padding: 0;

      display: block;

      width: 30px;

      height: 30px;

      text-align: center;

      line-height: 30px;

      box-shadow: 0 0 10px #0000000d;

      border-radius: 50%;

      svg {

        width: 14px;

        height: 14px;

      }

    }

  }

  &.product-style-3 .product-button>.product-wishlist {

    display: flex;

    align-items: center;

    justify-content: center;

    >button {

      padding: 0;

      svg {

        width: 16px;

        height: 16px;

      }

    }

  }

  &.product-style-4 .product-button>.product-wishlist {

    display: flex;

    align-items: center;

    justify-content: center;

    >button {

      padding: 0;

    }

  }

}

.st-product-card .st-atc-button, .st-product-card .st-more-details {

  color: $button-text-btn1;

  background: $button-btn1;

}




step 5: theme-rtl.scss.liquid

.header-main .wishlist-target >button {

  padding: 0;

  .st-number {

    width: 24px;

    height: 24px;

    line-height: 24px;

    font-size: 11px;

    font-weight: 600;

    top: -7px;

    right: -15px;

    transform: translate(0%, 0%);

  }

}


.products-list-item .product-wrapper .product-head .product-button .product-wishlist {

  display: flex;

  align-items: center;

  justify-content: center;

  .st-wishlist-button {

    padding: 0;

  }

}

.product-wrapper{

  &.product-style-1 .product-head .product-button>.product-wishlist {

    display: flex;

    align-items: center;

    justify-content: center;

    &:hover {

      >button {

        color: inherit;

        svg {

          color: inherit !important;

        }

      }

    }

    > button {

      padding: 0;

    }

  }

  &.product-style-2 .product-content .product-hover .product-wishlist{

    &:hover {

      >button {

        color: inherit;

        svg {

          color: inherit !important;

        }

      }

    }

    >button {

      padding: 0;

      display: block;

      width: 30px;

      height: 30px;

      text-align: center;

      line-height: 30px;

      box-shadow: 0 0 10px #0000000d;

      border-radius: 50%;

      svg {

        width: 14px;

        height: 14px;

      }

    }

  }

  &.product-style-3 .product-button>.product-wishlist {

    display: flex;

    align-items: center;

    justify-content: center;

    >button {

      padding: 0;

      svg {

        width: 16px;

        height: 16px;

      }

    }

  }

  &.product-style-4 .product-button>.product-wishlist {

    display: flex;

    align-items: center;

    justify-content: center;

    >button {

      padding: 0;

    }

  }

}

.st-product-card .st-atc-button, .st-product-card .st-more-details {

  color: $button-text-btn1;

  background: $button-btn1;

}






We hope that these detailed instruction will help you successfully set up  SWishlist: Simple Wishlist  app on Bookshop 2.0

If you have any questions or require further assistance, please do not hesitate to contact our support team by emailing: support@arenathemes.com

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article