| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How to submit a form to another website? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() Hi ,
When customer made an order i need to submit some order data to other website .I can use both get and post method to do that.and without redirect the page like what we do for payment method. Is there a funtion in xcart to do that .I need to do it in func.order.php file.So i cant use js to do that. Thanks in advance.
__________________
MercuryMinds Technologies Development Team, Professional X-Cart Design, X-Cart Development, X-Cart Customization Services www.mercuryminds.com X-Cart Mailchimp Ecommerce 360 Plugin/integration module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) Smasher, a smart search engine for x-cart store (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) One Page Checkout (OPC) - X-Cart module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) |
|||||||||
#2
|
|||||||
|
|||||||
![]() You can use func_https_request to do this. See payment/cc_authorizenet.php for an example.
__________________
Manuka Bay Company X-Cart Version 4.0.19 [Linux] UGG Boots and other fine sheepskin products http://www.snowriver.com |
|||||||
#3
|
|||||||||
|
|||||||||
![]() it is using https but i need just http...
Quote:
__________________
MercuryMinds Technologies Development Team, Professional X-Cart Design, X-Cart Development, X-Cart Customization Services www.mercuryminds.com X-Cart Mailchimp Ecommerce 360 Plugin/integration module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) Smasher, a smart search engine for x-cart store (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) One Page Checkout (OPC) - X-Cart module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) |
|||||||||
#4
|
|||||||||
|
|||||||||
![]() If your server has enabled "allow_urls_fopen" you can use simple fopen("http://domain.com/dir/file?var1=value1&var2=value2"); This is for GET method. For POST method you should use CURL module (see manual) or func_http_request function from x-cart.
__________________
Regards, Anthony Holub X-Cart Skins Store ![]() - twenty two different skins available; - both 4.1.x and 4.2.x versions compatible; - refresh you store now! Smart menu X-Cart add-on Featured Products Slide Show X-Cart add-on "What's New?" FREE X-Cart add-on |
|||||||||
#5
|
|||||||||
|
|||||||||
![]() thnks Holub.
I dont know how i missed fopen .. I think this will work for me and i will test it and get back to you. NOTE: you forgot to mention the mode(second argument for fopen). ![]() ![]() ![]() Quote:
__________________
MercuryMinds Technologies Development Team, Professional X-Cart Design, X-Cart Development, X-Cart Customization Services www.mercuryminds.com X-Cart Mailchimp Ecommerce 360 Plugin/integration module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) Smasher, a smart search engine for x-cart store (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) One Page Checkout (OPC) - X-Cart module (Compatible with X-Cart 4.1.x, 4.2.x, 4.3.x) |
|||||||||
|
|||
X-Cart forums © 2001-2020
|