Post by lcgica » Fri Nov 22, 2013 1:51 am

Buna ziua

Am un magazin online pe care folosesc Opencart 1.5.3.1
Vreau sa incep o campanie de afiliere cu 2Parale si trebuie sa implementez codul lor de tracking in scriptul meu, pentru ca astfel sa pot raporta comisioanele generate de afiliati pe site-ul meu.

Mai exact codul de inserat este :
Codul trebuie integrat în pagina de confirmare a comenzii (așa numita „Thank you” page) deoarece doar atunci când utilizatorul ajunge în acea pagină, comanda realizată de el se consideră a fi finalizată.

<iframe height='1' width='1' scrolling='no' marginheight='0' marginwidth='0' frameborder='0' src='//event.2parale.ro/events/salecheck?amount=__ADD_SALE_VALUE__&campaign_unique=xxxxxxxxxxxxxxxx(il iau din contul meu)&confirm=xxxxxxxxxxxxxxxxxxx(il iau din contul meu)&transaction_id=__ADD_TRANSACTION_ID__&description=__ADD_DESCRIPTION__'></iframe>

In cadrul codului vor trebui modificați 3 parametri pentru campania voastra de Sales.

Inlocuiți ADD_SALE_VALUE cu valoarea totală a vânzării (fără TVA - împărțind valoarea coșului de cumpărături la 1,24; fără taxe de transport, cu discounturi aplicate)
Inlocuiți ADD_TRANSACTION_ID cu un id unic care să identifice tranzacția.
Inlocuiți ADD_DESCRIPTION cu un mesaj informativ despre tranzactie (eg. nume_produsXcantintate) (Important: trebuie să fie URL Encoded)

Cine ma ajuta :

unde se insereaza codul, in ce fisier?
cu ce trebuiesc inlocuiti cei 3 parametri

Cine ma ajuta, daca va functiona, voi oferi un cadou (din cele pe care le comercializez) la alegere in limita a 10$.
Multumesc

Newbie

Posts

Joined
Thu Nov 21, 2013 9:01 pm

Post by florinsith » Fri Nov 22, 2013 4:33 am

Fisierul ce trebuie editat catalog/controller/checkout/success.php
Gasiti linia:

Code: Select all

