PHP code example of astrogoat / yotpo
1. Go to this page and download the library: Download astrogoat/yotpo library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
astrogoat / yotpo example snippets
<x-yotpo::reviews-widget
instance-id="[THE INSTANCE ID FROM YOTPO'S WIDGET]"
product-id="[THE SHOPIFY PRODUCT ID]"
/>
<x-yotpo::star-rating
instance-id="[THE INSTANCE ID FROM YOTPO'S WIDGET]"
product-id="[THE SHOPIFY PRODUCT ID]"
/>