Prestashop - Send data from Add to cart to orders summary in the Back Office

Viewed 26

I created a module for customers to customize a product. They access the module from a button in the product page, which send them to a new page where they'll get the product as a customizable SVG element.

Then, they can add the product to shopping cart and order it the classic way.

Just when the customer click on the Add to cart button, I want to get the customized SVG element and integrate it to the cart and order (mainly the order) and so be able to display and download this element in the Back Office in the orders summary.

I tried adding the element to the Cart object but when I get back this object with the right ID in the cart in the BO, the object is empty.

Do somebody as something for that ?

Thanks !

1 Answers

What you are trying to do will be pretty complicated and time-consuming.

I suggest you look at the default customization mechanism in PrestaShop. You can upload different images as a customization. You can't upload .svg files. Your job would be to:

  • integrate with the default mechanism
  • implement .svg support for it

It's a complex job, and a probably better idea is to look for a module that would do that for you. Reinventing the wheel there may not have a good ROI :)

Related