public function index() { 
imediat sub acea linie adaugati:

Code: Select all

$cod2parale = false;
Apoi gasiti linia:

Code: Select all

if (isset($this->session->data['order_id'])) {
imediat sub aceasta linie adaugati:

Code: Select all

$this->load->model('checkout/order');
			$order_info = $this->model_checkout_order->getOrder($this->session->data['order_id']);
			if ($order_info['order_status_id'] != 0) {
			 $cod2parale = true;
             $totalcomanda = $this->cart->getSubTotal();
			 $idcomanda = $this->session->data['order_id'];
			 $statuscomanda = "Statusul comenzii este " . $order_info['order_status'];
			}
Apoi gasiti linia:

Code: Select all

$this->data['button_continue'] = $this->language->get('button_continue');
imediat deasupra ei adaugati:

Code: Select all

if ($cod2parale) {
		    $this->data['text_message'] .= "<iframe height='1' width='1' scrolling='no' marginheight='0' marginwidth='0' frameborder='0' src='//event.2parale.ro/events/salecheck?amount=". $totalcomanda . "&campaign_unique=xxxxxxxxxxxxxxxx&confirm=xxxxxxxxxxxxxxxxxxx&transaction_id=" . $idcomanda . "&description=" . urlencode($statuscomanda) . "'></iframe>";
		}
Testati-l si voi si vedeti de merge cum trebuie. In codul de mai sus bineinteles inlcouiti icsi cu ce primiti in contul vostru 2parale.

Pentru ADD_SALE_VALUE am folosit subtotalul din cos (care e suma preturilor inmultite cu cantitatile respective, fara taxe, fara transport sau altele, e exact acel subtotal care il vedeti in cos).

Pentru ADD_TRANSACTION_ID am folosit idul comenzii

Pentru ADD_DESCRIPTION am folosit statusul comenzii (pare relevant).

Image
My Extensions - SuperTheme - Opencart templates - Opencart modules


User avatar
Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am


Post by gabifir » Thu Mar 05, 2015 2:05 pm

Update pentru opencart 2.0.1.0?

Incerc de cateva zile sa fac codul sa mearga dar fara succes

Newbie

Posts

Joined
Tue Mar 03, 2015 10:09 pm

Post by florinsith » Fri Mar 06, 2015 3:40 am

Da, $this->data devine $data.

Image
My Extensions - SuperTheme - Opencart templates - Opencart modules


User avatar
Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am


Post by gabifir » Sat Mar 07, 2015 9:55 pm

public_html/catalog/controller/checkout/success.php


Notice: Indirect modification of overloaded property ControllerCheckoutSuccess::$data has no effect in /home/doctoraloe/public_html/catalog/controller/checkout/success.php on line 84Notice: Undefined index: text_message in /home/doctoraloe/public_html/catalog/controller/checkout/success.php on line 84


asta imi da ca eroare, si nu apare codul in source ..

Newbie

Posts

Joined
Tue Mar 03, 2015 10:09 pm

Post by gabifir » Sat Mar 07, 2015 10:36 pm

Code: Select all

<?php
class ControllerCheckoutSuccess extends Controller {
	public function index() {
	$cod2parale = false;
		$this->load->language('checkout/success');
$this->load->model('checkout/order');
         $order_info = $this->model_checkout_order->getOrder($this->session->data['order_id']);
         if ($order_info['order_status_id'] != 0) {
          $cod2parale = true;
             $totalcomanda = $this->cart->getSubTotal();
          $idcomanda = $this->session->data['order_id'];
          $statuscomanda = "Statusul comenzii este " . $order_info['order_status'];
         }
		
			$this->cart->clear();

			// Add to activity log
			$this->load->model('account/activity');

			if ($this->customer->isLogged()) {
				$activity_data = array(
					'customer_id' => $this->customer->getId(),
					'name'        => $this->customer->getFirstName() . ' ' . $this->customer->getLastName(),
					'order_id'    => $this->session->data['order_id']
				);

				$this->model_account_activity->addActivity('order_account', $activity_data);
			} else {
				$activity_data = array(
					'name'     => $this->session->data['guest']['firstname'] . ' ' . $this->session->data['guest']['lastname'],
					'order_id' => $this->session->data['order_id']
				);

				$this->model_account_activity->addActivity('order_guest', $activity_data);
			}

			unset($this->session->data['shipping_method']);
			unset($this->session->data['shipping_methods']);
			unset($this->session->data['payment_method']);
			unset($this->session->data['payment_methods']);
			unset($this->session->data['guest']);
			unset($this->session->data['comment']);
			unset($this->session->data['order_id']);
			unset($this->session->data['coupon']);
			unset($this->session->data['reward']);
			unset($this->session->data['voucher']);
			unset($this->session->data['vouchers']);
			unset($this->session->data['totals']);
		}

		$this->document->setTitle($this->language->get('heading_title'));

		$data['breadcrumbs'] = array();

		$data['breadcrumbs'][] = array(
			'text' => $this->language->get('text_home'),
			'href' => $this->url->link('common/home')
		);

		$data['breadcrumbs'][] = array(
			'text' => $this->language->get('text_basket'),
			'href' => $this->url->link('checkout/cart')
		);

		$data['breadcrumbs'][] = array(
			'text' => $this->language->get('text_checkout'),
			'href' => $this->url->link('checkout/checkout', '', 'SSL')
		);

		$data['breadcrumbs'][] = array(
			'text' => $this->language->get('text_success'),
			'href' => $this->url->link('checkout/success')
		);

		$data['heading_title'] = $this->language->get('heading_title');

		if ($this->customer->isLogged()) {
			$data['text_message'] = sprintf($this->language->get('text_customer'), $this->url->link('account/account', '', 'SSL'), $this->url->link('account/order', '', 'SSL'), $this->url->link('account/download', '', 'SSL'), $this->url->link('information/contact'));
		} else {
			$data['text_message'] = sprintf($this->language->get('text_guest'), $this->url->link('information/contact'));
		}

		$data['button_continue'] = $this->language->get('button_continue');
		if ($cod2parale) {
          $data['text_message'] .= "<iframe height='1' width='1' scrolling='no' marginheight='0' marginwidth='0' frameborder='0' src='//event.2parale.ro/events/salecheck?amount=". $totalcomanda . "&campaign_unique=6541ffd0b67c&confirm=4d96e5effff608ce02541&transaction_id=" . $idcomanda . "&description=" . urlencode($statuscomanda) . "'></iframe>";
      }
		

		$data['continue'] = $this->url->link('common/home');

		$data['column_left'] = $this->load->controller('common/column_left');
		$data['column_right'] = $this->load->controller('common/column_right');
		$data['content_top'] = $this->load->controller('common/content_top');
		$data['content_bottom'] = $this->load->controller('common/content_bottom');
		$data['footer'] = $this->load->controller('common/footer');
		$data['header'] = $this->load->controller('common/header');

		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/common/success.tpl')) {
			$this->response->setOutput($this->load->view($this->config->get('config_template') . '/template/common/success.tpl', $data));
		} else {
			$this->response->setOutput($this->load->view('default/template/common/success.tpl', $data));
		}
	}
}

