Jump to content

Implementare script compari.ro: Magazin de incredere


Recommended Posts

Salutare.

Ma poate lumina cineva in urmatoarea problema?

 

Incerc sa implementez scriptul compari.ro, magazin de incredere, in ver 1.5.3

Problema este ca ei, compari.ro, nu mi ofera deloc sprijin si mi-am prins urechile.

Scriptul trebuie adaugat in order_confirmation_controller.php si nu reusesc sa-i dau de cap.

Asta e documentatia de la ei:

 

Appendix 1. PHP implementation

1. Copy TrustedShop.php file to a place accessible by the webshop engine.

2. Copy the example code to the page of the webshop where the e-mail address of the customer and

the names of the purchased products are retrievable from the webshop engine. Generally this is the

webshop’s confirmation page of the purchase.

3. Customize the pasted example code according to the following:

• Modify path of TrustedShop.php in require_once() in such a way that the webshop engine can use it.

• Check that the proper WebAPI key is set, if not, modify it. You can find the WebAPI key on the partner portal.

• Set the customer’s e-mail address.

• Add the names of the purchased products.

• Implement an error tracking if you want (optional).

thank_you_page.php:

 

<?php

require_once "TrustedShop.php";

try {

$Client = new TrustedShop("Your WebAPIKey");

$Client->SetEmail("Customer's e-mail address");

$Client->AddProduct("Name of first purchased product");

$Client->AddProduct("Name of second purchased product");

$Client->Send();

} catch (Exception $Ex) {

$ErrorMessage = $Ex->getMessage();

}

?>

 

Am modificat cheia api, am pus la email $email.... Dar mai departe nu stiu ce dreaq sa mai pun.

Are careva implementat codul pe ver 1.5.3 sa ma ajute si pe mine, pls?

Link to comment
Share on other sites

  • 2 weeks later...
  • 5 months later...
  • 4 weeks later...
  • 2 months later...

Salutare, pana la urma a reusit cineva sa gaseasca solutia? ..."pus la email $email" asa cum zice tibobirotica ar fi inceputul... dar eu primesc acum urmatorul mesaj in error_log:

 

[12-Dec-2013 17:10:42 Europe/Bucharest] PHP Warning: Cannot modify header information - headers already sent by (output started at /*/public_html/controllers/front/TrustedShop.php:54) in /*/public_html/classes/controller/FrontController.php on line 749

 
TrustedShop.php linia 54 se leaga de un js de la compari.ro iar FrontController.php on line 749 are treaba cu cookie-uri despre politica de confidentialitate... parerea mea e ca compari.ro, cacofonie intentionata acus', de necaz, nu are definita clar politica de confidentialitate conform cu http://www.w3.org/TR/P3P11/#compact_policies si cookie-urile sunt blocate de browsere... si nu mai ajung sa culeaga si sa trimita informatiile necesare... ma gandesc...
 
Poate cineva sa vina cu ceva informatii despre ce trebuie facut? maine urmeaza sa contactez din nou echipa de suport... ;)
 
Chiar nu vrea nimeni sa ajute cu implementarea? 
 
Link to comment
Share on other sites

  • 1 year later...
  • 6 months later...
  • 8 months later...
  • 11 months later...
  • 2 months later...
  • 5 months later...
  • 1 month later...

Am cumparat de pe addons un modul dezvoltat initial pentru arukereso.hu, iar developerul a fost de acord sa il adapteze pentru compari.ro. 

Astazi, 27.03.2018 a fost uracat pe addons versiunea compatbila cu compari.ro, am testat-o si functioneaza impecabil.

 

Contine si generator de feed pentru compari. 

https://addons.prestashop.com/en/marketplaces/20682-arukereso.html?pab=1& 

Link to comment
Share on other sites

  • 2 years later...
  • 4 months later...
2 hours ago, hobart said:

Salutare

Am instalat modulul am pus API key dar nu stiu daca functioneaza sau nu.

Cum pot sa-mi sau seama ?

In admin la compari arata daca este activ si inregistrat corect, daca doresti sa te asiguri, trimite un mail ei la tehnic. Activitatea se poate vedea dupa primele comenzi.

Link to comment
Share on other sites

  • 4 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...