Plans: All plans Platforms: Shopify
Overview
If, for some reason, you are planning to uninstall the AfterShip Reviews app, you need to make sure all the widget settings are disabled and removed from your theme to ensure they are not visible on your store.
Disable the relevant widgets
Remove the relevant codes
If you have already uninstalled the application, please follow the steps below to remove the codes and ensure the review widgets aren’t visible anymore.
Remove the common code to show widgets
Log in to your Shopify admin account.
Click Sales channels > Online store > Themes > Edit code.
Search for the following files:
asrv-star-widget.liquid
asrv-product-reviews-widget.liquid
asrv-all-reviews-widget.liquid
am-featured-reviews-carousel.liquid
Delete the above files if they exist.
Remove other code blocks (Optional)
Please check the below code blocks that might be inserted into your theme. You could search and delete them manually, one by one.
1. Reviews widget
Version 1
<!--BEGIN_AS_REVIEWS:production:product_page_reviews-->{% if content_for_header contains "/reviews\/v1\/sdk.js" %} <div id="automizely_reviews_carousel_v2_production" data-pid="{{product.id}}" data-oid="{{shop.metafields.automizely_reviews.oid}}" data-sprw="{{shop.metafields.automizely_reviews.sprw}}" ></div> {% endif %} <div id="automizely_reviews_carousel"></div> <!--END_AS_REVIEWS:production:product_page_reviews-->
Version 2
<!--BEGIN_AS_REVIEWS:production:product_reviews_widget--> {% render 'asrv-product-reviews-widget' %} <!--END_AS_REVIEWS:production:product_reviews_widget-->
Version 3
<!--BEGIN_AS_REVIEWS:production:product_page_reviews--> {% render 'asrv-product-reviews-widget' %} <!--END_AS_REVIEWS:production:product_page_reviews-->
2. Star rating widget for product page
Version 1
<!--BEGIN_AM_REVIEWS:production:PRODUCT_TITLE_STAR_WIDGET-->{% if shop.metafields.automizely_reviews.show_stars_under_product_name == 'true' %}<div id="automizely_reviews_product_detail_title_star_widget" data-product-id="{{ product.id }}" data-ratings="{{ product.metafields.automizely_reviews.ratings }}" data-raters="{{ product.metafields.automizely_reviews.raters }}" > </div>{% endif %}<!--END_AM_REVIEWS:production:PRODUCT_TITLE_STAR_WIDGET-->Version 2
<!--BEGIN_AS_REVIEWS:production:PRODUCT_TITLE_STAR_WIDGET--> {% render 'asrv-star-widget' , product: product %} <!--END_AS_REVIEWS:production:PRODUCT_TITLE_STAR_WIDGET-->3. Star rating widget for the collection page
Version 1
<!--BEGIN_AM_REVIEWS:production:PRODUCT_COLLECTION_STAR_WIDGET-->{% if shop.metafields.automizely_reviews.show_stars_under_product_name == 'true' %}<div class="automizely_reviews_product_collection_star_widget" data-product-id="{{ product.id }}" data-ratings="{{ product.metafields.automizely_reviews.ratings }}" data-raters="{{ product.metafields.automizely_reviews.raters }}" ></div>{% endif %} <!--END_AM_REVIEWS:production:PRODUCT_COLLECTION_STAR_WIDGET-->Version 2
<!--BEGIN_AS_REVIEWS:production:PRODUCT_COLLECTION_STAR_WIDGET--> {% render 'asrv-star-widget' , product: product, size: 14 , anchor: false %} <!--END_AS_REVIEWS:production:PRODUCT_COLLECTION_STAR_WIDGET-->4. Featured review widget
Version 1
<div id="automizely_reviews_featured-review--production"></div>
Version 2
<div id="aftership_reviews_featured-review--production"></div>
5. All reviews widget
Version 1
<!--BEGIN_AS_REVIEWS:production:product_reviews_widget--> {% render 'asrv-all-reviews-widget' %} <!--END_AS_REVIEWS:production:product_reviews_widget-->Version 2
<!--BEGIN_AS_REVIEWS:production:all_reviews_widget--> {% render 'asrv-all-reviews-widget' %} <!--END_AS_REVIEWS:production:all_reviews_widget-→6. Google review snippet
Version 1
<!--BEGIN_AM_REVIEWS:production:google_search_snippet--> {% if shop.metafields.automizely_reviews.google_search_snippet_enabled == 'true' and product.metafields.automizely_reviews.google_search_snippet_raters != blank and product.metafields.automizely_reviews.google_search_snippet_raters != '0' %} <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "Product", "@id": {{ canonical_url | json }}, "aggregateRating": { "@type": "AggregateRating", "ratingValue": "{{ product.metafields.automizely_reviews.google_search_snippet_ratings }}", "reviewCount": "{{ product.metafields.automizely_reviews.google_search_snippet_raters }}" }, "name": {{ product.title | json }}, "image": "https:{{ product.featured_image | image_url }}", "offers": [ {%- for variant in product.variants -%} { "@type" : "Offer", {%- if variant.sku != blank -%} "sku": {{ variant.sku | json }}, {%- endif -%} "availability" : "http://schema.org/{% if variant.available %}InStock{% else %}OutOfStock{% endif %}", "price" : {{ variant.price | divided_by: 100.00 | json }}, "priceCurrency" : {{ cart.currency.iso_code | json }}, "url" : {{ shop.url | append: variant.url | json }} }{% unless forloop.last %},{% endunless %} {%- endfor -%} ] } </script> {% endif %} <!--END_AM_REVIEWS:production:google_search_snippet-->
Version 2
<!--BEGIN_AS_REVIEWS:production:google_search_snippet--> {% assign externalProductId = product.metafields['app--4551725'].ratings.value.external_product_id | plus: 0 %} {% assign productId = product.id | plus: 0 %} {% if shop.metafields['app--4551725'].store_settings.value.google_search_snippet_enabled == 'true' and product.metafields['app--4551725'].ratings.value.google_search_snippet_raters != blank and product.metafields['app--4551725'].ratings.value.google_search_snippet_raters != '0' and externalProductId == productId%} <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "Product", "@id": {{ canonical_url | json }}, "aggregateRating": { "@type": "AggregateRating", "ratingValue": "{{ product.metafields['app--4551725'].ratings.value.google_search_snippet_ratings }}", "reviewCount": "{{ product.metafields['app--4551725'].ratings.value.google_search_snippet_raters }}" }, "name": {{ product.title | json }}, "offers": [ {%- for variant in product.variants -%} { "@type" : "Offer", {%- if variant.sku != blank -%} "sku": {{ variant.sku | json }}, {%- endif -%} "availability" : "http://schema.org/{% if variant.available %}InStock{% else %}OutOfStock{% endif %}", "price" : {{ variant.price | divided_by: 100.00 | json }}, "priceCurrency" : {{ cart.currency.iso_code | json }}, "url" : {{ shop.url | append: variant.url | json }} }{% unless forloop.last %},{% endunless %} {%- endfor -%} ] } </script>{% endif %} <!--END_AS_REVIEWS:production:google_search_snippet-->
If you have any queries, feel free to connect with our support team for quick assistance.