Si da eroarea:

Parse error: syntax error, unexpected '$this' (T_VARIABLE), expecting function (T_FUNCTION) in /home/doctoraloe/public_html/catalog/controller/checkout/success.php on line 51

Newbie

Posts

Joined
Tue Mar 03, 2015 10:09 pm

Post by florinsith » Mon Mar 09, 2015 6:19 pm

Ai sters ceva din greseala, Dupa modificare codul trebuie sa fie:

Code: Select all

<?php
class ControllerCheckoutSuccess extends Controller {
	public function index() {
		$cod2parale = false;
		$this->load->language('checkout/success');

		if (isset($this->session->data['order_id'])) {
			$this->load->model('checkout/order');
			$order_info = $this->model_checkout_order->getOrder($this->session->data['order_id']);
         	if ($order_info['order_status_id'] != 0) {
				$cod2parale = true;
				$totalcomanda = $this->cart->getSubTotal();
				$idcomanda = $this->session->data['order_id'];
				$statuscomanda = "Statusul comenzii este " . $order_info['order_status'];
	        }
			
			$this->cart->clear();

			// Add to activity log
			$this->load->model('account/activity');

			if ($this->customer->isLogged()) {
				$activity_data = array(
					'customer_id' => $this->customer->getId(),
					'name'        => $this->customer->getFirstName() . ' ' . $this->customer->getLastName(),
					'order_id'    => $this->session->data['order_id']
				);

				$this->model_account_activity->addActivity('order_account', $activity_data);
			} else {
				$activity_data = array(
					'name'     => $this->session->data['guest']['firstname'] . ' ' . $this->session->data['guest']['lastname'],
					'order_id' => $this->session->data['order_id']
				);

				$this->model_account_activity->addActivity('order_guest', $activity_data);
			}

			unset($this->session->data['shipping_method']);
			unset($this->session->data['shipping_methods']);
			unset($this->session->data['payment_method']);
			unset($this->session->data['payment_methods']);
			unset($this->session->data['guest']);
			unset($this->session->data['comment']);
			unset($this->session->data['order_id']);
			unset($this->session->data['coupon']);
			unset($this->session->data['reward']);
			unset($this->session->data['voucher']);
			unset($this->session->data['vouchers']);
			unset($this->session->data['totals']);
		}

		$this->document->setTitle($this->language->get('heading_title'));

		$data['breadcrumbs'] = array();

		$data['breadcrumbs'][] = array(
			'text' => $this->language->get('text_home'),
			'href' => $this->url->link('common/home')
		);

		$data['breadcrumbs'][] = array(
			'text' => $this->language->get('text_basket'),
			'href' => $this->url->link('checkout/cart')
		);

		$data['breadcrumbs'][] = array(
			'text' => $this->language->get('text_checkout'),
			'href' => $this->url->link('checkout/checkout', '', 'SSL')
		);

		$data['breadcrumbs'][] = array(
			'text' => $this->language->get('text_success'),
			'href' => $this->url->link('checkout/success')
		);

		$data['heading_title'] = $this->language->get('heading_title');

		if ($this->customer->isLogged()) {
			$data['text_message'] = sprintf($this->language->get('text_customer'), $this->url->link('account/account', '', 'SSL'), $this->url->link('account/order', '', 'SSL'), $this->url->link('account/download', '', 'SSL'), $this->url->link('information/contact'));
		} else {
			$data['text_message'] = sprintf($this->language->get('text_guest'), $this->url->link('information/contact'));
		}
		if ($cod2parale) {
          	$data['text_message'] .= "<iframe height='1' width='1' scrolling='no' marginheight='0' marginwidth='0' frameborder='0' src='//event.2parale.ro/events/salecheck?amount=". $totalcomanda . "&campaign_unique=xxxxxxxxxxxxxxxx&confirm=xxxxxxxxxxxxxxxxxxx&transaction_id=" . $idcomanda . "&description=" . urlencode($statuscomanda) . "'></iframe>";
		}
		$data['button_continue'] = $this->language->get('button_continue');

		$data['continue'] = $this->url->link('common/home');

		$data['column_left'] = $this->load->controller('common/column_left');
		$data['column_right'] = $this->load->controller('common/column_right');
		$data['content_top'] = $this->load->controller('common/content_top');
		$data['content_bottom'] = $this->load->controller('common/content_bottom');
		$data['footer'] = $this->load->controller('common/footer');
		$data['header'] = $this->load->controller('common/header');

		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/common/success.tpl')) {
			$this->response->setOutput($this->load->view($this->config->get('config_template') . '/template/common/success.tpl', $data));
		} else {
			$this->response->setOutput($this->load->view('default/template/common/success.tpl', $data));
		}
	}
}

