Jump to content

soniya_.s

Members
  • Posts

    5
  • Joined

  • Last visited

Profile Information

  • First Name
    sonia
  • Last Name
    shah

soniya_.s's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I'm using Prestashop version "1.6.0.1.4", and yes i have tried to directly modify Paypal module' and it works as expected but the only drawback of doing this, is my changes won't be available in case i upgrade prestashop to newer version later on.
  2. Thank you for your reply. i got following URL while testing with Paypal. "http://abc.com/da/module/paypal/submit?key=1f7f3f9b7771b0cf935390fb3e0b3767&id_module=73&id_cart=90&id_order=84" and through this url, it seems like modules/paypal/controllers/front/submit.php file is called. Now all i tried is to override paypal module's controller file, and i have placed file at location "...override\modules\paypal\controllers\front\submit.php". But still no luck, it doesn't override paypal submit.php file. is it wrong location i'm placing override file or we can't override module's controller php file anyway? Any help would be really appreciated.
  3. Yeah i have tested using paypal payment procedure, and after filling credit card information on paypal site, i can see order confirmation page assuring that "Your order on .... is complete." but still tracking pixel doesn't get fires on order confirmation page. Don't know if there's separate "OrderConfirmation" controller for paypal or what?
  4. Hey, Basically i have implemented tracking pixel right after a click on "I confirm my order" button, so whenever user clicks on "I confirm my order...", it would track that particular user purchased successfully.and for that purpose i have override OrderConfirmation Controller. Only problem is in-case of paypal i didn't receive any tracking pixel on my site (http://www.abc.com/). So my goal is to receive tracking pixel on my site whenever user successfully purchased ,using any payment method(paypal, pay by bank-wire, pay by cheque).Below is the code snippet so you get better idea from code: class OrderConfirmationController extends OrderConfirmationControllerCore { public function initHeader() { .... $url = "https://www.abc.com/"; $data = array( 'VoucherCode' => $VoucherCode, 'Amount' => $OrderAmount ); $data_string = json_encode($data); $ch = curl_init($url); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'Content-Length: ' . strlen($data_string)) ); $result = curl_exec($ch); return parent::initHeader(); } } Any help would be really appreciated.
  5. Hello, I have override some custom function in order confirmation controller (override/controllers/front/OrderConfirmationController), and it works fine for payment methods(Pay by Cheque, Pay by Bank-wire),but unfortunately not working for paypal payment method. Can anyone help regarding this, doesn't it be the same file i need to modify to also make it work for paypal order confirmation. Or prestashop defined some different controller for paypal order confirmation?
×
×
  • Create New...