View Single Post
  #5  
Old 01-10-2020, 08:20 AM
 
Bishmos Bishmos is offline
 

Member
  
Join Date: Jun 2011
Posts: 25
 

Default Re: Feefo iframe review integration

thanks Steve, although I'm struggling. I've got this on order_message.tpl (notification) page:


Code:
<!-- Post message handler --> <script type="text/javascript" src="https://api.feefo.com/api/assets/js-sale-integration/javascript/feefo-js-post-message-handler.js"> </script> <!-- Initialise the Post Message Handler --> <script type="text/javascript"> var FPMH = new Feefo.PostMessageHandler(); FPMH.init(); </script> {assign var="future_date" value=$order.date+604800} <iframe id="FSI_IFrame" style="display: none" width="0" height="0" src="https://api.feefo.com/api/sales/merchant?merchantidentifier=mathmos-es" data-feefo-email="{$order.email}" data-feefo-orderref="#{$order.orderid}" data-feefo-name="{$order.firstname} {$order.lastname}" data-feefo-customerref="#{$order.orderid}" data-feefo-feedbackdate="{$future_date|date_format:$config.Appearance.datetime_format}" data-feefo-products=[ {foreach from=$products item=product name=products} {ldelim} "description":"{$product.product}", "productsearchcode":"{$product.productcode}", "amount":"{$product.display_price}", "productlink":"https://www.mathmos.es/product.php?product_id={$product.productid}", "currency":"EUR", "tags":{ldelim} "saleschannel":"Web", "productline":"games" {rdelim} {rdelim} {if not $smarty.foreach.products.last},{/if} {/foreach} ]> </iframe>


and all I'm seeing in the iframe when I do a test order is:


Code:
<iframe id="FSI_IFrame" style="display: none" src="https://api.feefo.com/api/sales/merchant?merchantidentifier=mathmos-es" data-feefo-email="" data-feefo-orderref="#" data-feefo-name=" " data-feefo-customerref="#" data-feefo-feedbackdate="08/01/1970 01:00" data-feefo-products="[" ]="" width="0" height="0"> </iframe>


seems to be working at grabbing a date but oddly has sent me back in time! doesn't seem to like other values though?
__________________
X-Cart Gold v4.7.5
Reply With Quote