Image
My Extensions - SuperTheme - Opencart templates - Opencart modules


User avatar
Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am


Post by gabifir » Mon Mar 09, 2015 6:44 pm

Din ce am inteles de la cei de la 2parale, trebuie in codul sursa care apare dupa ce s-a finalizat comanda sa apara o confirmare.

El mi-a atasat un screenshot cu codul sursa de pe pagina mea , in care imi explica ca nu gaseste keyword "2parale"

Code: Select all

<!DOCTYPE html>
<!--[if IE]><![endif]-->
<!--[if IE 8 ]><html dir="ltr" lang="ro" class="ie8"><![endif]-->
<!--[if IE 9 ]><html dir="ltr" lang="ro" class="ie9"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html dir="ltr" lang="ro">
<!--<![endif]-->
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Comanda a fost finalizată cu succes!</title>
<base href="http://doctoraloe.ro/" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link href="http://doctoraloe.ro/image/catalog/doctoraloe - gel de aloe vera.jpg" rel="icon" />
<script src="catalog/view/javascript/jquery/jquery-2.1.1.min.js" type="text/javascript"></script>
<link href="catalog/view/javascript/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen" />
<script src="catalog/view/javascript/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<link href="catalog/view/javascript/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link href="//fonts.googleapis.com/css?family=Open+Sans:400,400i,300,700" rel="stylesheet" type="text/css" />
<link href="catalog/view/theme/default/stylesheet/stylesheet.css" rel="stylesheet">
<script src="catalog/view/javascript/common.js" type="text/javascript"></script>
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-58672608-2', 'auto');
  ga('send', 'pageview');

