| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Issue in Curl calling in xcart page | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Issue in Curl calling in xcart page
Hello,
I have an issue in calling the curl to send a notification message in admin area using code below: PHP Code:
Please anyone can suggest me that what is wrong.
__________________
Ajeet Singh Sr.Software Developer Webkul Software Pvt. Ltd. |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Issue in Curl calling in xcart page
Instead of a direct Curl call try to use the ready-made \XLite\Core\HTTP\Request class.
You can find examples of using this class in the source code.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#3
|
|||||||
|
|||||||
Re: Issue in Curl calling in xcart page
Hello
qualiteam, Actually i do not get any types of class that are using source code for \XLite\Core\HTTP\Request. So please suggest me in right way that's way i will be able to solve mu issue.
__________________
Ajeet Singh Sr.Software Developer Webkul Software Pvt. Ltd. |
|||||||
#4
|
|||||||||
|
|||||||||
Re: Issue in Curl calling in xcart page
Please check how the class is used in the source code:
https://github.com/xcart/xcart5/search?p=3&q=%5CXLite%5CCore%5CHTTP%5CRequest&type =&utf8=%E2%9C%93 For example, here: https://github.com/xcart/xcart5/blob/cf1f28cec010ef7044cc8bbfe2fe39eac0e30196/src/classes/XLite/Module/CDe.../Core/AAPI.php
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#5
|
|||||||
|
|||||||
Re: Issue in Curl calling in xcart page
Hello ,
I am not getting a wright solution for my problem. Again i am explaining my problem below: I just want to call a notification message in a xcart backend page on clicking a button on that page for Mozila FireFox browser, And for that purpose i am using the curl request and the code for which i am using for the function is as below. PHP Code:
In the above code the $sub_ids is the subscription ids of more then one user. So please help me. Thanks in Advance.
__________________
Ajeet Singh Sr.Software Developer Webkul Software Pvt. Ltd. |
|||||||
#6
|
|||||||||
|
|||||||||
Re: Issue in Curl calling in xcart page
I'm sorry, but I don't understand what the problem is.
Please describe in steps what you want to implement and explain which steps you have problems with. Have you added the button already? Is the problem that you don't know how to call your sendPushMozila() function on the server when a user clicks that button in the browser? How and where did you added sendPushMozila() function?
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#7
|
|||||||
|
|||||||
Re: Issue in Curl calling in xcart page
Hello qualiteam,
I am explaining step by step below: Please try to understand my problem. 1. At x-cart backend, I have create a page where n number of records are listed and there is a notify button for each record as shown in attachment. 2. I just want that when i click on the Notify Button i just want to show a notification in mozila firefox as like other eCommerce site send a notification for their new products or any other information when i subscribed their notification service. 3. So for that purpose on the click on that notification button i will call an ajax and the targer of that ajax is Notiftmplt and action is Notify. 4. Then Under the Notify function of that controller class Notiftemplt, i just call that finction sendPushMozila() which have the following code below: PHP Code:
In the above code the $sub_ids is the subscription ids of more users. IF any further clarification, Please let me know.
__________________
Ajeet Singh Sr.Software Developer Webkul Software Pvt. Ltd. |
|||||||
#8
|
|||||||||
|
|||||||||
Re: Issue in Curl calling in xcart page
You said "I have an issue in calling the curl to send a notification message".
What is the issue? You explained what you do, but you didn't say what is not working in the code that you have implemented. Do you see an error message? Or what? If it is the curl call that causes a issue, try to use the \XLite\Core\HTTP\Request class as I have suggested. You can find examples of how to use this class in the source code of X-Cart itself.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
|
|||
X-Cart forums © 2001-2020
|