Sending statistics when pressing the "ORDER_FINISH" button. (for Google analytics & Yandex metrika)

21.10.2020 18:47
#1
kupaladen
User kupaladen
Name: Denis Fedorov
08.06.2013
Сообщения: 64
Quote
Sending statistics when pressing the "ORDER_FINISH" button. (for Google analytics & Yandex metrika)

Hello,
I need to send a javascript event on click the "ORDER_FINISH" button at "checkout-steps/step5".
Event onclick is: "ym (123456, 'reachGoal', 'ORDER_FINISH_BUTTON'); return true;"
But you already have a "return" value for this button in your code (previewfinish.php):

<div class="box_button">
<?php print $this->_tmp_ext_html_previewfinish_before_button?>
<input class="btn btn-primary button" type="submit" name="finish_registration" value="<?php print _JSHOP_ORDER_FINISH?>" onclick="return checkAGBAndNoReturn('<?php echo $this->config->display_agb;?>','<?php echo $this->no_return?>');" />
</div>


How do I add one more value for "return"? Obviously, I need to create an array of return values, but I'm not a programmer and don't understand php syntax ...

I beg You to help with the working code!


Joomla: last
JoomShopping: last
PHP: 7.3

Последнее изменение: 21.10.2020 18:49
 
22.10.2020 13:58
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Сообщения: 25936
Quote
Aw: Sending statistics when pressing the "ORDER_FINISH" button. (for Google analytics & Yandex metrika)

<div class="box_button">
<?php print $this->_tmp_ext_html_previewfinish_before_button?>
<input class="btn btn-primary button" type="submit" name="finish_registration" value="<?php print _JSHOP_ORDER_FINISH?>" onclick="ym (123456, 'reachGoal', 'ORDER_FINISH_BUTTON');return checkAGBAndNoReturn('<?php echo $this->config->display_agb;?>','<?php echo $this->no_return?>');" />
</div>

 
22.10.2020 17:34
#3
kupaladen
User kupaladen
Name: Denis Fedorov
08.06.2013
Сообщения: 64
Quote
Aw: Sending statistics when pressing the "ORDER_FINISH" button. (for Google analytics & Yandex metrika)

Thanks! It's easier than I expected!

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.