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

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:

<!-- Post message handler --> <script type="text/javascript" src=""> </script> <!-- Initialise the Post Message Handler --> <script type="text/javascript"> var FPMH = new Feefo.PostMessageHandler(); FPMH.init(); </script> {assign var="future_date" value=$} <iframe id="FSI_IFrame" style="display: none" width="0" height="0" src="" data-feefo-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":"{$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:

<iframe id="FSI_IFrame" style="display: none" src="" 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