update
This commit is contained in:
@@ -191,24 +191,4 @@
|
||||
<? unset( $_SESSION['google-adwords-purchase'] );?>
|
||||
<? endif;?>
|
||||
});
|
||||
</script>
|
||||
<? if ( \S::get_session('google-analytics-purchase') ):?>
|
||||
<script>
|
||||
TRUST_MATE_USER_NAME = '<?= $this -> order['client_name'];?>';
|
||||
TRUST_MATE_USER_EMAIL = '<?= $this -> order['client_email'];?>';
|
||||
TRUST_MATE_ORDER_NUMBER = '<?= $this -> order['id'];?>';
|
||||
TRUST_MATE_COMPANY_UUID = '9e2d3181-b56e-4d3d-a532-f96b09dc215f';
|
||||
TRUSTMATE_PRODUCTS = [
|
||||
<? foreach ( $this -> order['products'] as $product ):?>
|
||||
{
|
||||
'local_id': <?= (int)$product['product_id'];?>,
|
||||
'name': '<?= $product['name'];?>',
|
||||
'product_url': 'https://pomysloweprezenty.pl<?= \front\factory\ShopProduct::product_url( new \shop\Product( $product['product_id'] ) );?>',
|
||||
"image_url": "https://pomysloweprezenty.pl<?= \front\factory\ShopProduct::product_image( $product['product_id'] );?>"
|
||||
}<? if ( $product != end( $this -> order['products'] ) ) echo ',';?>
|
||||
<? endforeach;?>
|
||||
];
|
||||
</script>
|
||||
<script type="text/javascript" src='https://trustmate.io/api/invitation/script'></script>
|
||||
<? unset( $_SESSION['google-analytics-purchase'] );?>
|
||||
<? endif;?>
|
||||
</script>
|
||||
Reference in New Issue
Block a user