</script></head>
<body class="checkout-success">
<nav id="top">
  <div class="container">
            <div id="top-links" class="nav pull-right">
      <ul class="list-inline">
        <li><a href="http://doctoraloe.ro/index.php?route=information/contact"><i class="fa fa-phone"></i></a> <span class="hidden-xs hidden-sm hidden-md">0746374972</span></li>
        <li class="dropdown"><a href="http://doctoraloe.ro/index.php?route=account/account" title="Contul meu" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user"></i> <span class="hidden-xs hidden-sm hidden-md">Contul meu</span> <span class="caret"></span></a>
          <ul class="dropdown-menu dropdown-menu-right">
                        <li><a href="http://doctoraloe.ro/index.php?route=account/account">Contul meu</a></li>
            <li><a href="http://doctoraloe.ro/index.php?route=account/order">Istoric comenzi</a></li>
            <li><a href="http://doctoraloe.ro/index.php?route=account/transaction">Tranzacții</a></li>
            <li><a href="http://doctoraloe.ro/index.php?route=account/download">Descărcări</a></li>
            <li><a href="http://doctoraloe.ro/index.php?route=account/logout">Ieșire din cont</a></li>
                      </ul>
        </li>
        <li><a href="http://doctoraloe.ro/index.php?route=account/wishlist" id="wishlist-total" title="Wish List (0)"><i class="fa fa-heart"></i> <span class="hidden-xs hidden-sm hidden-md">Wish List (0)</span></a></li>
        <li><a href="http://doctoraloe.ro/index.php?route=checkout/cart" title="Coşul meu"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs hidden-sm hidden-md">Coşul meu</span></a></li>
        <li><a href="http://doctoraloe.ro/index.php?route=checkout/checkout" title="Comandă"><i class="fa fa-share"></i> <span class="hidden-xs hidden-sm hidden-md">Comandă</span></a></li>
      </ul>
    </div>
  </div>
</nav>
<header>
  <div class="container">
    <div class="row">
      <div class="col-sm-4">
        <div id="logo">
                    <a href="http://doctoraloe.ro/index.php?route=common/home"><img src="http://doctoraloe.ro/image/catalog/logo.png" title="DoctorAloe - Produse 100 % BIO din Aloe Vera" alt="DoctorAloe - Produse 100 % BIO din Aloe Vera" class="img-responsive" /></a>
                  </div>
      </div>
      <div class="col-sm-5"><div id="search" class="input-group">
  <input type="text" name="search" value="" placeholder="Căutare" class="form-control input-lg" />
  <span class="input-group-btn">
    <button type="button" class="btn btn-default btn-lg"><i class="fa fa-search"></i></button>
  </span>
</div>      </div>
      <div class="col-sm-3"><div id="cart" class="btn-group btn-block">
  <button type="button" data-toggle="dropdown" data-loading-text="Încărcare..." class="btn btn-inverse btn-block btn-lg dropdown-toggle"><i class="fa fa-shopping-cart"></i> <span id="cart-total">0 produs(e) - 0,00 RON</span></button>
  <ul class="dropdown-menu pull-right">
        <li>
      <p class="text-center">Coșul este gol!</p>
    </li>
      </ul>
</div>
</div>
    </div>
  </div>
</header>
<div class="container">
  <nav id="menu" class="navbar">
    <div class="navbar-header"><span id="category" class="visible-xs">Categorii</span>
      <button type="button" class="btn btn-navbar navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"><i class="fa fa-bars"></i></button>
    </div>
    <div class="collapse navbar-collapse navbar-ex1-collapse">
      <ul class="nav navbar-nav">
                        <li><a href="http://doctoraloe.ro/Gama-copii">Gama copii</a></li>
                                <li><a href="http://doctoraloe.ro/Integratori-specifici">Integratori specifici</a></li>
                                <li class="dropdown"><a href="http://doctoraloe.ro/ProduseBIO" class="dropdown-toggle" data-toggle="dropdown">Produse BIO</a>
          <div class="dropdown-menu">
            <div class="dropdown-inner">
                            <ul class="list-unstyled">
                                <li><a href="http://doctoraloe.ro/ProduseBIO/Integratori-alimentar -biologici">Integratori alimentari biologici (8)</a></li>
                                <li><a href="http://doctoraloe.ro/ProduseBIO/Integratori-alimentari">Integratori alimentari (2)</a></li>
                              </ul>
                          </div>
            <a href="http://doctoraloe.ro/ProduseBIO" class="see-all">Vezi tot în Produse BIO</a> </div>
        </li>
                                <li><a href="http://doctoraloe.ro/Sucuri-si-integratori">Sucuri si integratori</a></li>
                                <li><a href="http://doctoraloe.ro/controlul-greutatii-corporale">Controlul greutatii corporale</a></li>
                                <li><a href="http://doctoraloe.ro/Stare-de-bine">Stare de bine</a></li>
                                <li class="dropdown"><a href="http://doctoraloe.ro/Cosmetica" class="dropdown-toggle" data-toggle="dropdown">Cosmetica</a>
          <div class="dropdown-menu">
            <div class="dropdown-inner">
                            <ul class="list-unstyled">
                                <li><a href="http://doctoraloe.ro/Cosmetica/Cosmetica-Biologica">Cosmetica Biologica (3)</a></li>
                              </ul>
                          </div>
            <a href="http://doctoraloe.ro/Cosmetica" class="see-all">Vezi tot în Cosmetica</a> </div>
        </li>
                      </ul>
    </div>
  </nav>
