WooCommerce & WordPress: Getting Started

  • Updated

Welcome and thank you for starting your journey with us at Stamped! Stamped is an AI-powered ecommerce marketing platform that enables direct-to-consumer brands to accelerate business growth with Reviews and Loyalty.

Follow this guide to set up Reviews in WooCommerce & WordPress.


In This Guide


Install the Stamped Plugin 

  1. Activate the plugin
  2. Go to WooCommerce - Settings - Stamped and fill out the settings 
    • You can access your API keys once you've created a Stamped account
    • Store URL is your website URL without https: or //

      WC1.png

  3. Update your display settings to determine where you want your reviews displayed
    WC2.png

Import Existing Reviews to Stamped

You can easily import all of your existing reviews into Stamped with our Reviews Importer. Learn how by checking out our guide to importing existing reviews here.


Import Order History into Stamped

You can also import your order history into Stamped.

  1. Select "Import Order History" in the plugin's top menu
  2. Click the "Import Order History" button

Once the process is complete, a message will follow, showing the number of orders imported into the dashboard.

WC3.png

 


Basic Setup

  1. Start the setup process by going to Settings - General

    WC4.png

  2. Fill out your general email settings as required. Note: Your store's logo image will be shown in your review email templates
  3. Next, go to Settings - Customize - Reviews. This is where you can explore the various options available and modify our basic review email template to suit your brand's look and feel.

    WC5.png

  4. Once everything is complete, you should start to see review emails generated in the queue for subsequent orders received

Widget Settings & Installation

  1. Go to Branding - Widgets to adjust the colors and images for your widgetsWC6.png

  2. View the full list of display widgets in Widgets - Display Widgets or in our Display Widget Showcase

    WC7.png

  3. With a little bit of code (or a little bit of help from your developers), you can showcase your reviews anywhere on your website using our display widgets. Each widget has a custom snippet to be placed wherever you'd like it to be shown.

Supported Shortcodes

To show star ratings:

<?php echo do_shortcode('[Woo_stamped_io type="badge"]'); ?>

To show the main review widget:

<?php echo do_shortcode('[Woo_stamped_io type="widget"]'); ?>

To add rich snippets to product pages:

<?php echo do_shortcode("[Woo_stamped_io type='rich-snippet']"); ?>

If you're not using the widget on a product page, simply use these shortcodes instead.

To add rich snippets by using Product ID:

<?php echo do_shortcode("[Woo_stamped_io type='rich-snippet' product_id=5]");  ?>

To add badges by using Product ID:

<?php echo do_shortcode("[Woo_stamped_io type='badge' product_id=5]"); ?>

To add the main review widget by using Product ID:

<?php echo do_shortcode("[Woo_stamped_io type='widget' product_id=5]"); ?>

Supported Variables

We store review ratings and review count variables for each product in custom tables. You can retrieve them using the code below:

<?php <br>$stampedDBData = get_post_meta( $mod['id'], 'stamped_io_product_reviews_new', true );<br>if (isset($stampedDBData["rating"]) && isset($stampedDBData["count"])) {<br>   $rating[ 'ratingValue' ] = $stampedDBData["rating"];<br>   $rating[ 'reviewCount' ] = $stampedDBData["count"];<br>}<br>?>

Enabling Rich Snippet Support

Under SEO and Cache Settings, check off Enable reviews rich snippet.

WC8.png

If you don't see this setting, update the plugin to the latest version.

If you have any existing SEO apps rendering the JSON-LD version of the schema codes, the following script can be inserted in the footer section of the theme:

<script>
function addEventListenerStamped(el, eventName, handler) {
if (el.addEventListener) { el.addEventListener(eventName, handler); }
else { el.attachEvent('on' + eventName, function () { handler.call(el); }); }
}
addEventListenerStamped(document, 'stamped:reviews:loaded', function(e) {
var ratingCount = jQueryStamped('meta[itemprop="reviewCount"]').attr('content');
var ratingValue = jQueryStamped('meta[itemprop="ratingValue"]').attr('content');
var richSnippet = {
"@context": "http://schema.org",
"@type": "Product",
"@id": window.location.href + '#product'
}
if (parseInt(ratingValue) > 0){
richSnippet.aggregateRating = {
"@type": "AggregateRating",
"ratingValue": ratingValue,
"reviewCount": ratingCount
}
}
var script = document.createElement('script');
script.type = 'application/ld+json';
script.innerHTML = JSON.stringify(richSnippet);
document.getElementsByTagName('head')[0].appendChild(script);
});
</script>

Note: The reviews cache needs to be disabled within the plugin settings for the script to work.


Latest WooCommerce Plugin

https://wordpress.org/plugins/stampedio-product-reviews/

Was this article helpful?

0 out of 1 found this helpful

Have more questions? Submit a request