Articles on: Review Widgets

How to Remove Review Widgets During App Uninstallation

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.

What you’ll learn



In this tutorial, we’ll show you:

How to disable the relevant widgets
How to disable the relevant codes

Disable the relevant widgets



Disable the Star rating widget here


Disable the Reviews widget here
Disable the Featured reviews widget here
Disable the Reviews side tab here

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 file name “asrv-star-widget.liquid”
Delete the file

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.

Reviews widget

​​<!--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" style="display: none"></div> <!--END_AS_REVIEWS:production:product_page_reviews-->


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


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


Featured review widget

Option 1

<div id="automizely_reviews_featured-review--production"></div>


Option 2

Shopify theme editor → Sections → file named “am-featured-reviews-carousel.liquid”

<div id="automizely_reviews_featured-review--production" data-rv-fr-public-styles="--fr_max_width:{{section.settings.fr_max_width}}%;" {%if request.design_mode %}data-mode='preview'{% endif %} > </div> {% schema %} { "name": "AS Featured Review Widget", "settings": [ { "type": "range", "id": "fr_max_width", "min": 0, "max": 100, "step": 1, "unit": "%", "label": "Maximum width", "default": 100 } ], "presets": [{ "name": "AM Featured Review Widget", "category": "Reviews" }] } {% endschema %} {% stylesheet %} {% endstylesheet %} {% javascript %} {% endjavascript %}


Google review snippet

<!--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-->



If you have any queries, feel free to connect with our support team for quick assistance.

Updated on: 12/03/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!