</div>
<div class="container">
  <ul class="breadcrumb">
        
    
    <li><a href="http://doctoraloe.ro/index.php?route=common/home"><i class="fa fa-home"></i></a></li>
        
    
    <li><a href="http://doctoraloe.ro/index.php?route=checkout/cart">Coș de cumpărături</a></li>
        
    
    <li><a href="http://doctoraloe.ro/index.php?route=checkout/checkout">Comandă</a></li>
        
    
    <li><a href="http://doctoraloe.ro/index.php?route=checkout/success">Succes</a></li>
      </ul>
  <div class="row">                <div id="content" class="col-sm-12">      <h1>Comanda a fost finalizată cu succes!</h1>
      <p>Comanda ta a fost plasată cu succes!</p><p>Poți vedea istoricul comenzilor tale în <a href="http://doctoraloe.ro/index.php?route=account/account">contul tău</a> făcând click pe <a href="http://doctoraloe.ro/index.php?route=account/order">Istoric Comenzi</a>.</p>În cazul în care comanda ta are asociate fișiere de descărcat le poți vedea în secțiunea <a href="http://doctoraloe.ro/index.php?route=account/download">Descărcări</a>.</p><p>Dacă ai alte întrebări, <a href="http://doctoraloe.ro/index.php?route=information/contact">contactează-ne</a>.</p><p>Îți mulțumim!</p>      <div class="buttons">
        <div class="pull-right"><a href="http://doctoraloe.ro/index.php?route=common/home" class="btn btn-primary">Continuă</a></div>
         
      </div>
      </div>
    </div>
</div>
<footer>
  <div class="container">
    <div class="row">
            <div class="col-sm-3">
        <h5>Servicii Clienţi</h5>
        <ul class="list-unstyled">
          <li><a href="http://doctoraloe.ro/index.php?route=information/contact">Contact</a></li>
          <li><a href="http://doctoraloe.ro/index.php?route=account/return/add">Returnări</a></li>
          <li><a href="http://doctoraloe.ro/index.php?route=information/sitemap">Harta sitului</a></li>
        </ul>
      </div>
      <div class="col-sm-3">
        <h5>Extra</h5>
        <ul class="list-unstyled">
          <li><a href="http://doctoraloe.ro/index.php?route=product/manufacturer">Producători</a></li>
          <li><a href="http://doctoraloe.ro/index.php?route=account/voucher">Vouchere cadou</a></li>
          <li><a href="http://doctoraloe.ro/index.php?route=affiliate/account">Afiliaţi</a></li>
          <li><a href="http://doctoraloe.ro/index.php?route=product/special">Oferte speciale</a></li>
        </ul>
      </div>
      <div class="col-sm-3">
        <h5>Contul meu</h5>
        <ul class="list-unstyled">
          <li><a href="http://doctoraloe.ro/index.php?route=account/account">Contul meu</a></li>
          <li><a href="http://doctoraloe.ro/index.php?route=account/order">Istoric comenzi</a></li>
          <li><a href="http://doctoraloe.ro/index.php?route=account/wishlist">Wish List</a></li>
          <li><a href="http://doctoraloe.ro/index.php?route=account/newsletter">Newsletter</a></li>
        </ul>
      </div>
    </div>
    <hr>
    <p>Realizat de <a href="http://www.ofertasite.ro">OfertaSite</a> Seo realizat de <a target="_blank" href="http://ofertaseo.ro/">OfertaSeo</a> <br />     DoctorAloe - Produse 100 % BIO din Aloe Vera &copy; 2015</p> 
  </div>
