giulaiula Posted February 12, 2016 Share Posted February 12, 2016 Buna seara, Cine ma poate ajuta cu implementarea unui cod de afiliat? Deci am urmatoarea problema, am pus codul de traking in order-confirmation.tpl iar in OrderConfirmationController.php am adaugat urmatoarul cod: $order = new Order($this->id_order); $cart = new Cart($order->id_cart); $description=""; foreach ($cart->getProducts() AS $k=>$v){ $description.=$v['name']."X".$v['quantity']; } $description=urlencode($description); $this->context->smarty->assign(array( 'total_to_pay'=>$order->getOrdersTotalPaid(), 'description'=>$description )); Acum problema este ca pentru plata prin OP codul functioneaza dar pentru varianta cu plata cu cardul nu merge Ce anume trebuie modificat ca sa meraga si pentru plata cu cardul? Va multumesc mult! Link to comment Share on other sites More sharing options...
tuk66 Posted February 15, 2016 Share Posted February 15, 2016 Ce-i cu descrierea? Este corect? What about description? Is it right? $v['name']."X".$v['quantity'].$v['name']."X".$v['quantity'].$v['name']."X".$v['quantity']... Link to comment Share on other sites More sharing options...
giulaiula Posted February 16, 2016 Author Share Posted February 16, 2016 On 2/15/2016 at 3:24 PM, tuk66 said: Ce-i cu descrierea? Este corect? What about description? Is it right? $v['name']."X".$v['quantity'].$v['name']."X".$v['quantity'].$v['name']."X".$v['quantity']... descriererea este corecta, am probleme la plata cu cardul pt ca nu se inreg comisionul Link to comment Share on other sites More sharing options...
tuk66 Posted February 16, 2016 Share Posted February 16, 2016 Adică valoarea descriere poate fi ceva de genul: I mean the description value can be something like: productaX5productbX10productcX1 Nu există nici o delimitare între produse. There is no delimiter between products. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now