Jump to content

[BO] One page / no tab Product creation.


Rulian

Recommended Posts

Hi guys,

I need to develop a BO module in order to create new Products from a single page, without tabs.
Since most of the infos asked by PS are irrelevant to my customers needs.
I could retrieve them from a custom 'new_products_default_values' datatable for example.

Anyway, from your point of view, which solution sounds better:

1) Creating a new admin page from scratch and create the new Product in PHP.
This sounds simple but I can't find ant documentation, or example, about the product creation API.

2) Create a new admin page from scratch and create a new Product via a PS webservice.
Once again, no useful documentation about creating new products using WS...

3) Duplicate then customize the default product creation page, removing tabs and replacing 'useless' (to my customer) fields by hidden ones, automatically filled-in when the page is displayed.

If you encountered the same kind of problem, would you be kind enough to share some of your experience?

Do you guys see any other way to do such a task ?

 

Thank you guys, and have a nice day.

Note 1: As a side note, I can't find anything about Product creation in the official documentation, nor ine the 'Prestashop Module Development' book by Fabien Serny.

Note 2: This looks like some kind of taboo subject :)
=> https://www.prestashop.com/forums/topic/277608-one-page-product-creation/

 

Note 3: If I create the Product via the PHP Porduct class, I already know I'll have to put some AJAX button somewhere across the form in order to create the Product object and retrieve its ID before doing such tasks like adding images...

 

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...