</footer>

<!--
OpenCart is open source software and you are free to remove the powered by OpenCart if you want, but its generally accepted practise to make a small donation.
Please donate via PayPal to donate@opencart.com
//--> 

<!-- Theme created by Welford Media for OpenCart 2.0 www.welfordmedia.co.uk -->

</body></html>

Newbie

Posts

Joined
Tue Mar 03, 2015 10:09 pm

Post by florinsith » Wed Mar 11, 2015 8:10 pm

Am facut o comanda de test pe situl tau si functioneaza ok.
Codul apare doar imediat dupa finalizarea comenzii, nu la accesarea manuala a paginii de success. Spunele sa inspecteze codul in pagina imediat dupa comanda si iframe-ul este acolo, nu sa vizualizeze sursa, in webkit la vizualizare sursa se deschide un nou tab unde se incarca urlul: view-source:url-precedent , adica reincarca pagina in modul sursa si atunci order_id, cosul si altele deja au fost sterse din sesiune.

Image
My Extensions - SuperTheme - Opencart templates - Opencart modules


User avatar
Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am


Post by gabifir » Sat Apr 04, 2015 2:45 am

Da multumesc mult de ajutor!


Scuze de intarziere dar am fost foarte ocupat

Newbie

Posts

Joined
Tue Mar 03, 2015 10:09 pm

Post by topy » Mon Mar 14, 2016 6:05 pm

Salut @florinsith

Ma poti ajuta cu o mica modificare?

In platforma am preturile la produse cu tot cu TVA 20% ( fara ca sa fi setat eu manual TVA-ul din opencart ).

Cum pot face ca suma finala care duce catre 2parale sa fie impartita la 1.2 ( adica sa scada TVA-ul de 20% ) de la sub-total si apoi sa le trimita suma finala fara tva.

Ar trebui ceva de genul, cred:
$cod2parale = true;
$subtotalTVA = ($this->cart->getSubTotal()/1.2);
$totalcomanda = $subtotalTVA;
$idcomanda = $this->session->data['order_id'];

Desi nu cred ca e bine ce am facut ... :/

New member

Posts

Joined
Mon Jun 20, 2011 2:52 pm

Post by florinsith » Tue Mar 15, 2016 2:26 am

Pare ok, desi nu ar mai fi nevoie de $subtotaltva in plus acolo.

Image
My Extensions - SuperTheme - Opencart templates - Opencart modules


User avatar
Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am


Post by topy » Tue Mar 15, 2016 2:32 am

florinsith wrote:Pare ok, desi nu ar mai fi nevoie de $subtotaltva in plus acolo.
Am reusit pana la urma. Pentru cine doreste si nu a adaugat in sistem TVA si afiseaza preturile direct cu TVA.

Dupa : $totalcomanda = $this->cart->getSubTotal();

Adauga: $totalfaraTVA = $totalcomanda * 0.8;

Iar la iframe sa seteze : $totalfaraTVA in loc de $totalcomanda

Multumesc frumos !

New member

Posts

Joined
Mon Jun 20, 2011 2:52 pm

Post by marian. » Thu Oct 05, 2017 4:34 pm

Salutare tuturor,
Am incercat si eu sa instalez codul de traking, dar fara succes.
Am cateva nelamuriri.

Cum as putea face sa introduc in cont si procentul? Fata de comentariile precedente, acum a aparut in platforma si com_percent=__ADD_AFFILIATE_SALE_COMMISSION_PERCENT__
Am incercat sa introduc ca $procent="10" dar uneori imi da ca nu imi gaseste comisionul, iar alte dati in testul lor de traking imi da asta: https://prnt.sc/gti54c --- in nici un caz codul instalat corect.

Ma poate ajuta cineva cu un sfat va rog?

Newbie

Posts

Joined
Thu Oct 05, 2017 4:27 pm
Who is online

Users browsing this forum: No registered users and 10 guests