Jump to content

I need to add two fields in the checkout process.


Recommended Posts

I need to add two fields, a 'reference number' and the name of a 'contact person' to the checkout process in the first step, but not on the login form.

Those two fields need to be added to the cart table and the orders table.

 

However:

- I'm not supposed to use 'overrides', since Prestashop discourages that.

- I don't want to change core code.

- There aren't any hooks in the checkout process that can be used for this.

 

How can I accomplish this?

 

Link to comment
Share on other sites

On 8/18/2025 at 12:28 PM, zunxunz said:

PS version 8.2.1.

There isn’t a built-in hook in PrestaShop 8.2.1 to add fields directly in the first checkout step. The clean way is to create a small custom module. With it, you can inject your two fields (reference number and contact person) into the checkout form using JS, then save their values in the database when the order is confirmed. This way you don’t touch the core or overrides, and the solution stays stable on updates.

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