Поправить код для google analytics в opencart 2.1
4 USDНеобходимо сделать так, чтобы после оформления заказа на странице success код, в который добавляются параметры для аналитики:
<?php if (isset($order)){ ?><script>
dataLayer = [{
'transactionId': '<?php echo $order['order_id']; ?>',
'transactionAffiliation': 'rezina-ua.com',
'transactionTotal': '<?php echo trim(preg_replace("/\s+/",'',str_replace('грн','',$order['total']))); ?>',
'transactionTax': '<?php echo $order['commission']; ?>',
'transactionShipping': '0',
'transactionProducts': [<?php foreach ($products as $product){ ?>{
'sku': '<?php echo $product['model']; ?>',
'name': '<?php echo $product['name']; ?>',
'category': '<?php echo $product['category']; ?>',
'price': '<?php echo isset($product['special']) ? trim(preg_replace("/\s+/",'',str_replace('грн','',$product['special']))) : trim(preg_replace("/\s+/",'',str_replace('грн','',$product['price']))); ?>',
'quantity': '<?php echo $product['quantity']; ?>'
}<?php } ?>]
}];
</script><?php } ?>
выполнялся раньше чем код для google tag manager, который добавлен в header
пример визуализации: http://pics.inweb.ua/limena/KAU7K1.png
Current freelance projects in the category Javascript and Typescript
Gsap animations
22 USD
Good day. Corrections need to be made in the current project. A specialist is needed who works well with gsap/lenis. Animation of cards needs to be done. Detailed specifications here:… Javascript and Typescript, Web Programming ∙ 1 hour 22 minutes back ∙ 7 proposals |
Commercial on-premise video communication platform "ViM"It is required to develop an on-premise video conferencing system with a basic calculation for 100 simultaneous connections (10 isolated rooms of 10 people each). The platform should have a built-in architecture for future horizontal scaling up to 1000 users by adding new media… Javascript and Typescript, Web Programming ∙ 20 hours 40 minutes back ∙ 23 proposals |
I am looking for a mentor with Claude Code to launch a web project from scratch.Brief about the task: I am a beginner with no programming experience. I have a ready specification for website development (42 pages, Next.js, PostgreSQL). I want to implement it myself using Claude Code - I need a specialist who will set up the environment and teach me how to… Javascript and Typescript, Tuition ∙ 2 days back ∙ 18 proposals |
Website design updateIt is necessary to update the design of the existing website using HTML, CSS, JS: refresh the appearance, make it modern and responsive for mobile devices. Smooth animations and interactive elements need to be added. HTML & CSS, Javascript and Typescript ∙ 2 days 17 hours back ∙ 89 proposals |
Consultation and audit of the current project on Odoo 19 Community EditionWe are looking for an Odoo Developer — a solo developer with experience in Odoo 19 Community Edition, including using Claude Code. We need a specialist who has successfully implemented projects in Odoo and practical experience in development using Claude Code. Important: we only… C & C++, Javascript and Typescript ∙ 2 days 23 hours back ∙ 7 proposals |