Jump to content

[WEB SERVICE CART] Delivery Options


Recommended Posts



When I submit a Cart on webservice I need to specify the "delivery_options", this field is a string composed as follows:




My problem is what specify after "s:"


a:1 => first row

i:9 => id_adress of delivery

"2," => id_carrier 



Thanks so much



  • Like 1

Share this post

Link to post
Share on other sites

  • 9 months later...
  • 2 years later...

Hello everyone,

To begin the 'delivery_options' is saved as the following example:

	9 => "2,"

So if you execute this simple code you will get what you asked for before.

To be more clear :

a:1 => means that there one array

i:9 => means that there is an integer and the value is 9

s:2 => this means that a string of length 2 and the value in the next row wich is the id carrier

"2," => id_carrier


in new versions of Prestashop the serialize was replaced by json_encode so will find another expression in your case it will look like


I hope i was clear.


Edited by gabtnim (see edit history)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More