PrestaShopWebService | Examples of using the PrestaShop WebService | Web Services library
kandi X-RAY | PrestaShopWebService Summary
kandi X-RAY | PrestaShopWebService Summary
Examples of using the PrestaShop WebService
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Executes a curl request
- Executes a GET request to the PrestaShop API
- Execute a list of products
- Edit a transaction
- add a new group
- Deletes a resource
- Parse the HTTP response .
- Check HTTP status code
- Print debug info
- Get the package version .
PrestaShopWebService Key Features
PrestaShopWebService Examples and Code Snippets
Community Discussions
Trending Discussions on PrestaShopWebService
QUESTION
I'm developping a webservice on prestashop using the PSWebServiceLibrary with php. That i want is to make request that get random row , for example i want to get 10 random products. On the webservice api there is no option which can make this one; Is there a way to make that request using the PSWebServiceLibrary on php? Like i made below:
...ANSWER
Answered 2021-Jun-09 at 06:05You can get 10 random products from DB with this
QUESTION
Using: Prestashop: 1.7.6.5.
I'm trying to create a piece of code to update products prices (or other information in products) with the code below, but it always results in the error "id is required when modifying a resource".
The code:
...ANSWER
Answered 2020-Jul-22 at 14:16I've figured out that searching by reference, the resulting object data if formatted to display multiple products, and I think that in this way update it's not available.
QUESTION
hello i wanna create module to import products data from xml file to datatbase the xml file i download it from ftp server and read it and imported the products, if a product exist with the same reefrence i do a update for the product he has the same reference. please give some ideas i found this code in some forums
...ANSWER
Answered 2018-Dec-14 at 11:12hello everyone i found a solution maybe help others
there is a function to get the file from ftp server
QUESTION
I want to create an Android App for our Prestashop eshop. What i want is to add functionality to display all the product list, the wish list of a user, and the cart of the user. For now what I am trying to achieve is to write a log in activity. Can anybody show me how with php we can log in to Prestashop from an Android device?
My log in code so far is the following but I get an error wrong password. Probably something is wrong with the _COOKIE_KEY_.
...ANSWER
Answered 2018-Sep-10 at 14:35Morning,
I think you are looking for a rest api or web service, check the prestashop rest api, there you can manage the store with you app calling the server(login, check products etc..)
More info: http://doc.prestashop.com/display/PS16/Web+service+tutorial
Example listing customer you can find it on the url but i will past the example code
QUESTION
I'm currently working on an application that makes use of the prestashop webservice. This means that the application i'm building is an extension of an existing prestashop application. The connection between both applications is through the prestashop webservice
Currently i'm trying to create a login script for thecustomers
. The email and password are obtained from the database through the webservice and i'm able to filter the inputs with the existing row's. So when filling in login@test.com. The filter will only obtain the row with that email address.
The problem i'm having is with the password. Prestashop uses a _COOKIE_KEY_
together with anmd5()
to encrypt passwords. See this link for more information: link
So i've been trying some different things for a while to check the inputted password with the customers password but i haven't found the solution yet.
Take a look at the code below:
...ANSWER
Answered 2017-Dec-03 at 21:55if PrestaShop version is 1.6, the function to encrypt customer passwords is Tools::encrypt($passwd). This method just do this:
QUESTION
First of all: Sorry if the snippets are with many tabs (:
Hi everyone!
Currently i'm working on an AngularJS based application. The application has a database connection through the Prestashop Webservice. I'm trying to edit content that's in the database. I think the example will make it more clear.
Summary
The webservice can be used to create a link with an existing prestashop installation. The link itself is an REST API for accessing the database. With this information we're able to get, set, edit and delete data from the database. See the following example for a customers table:
ANSWER
Answered 2017-Oct-27 at 14:25First, I created a controller to handle the logic. I assume you have a similar layout.
For the guts, on your ng-repeat
, create an ng-click
for each
ng-click
should pass in the value of customer
(or the individual value you get on each iteration)
So, clicking on any of the
QUESTION
First of all i don't know if the title is the best but i've tried to describe it as best as possible.
So i'm currently working on a project that makes use of the PrestashopWebserviceLibrary, I'ts simply sad, working with a prestashop API. and i've encounterd a problem that i can't solve.
So the objective is to post a new customer to the database through a form. The form has a submit button that works with angular so ng-click="function()"
. The funtion then gathers all the variables from the form, puts it into an $.ajax POST
request and sends it to the file set.php
. In this file we'll make the request to the database to insert everything. The file makes use of XML
.
I think this will make it more understandable:
The form
...ANSWER
Answered 2017-Oct-12 at 10:05So i found the problem.
As told in the progress edit section it had something to do with the post.
The issue was that:
QUESTION
I need to get rid of polish characters from string I got from xml file. I use .replace() but in this case it doesn't work. Why? The code:
...ANSWER
Answered 2017-Sep-16 at 21:39If I understand your problem correctly, you can use unidecode
:
QUESTION
i'm new, and i've a problem with webservice.
when i try to retrieve customers filtering by date_add i get this error:
...ANSWER
Answered 2017-Apr-05 at 13:44Looking at the Customer class webservice parameters, there is no date_add:
QUESTION
I'm trying to add a new customer via webservice to my prestashop database but in appearance, everything is OK, returned code 200 but response xml body is empty and database has no new customers.
I've enabled webservice for the GET and PUT crud methods and generate API Key.
Code for the customer addition is the next one:
...ANSWER
Answered 2017-Apr-04 at 08:49Asked myself. In my case explained on top, I need one webservice per order so:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install PrestaShopWebService
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page