Jump to content

Recommended Posts

Bonjour,

Petit soucis en cours... J'ai céer des règles de paniers pour des clients particuliers qui reçoivent des réduction différentes sur des marques en particulier de ma boutique...

J'ai mis en place.. tout sembler bien se passer, test ok... et maintenant je ne sais pas pourquoi.???? j'ai ce message quand je valide le code de réduction dans mon panier test..

"Vous devez choisir un transporteur avant de pouvoir appliquer ce bon de réduction à votre commande".????? J'avoue que j'ai fais le tour de ce que je pouvais... sans résoudre mon problème. Quelqu'un sur le forum pourrait il m'aider.? me guider.?

Merci d'avance pour l'aide à venir.

Bruno

Link to comment
Share on other sites

  • 1 year later...
  • 3 months later...
  • 5 months later...
Le message d'erreur s'affiche des que l'on rentre dans cette condition 
 
if ($this->carrier_restriction)
{
if (!$context->cart->id_carrier)
return (!$display_error) ? false : Tools::displayError('You must choose a carrier before applying this voucher to your order');
 
Un début de piste ici :
 


 
Possible solutions/work arounds:
 
- Maybe make the Livraison à domicile your default carrier. This might help. (But only if you don't have other vouchers for other carriers which will then give the same problem for those carriers, of course)
- Use instead of the 5 step checkout the one page checkout. This way the customer can just scroll down quickly to choose a carrier and then add the voucher code again.
 
- any other solution needs hacking in the source code of PrestaShop, which may prove difficult/time consuming. You would have to accept vouchers independent on if they can be used, then at the end in step 5 check if they indeed can be used. (And if not, alert the buyer that the voucher will unfortunately not work with these chosen settings, which is also strange, as they will think 'why didn't you tell me in the first place when I added the code". You can't really 'win' here...
 

 

 

 
 
mais ce qui me chagrine c'est que l'équipe prestashop soit incapable de régler ce probleme ou alors de changer le comportement en déplacant le code promo après la sélection du transporteur.
 
 
ps: Le seul moyen que j'ai trouvé pour résoudre ce problème est l'activation du mode "One page Checkout".

 

Cordialement.

Edited by webconcept76 (see edit history)
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...