Jump to content

Customer number...


Recommended Posts

Even if B2B-mode is activated, there isn't s field for customer number what I can see. The customer number (customer identification number) is the id of the customer in our Business system... this is basic stuff to have for B2B.

 

The customer number needs to be applied on the orders also. What's the best approach here... add a custom field (somehow) or reuse the APE-field (removing validation)?

Link to comment
Share on other sites

We are trying something right now, should work in theory. The hard thing to know as a novice prestashop developer, is if this is a good idea in the first place. We are overriding all the nessecary files to not mess up the core.

 

- Creating new field for the customer (customer id)

 

- Creating same field for orders

 

- Making sure the customer id is saved to the order

 

- Instead of connecting a customer via e-mail, we use customer id (so multiple customers with same customer id use the same addresses)

 

- In the front office order history, instead of selecting orders based on id, we select them by customer id. If there are multiple customers with the same id that have placed orders, all of these would show.

Link to comment
Share on other sites

×
×
  • Create New...