LAI AliExpress Reviews Integration Guide
LAI AliExpress Reviews helps you collect and display ratings and reviews about your products and Shopify store. Here is our guide made for LAI AliExpress Reviews integration with Boost Product Filter & Search app.
About LAI AliExpress Reviews
1
App Information
- The app helps merchants to collect and display ratings/reviews about their products and Shopify store.
2
LAI AliExpress Reviews Integration Benefit
- Show your reviews everywhere during navigation time and get profit right away.
Demo of LAI AliExpress Reviews integration
Here are some of our customers' stores with our app and LAI AliExpress Reviews integration.
1
Display reviews/ratings in the product item
2
Display a filter option by ratings/reviews.
Instruction
Attention: The current document only works with the new front-end lib from Boost Commerce. Please read this document first to know if you are using the latest version.
// For boost-pfs-filter.js '{{itemReviews}}' + // For boost-pfs-filter-html.liquid [[itemReviews]]
Then paste it inside the block productGridItemHtml, where you want your Ratings to appear, for example, under the product price:
If productGridItemHtml variable does not exist, please check the file boost-pfs-filter-html.liquid:
ProductGridItem.prototype.compileTemplate = function(data) { /*** **** ***/ // Add reviews var itemReviewsHtml = ''; if (Utils.getProductMetafield(data, 'scm_review_importer', 'reviewsData') !== null) { itemReviewsHtml += '<div class="scm-reviews-rate" data-rate-version2=' + JSON.stringify(JSON.parse(Utils.getProductMetafield(data, 'scm_review_importer', 'reviewsData')).reviewCountInfo) + '>'; } itemHtml = itemHtml.replace(/{{itemReviews}}/g, itemReviewsHtml); // Add main attribute (Always put at the end of this function) /*** **** ***/ } ProductList.prototype.afterRender = function(data) { /*** **** ***/ if(typeof SMARTIFYAPPS!== 'undefined' && SMARTIFYAPPS.rv.installed){ SMARTIFYAPPS.rv.scmReviewsRate.actionCreateReviews(); } /*** **** ***/ }