Jump to content

Edit History

spc

spc


Change my question

Im going to change my question of this topic.
And i hope someone is understand what i mean.

I need to add a java function to the checkout page and thank you page, i have search the internet but i can´t find witch page it is.
So i hope someone can point me in the right direction.

The java function i need to add to the page is :

{literal}
<script>
pertentoReportConversion('purchase', {
  currencyCode: order.currency,     
  revenue: order.totalAmount,       
  tax: order.taxAmount,             
  shipping: order.shippingCost      
})
</script>
{/literal}

Where can i find the transaction page.

I use prestashop 1.7.6.0

spc

spc

I'm trying to add a custom function/java that i need to add on the last page " time of transaction ".

The function needs to be run at the time of transaction. All values are in cents, and fields are filled dynamically with information from the order.
PertentoRuntime (the main script) then handles the reporting.
so it is important that this script is present through out the site - including checkout and thank you page.

Here is the function:

{literal}
<script>
pertentoReportConversion('purchase', {
  currencyCode: order.currency,     
  revenue: order.totalAmount,       
  tax: order.taxAmount,             
  shipping: order.shippingCost      
})
</script>
{/literal}

Where can i find the transaction page.

I use prestashop 1.7.6.0

spc

spc

I'm trying to add a custom function/java that appears on every page. I've tried to find in classes/controller/FrontController.php if it should go there, i have search in head.tpl and header.tpl. I've also searched the internet with no results.

the function needs to be run at the time of transaction. All values are in cents, and fields are filled dynamically with information from the order. PertentoRuntime (the main script) then handles the reporting. so it is important that this script is present through out the site - including checkout and thank you page.

Here is the function:

pertentoReportConversion('purchase', {
currencyCode: 'EUR',
revenue: xxxxx,
tax: xxxxx,
shipping: xxxxx
})

And i can´t find where to add the code. I realy need help.

I use prestashop 1.7.6.0

spc

spc

I'm trying to add a function that appears on every page.
I've tried to find in classes/controller/FrontController.php
if it should go there, I've also searched the internet with no results.

function:

pertentoReportConversion('purchase', {
currencyCode: 'EUR',
revenue: xxxxx,
tax: xxxxx,
shipping: xxxxx
})

But it doesent works, need help

I use prestashop 1.7.6.0

×
×
  • Create New...