Bonjour,
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
Prestashop 1.7.7.2
Hello,
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".
Prestashop 1.7.7.2
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, ....)
{
$.ajax({
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
.png.022b5452a8f28f552bc9430097a16da2.png)
