Jump to content

Modification of a custom text field (prestashop default field) in the basket summary (Prestashop

Recommended Posts


J'ai besoin de votre aide pour modifier un champ texte personnalisé dans le récapitulatif du panier.

En effet, je propose des produits supplémentaires dans le récapitulatif du panier et ces produits comportent des champs personnalisés.

Je souhaiterais que l'internaute puisse remplir le champ directement, sans retourner dans la fiche produit.

J'aimerai utiliser Ajax mais j'ai beaucoup de mal à créer la fonction.

Je pense que cette fonction doit appeler la fonction "addTextFieldToProduct" qui se trouve dans "classes/Cart.php.

Merci beaucoup aux personnes qui pourront m'aider



I need your help to edit a custom text field in the cart summary.

Indeed, I offer additional products in the basket summary and these products have custom fields.

I would like the user to be able to fill in the field directly, without going back to the product sheet.

I would like to use Ajax but I have a lot of trouble creating the function.
I think this function should call the "addTextFieldToProduct" function which is in "classes/Cart.php".



Voici la fonction que j'essaie de faire dans "custom.js".

Here is the function I have to do in "custom.js".

function insertTextField(arg1, arg2, ....)
		type: 'POST',
		headers: { "cache-control": "no-cache" },
		url: .......,
        async: true,
        cache: false,
        dataType: 'json',
        data: 'controller=cart&ajax=true&.....'

Thank you very much to the people who can help me.

Sorry for my English


Edited by insitweb (see edit history)
Link to comment
Share on other sites

  • insitweb changed the title to Modification of a custom text field (prestashop default field) in the basket summary (Prestashop
  • 2 weeks later...

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