Jump to content

Product and Catalog import help needed

Recommended Posts

Hello guys

I'm working on a module and I'm stuck on a part where I have to bulk import a catalog in a prestashop site. I have to create the category structure and add the products with their variations.

I'm doing this with a cron based on preset conditions, and I really need an example of a script that would help me figure out the code I need to write for import_product and build_category_structure (see pseudo code below). The data I'm working on is XML but I can parse it to whatever.

$products = [{ Product, ProductVariations }, { Product, ProductVariations }, { Product, ProductVariations }];


$categories = [{ name: Category, children: [ChildCategoryArray] }, { name: Category_2, children: [ChildCategoryArray] }];


Any help would be greatly appreciated!

Edited by Mapolin (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