Jump to content

[solved] Call a http link in file


Recommended Posts

Hello, please, i want to call this url after customer places order

 

http://www.heureka.s...xxxxxxxxxxxxxxx

&[email protected]&produkt[]=nokia%206210&produkt[]=nokia%206310i&orderid=123456

 

 

where &email = email of customer

&produkt = product that customer bought

&orderid = increment of order id

 

 

this url must be called automatically after customer places an order.

 

Anyone knows how to make it? I have PS 1.5.4.1

Link to comment
Share on other sites

thanks vekia, i solved it by another way, just put code

 file_get_contents("http://www.heureka.sk/direct/dotaznik/objednavka.php?id=87465e4bde21286f3ab3d&email=".$this->context->customer->email."");

 

to classes/PaymentModule.php where is located automatic mailer with confirmation of order :)

Edited by aktivsport (see edit history)
Link to comment
Share on other sites

nice tip, thanks for it :) I did not know that such a simple solution exists :)

 

but i've got one question. You said that you want additional parameteres there. Unfortunately i don't see in your code any information about ID, product etc.

 

how you solved it?

Link to comment
Share on other sites

thanks for clarification :)

im going to mark this topic as [solved]

if you will have any other additional questions - feel free to continue discussion here or in the topic related to your question where the full solution is

 

best regards

Link to comment
Share on other sites

×
×
  • Create New...