Post by sanken » Wed Feb 15, 2012 4:26 am

Salut, incerc sa implementez niste scripturi de direct sale care cer export in sursa a unor parametri ca id ultima comanda, total cos, etc.
scriptul arata cam asa:
<script type="text/javascript" charset="utf-8">
var ccg = "General";
var cct = "";
var vcc = "";
var ccd = "";
(function() {
var cc = document.createElement('script'); cc.type = 'text/javascript'; cc.async = true;
cc.src =
'https://tracking.cashcow.ro/01386bd6d8e ... 644d37b.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(cc, s);
})();
</script>

de exemplu var cct ( total ultima comanda) ca sa o afisez am adaugat in checkout.php
$this->data['$product_total'] = $this->language->get('product_total');
iar in script pus in checkout.tpl la var cct =''<?php echo $product_total; ?> ''

dar nu im i afiseaza nimic. Oare un de gresesc?

Newbie

Posts

Joined
Wed Sep 07, 2011 7:39 pm

Post by nicudica » Wed Feb 15, 2012 5:09 am

Saluty!

Cred ca ai scapat un $ unde nu trebuia, insa nu asta e solutia...

Iti recomand sa folosesti json (encodezi) ce este de encodat si apoi apelezi "in sursa" cele trimise de tine prin json, e una din cele mai comode metode, cu care am lucrat pana acum si a dat rezultate.

Succes!

User avatar
Active Member

Posts

Joined
Wed Nov 11, 2009 9:20 pm
Location - Bucharest / Romania
Who is online

Users browsing this forum: No registered users and 10 guests