Jump to content

PRESTA API create order


marczaq

Recommended Posts

Hi Everyone,

I want to create order using presta API.

 

I know that I have to Create cart and next order.

 

I starting to enter field (CART Create) :

 

id_address_delivery,id_address_invoice, id_customer,id_guest, id_lang, id_shop_group, id_shop, id_carrier,
 recyclable, gift, mobile_theme and next I have to enter field delivery_option. Using webbrowser I checked that in this field I have to enter data like a:1:{i:6;s:2:"1,";} but I don't know what is it? 
 
Could somebody explain me what this value (a:1:{i:6;s:2:"1,";} ) means?
 
Next problem is field secure_key

How to generate this key that it was validated?

 

I can't use presta class because I writting external aplications using presta logic.

Link to comment
Share on other sites

  • 1 year later...

Hi Everyone,

I want to create order using presta API.

 

I know that I have to Create cart and next order.

 

I starting to enter field (CART Create) :

 

id_address_delivery,id_address_invoice, id_customer,id_guest, id_lang, id_shop_group, id_shop, id_carrier,
 recyclable, gift, mobile_theme and next I have to enter field delivery_option. Using webbrowser I checked that in this field I have to enter data like a:1:{i:6;s:2:"1,";} but I don't know what is it? 
 
Could somebody explain me what this value (a:1:{i:6;s:2:"1,";} ) means?
 
Next problem is field secure_key

How to generate this key that it was validated?

 

I can't use presta class because I writting external aplications using presta logic.

 

 

hey i dint find what is this ? (a:1:{i:6;s:2:"1,";} 

 

but i know what is secure_key :)

 

The SECURE_KEY is the secure_key field value of the customer both in cart and in order you have to fill this field using customer secure_key field.

 

so get your customer data using customer id or email then store it in variable and then fill it while creating cart and order .

 

Regard,

Hardik

 

Link to comment
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...