Jump to content

téléchargement gratuit et page de paiement


Recommended Posts

Bonjour !

Je suis sous PS 1.7.8.7 et j'utilise prestashop checkout couplé avec Paypal pour ce qui est du paiement.

J'essaie de mettre en place des téléchargements gratuits sous conditions de création de compte, ce qui (je pense) m'impose de passer par le panier pour que ces téléchargements soient disponibles sur le compte de chaque personne intéressée.

Tout fonctionne à merveille si quelque chose d'autre (de payant) est ajouté dans le panier Or, si mon panier ne contient que le produit téléchargeable gratuit, au moment du paiement cela crée une erreur fatale, ce qui semble logique puisque mon client ne me doit rien.

De ce fait est-il possible de "squizzer" le passage au paiement si mon panier ne contient que des articles à 0 euro ?

Ou peut-être une autre solution existe déjà et je ne l'ai pas vue :P

Merci si vous avez une idée !

Belle journée

Fred

Link to comment
Share on other sites

Bonjour et merci pour votre réponse (hyper) rapide !

Alors je tombe un peu des nues en voyant les dizaines d'erreurs que cela provoque :

Je me rends compte que j'ai toujours eu un pb avec le module chronopost point relais... (du coup je l'avais desactivé).

Je ne sais pas s'il est possible de s'y retrouver dans ce méli mélo d'erreurs ... 😕

in chronopost.php line 1229

at Chronopost->getAddressPointRelais(object(Cart), '0')in chronopost.php line 1935

at Chronopost->hookDisplayPaymentTop(array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 3))in Hook.php line 1007

at HookCore::coreCallHook(object(Chronopost), 'hookDisplayPaymentTop', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 3))in Hook.php line 431

at HookCore::callHookOn(object(Chronopost), 'displayPaymentTop', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 3))in Hook.php line 944

at HookCore::exec('displayPaymentTop', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 3), null)in smarty.config.inc.php line 167

at smartyHook(array('h' => 'displayPaymentTop'), object(SmartyDevTemplate))in SmartyLazyRegister.php line 83

at SmartyLazyRegister->__call('smartyHook', array(array('h' => 'displayPaymentTop'), object(SmartyDevTemplate)))in 4c0c7e2e56a9e8d8975466e5b562aa904f769e96_2.file.payment.tpl.php line 49

at Block_213647657063e390fdcf73f9_23993930->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248

at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_213647657063e390fdcf73f9_23993930), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_213647657063e390fdcf73f9_23993930), object(Block_204029331363e390fdb87ff6_85052186))in smarty_internal_runtime_inheritance.php line 186

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_204029331363e390fdb87ff6_85052186))in smarty_internal_runtime_inheritance.php line 156

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_204029331363e390fdb87ff6_85052186', 'step_content', 1)in 30cf5e93530f60fc5cadf1ddf0b715a809d85197_2.file.checkout-step.tpl.php line 72

at Block_110228257963e390fdb851f0_41284123->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248

at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_110228257963e390fdb851f0_41284123), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_110228257963e390fdb851f0_41284123))in smarty_internal_runtime_inheritance.php line 156

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_110228257963e390fdb851f0_41284123', 'step')in 30cf5e93530f60fc5cadf1ddf0b715a809d85197_2.file.checkout-step.tpl.php line 26

at content_63e390fdb88bc2_44910068(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123

at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114

at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216

at Smarty_Internal_Template->render()in smarty_internal_template.php line 385

at Smarty_Internal_Template->_subTemplateRender('checkout/_partials/steps/checkout-step.tpl', null, null, 0, 31536000, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 116

at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'checkout/_partials/steps/checkout-step.tpl')in 4c0c7e2e56a9e8d8975466e5b562aa904f769e96_2.file.payment.tpl.php line 34

at content_63e390fdd0ffa9_83650409(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123

at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114

at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216

at Smarty_Internal_Template->render(false, 0)in smarty_internal_templatebase.php line 232

at Smarty_Internal_TemplateBase->_execute(object(SmartyDevTemplate), null, null, null, 0)in smarty_internal_templatebase.php line 116

at Smarty_Internal_TemplateBase->fetch(null, null, null, null, false, true, false)in SmartyDevTemplate.php line 40

at SmartyDevTemplateCore->fetch()in AbstractCheckoutStep.php line 100

at AbstractCheckoutStepCore->renderTemplate('checkout/_partials/steps/payment.tpl', array('identifier' => 'checkout-payment-step', 'position' => 3, 'ui' => object(RenderableProxy)), array('is_free' => true, 'payment_options' => array('free_order' => array(array('module_name' => 'free_order', 'binary' => null, 'action' => 'https://www.retro-player.com/fr/confirmation-commande?free_order=1', 'form' => null, 'inputs' => null, 'logo' => null, 'additionalInformation' => null, 'call_to_action_text' => 'Commande gratuite', 'id' => 'payment-option-1'))), 'conditions_to_approve' => array('terms-and-conditions' => 'J\'ai lu les <a href="https://www.retro-player.com/fr/content/3-conditions-generales-d-utilisation" id="cta-terms-and-conditions-0">conditions générales de vente</a> et j\'y adhère sans réserve.'), 'selected_payment_option' => null, 'selected_delivery_option' => array('price_with_tax' => 0, 'price_without_tax' => 0, 'package_list' => array(0), 'logo' => '/img/s/82.jpg', 'id_reference' => '5', 'name' => 'Colissimo domicile sans signature', 'is_free' => '0', 'url' => 'https://www.laposte.fr/outils/suivre-vos-envois?code=@', 'shipping_handling' => '0', 'shipping_external' => '1', 'range_behavior' => '0', 'shipping_method' => '2', 'max_width' => '0', 'max_height' => '0', 'max_depth' => '0', 'max_weight' => '30.000000', 'grade' => '2', 'external_module_name' => 'colissimo', 'is_module' => '1', 'need_range' => '1', 'position' => '2', 'id' => 82, 'delay' => 'Livraison à domicile', 'price' => 'gratuit', 'label' => 'Colissimo domicile sans signature - Livraison à domicile - gratuit', 'extraContent' => '<!-- begin modules/colissimo/views/templates/hook/front/displayCarrierExtraContent.tpl --> <div class="colissimo-address-fields"> <p> <span> Veuillez saisir ces champs :<br> </span></p><div class="row"> <label class="col-md-3 address-label"> <span>Code porte 1</span> </label> <div class="col-md-6"><input type="text" class="fixed-width-md address-input" name="colissimo_code_porte1_5" value="" maxlength="8"></div></div><div class="row"> <label class="col-md-3 address-label"> <span>Code porte 2</span> </label> <div <div class="col-md-6"><input type="text" class="fixed-width-md address-input" name="colissimo_code_porte2_5" value="" maxlength="8"></div></div> </div><!-- end modules/colissimo/views/templates/hook/front/displayCarrierExtraContent.tpl -->'), 'show_final_summary' => false))in CheckoutPaymentStep.php line 108

at CheckoutPaymentStepCore->render(array('identifier' => 'checkout-payment-step', 'position' => 3, 'ui' => object(RenderableProxy)))in RenderableProxy.php line 52

at RenderableProxy->render(array('identifier' => 'checkout-payment-step', 'position' => 3, 'ui' => object(RenderableProxy)))in smartyfront.config.inc.php line 98

at smartyRender(array('identifier' => 'checkout-payment-step', 'position' => 3, 'ui' => object(RenderableProxy)), object(SmartyDevTemplate))in SmartyLazyRegister.php line 83

at SmartyLazyRegister->__call('smartyRender', array(array('identifier' => 'checkout-payment-step', 'position' => 3, 'ui' => object(RenderableProxy)), object(SmartyDevTemplate)))in 2b97ec907392f4926820294c4df5b98d68ab2a36_2.file.checkout-process.tpl.php line 29

at content_63e390fdb6d209_53498546(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123

at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114

at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216

at Smarty_Internal_Template->render(false, 0)in smarty_internal_templatebase.php line 232

at Smarty_Internal_TemplateBase->_execute(object(SmartyDevTemplate), null, null, null, 0)in smarty_internal_templatebase.php line 116

at Smarty_Internal_TemplateBase->fetch(null, null, null, null, false, true, false)in SmartyDevTemplate.php line 40

at SmartyDevTemplateCore->fetch()in CheckoutProcess.php line 160

at CheckoutProcessCore->render(array('file' => 'checkout/checkout-process.tpl', 'ui' => object(RenderableProxy)))in RenderableProxy.php line 52

at RenderableProxy->render(array('file' => 'checkout/checkout-process.tpl', 'ui' => object(RenderableProxy)))in smartyfront.config.inc.php line 98

at smartyRender(array('file' => 'checkout/checkout-process.tpl', 'ui' => object(RenderableProxy)), object(SmartyDevTemplate))in SmartyLazyRegister.php line 83

at SmartyLazyRegister->__call('smartyRender', array(array('file' => 'checkout/checkout-process.tpl', 'ui' => object(RenderableProxy)), object(SmartyDevTemplate)))in 054836ecd6c4093e8c14a054ffc1bc170cbd425b_2.file.checkout.tpl.php line 178

at Block_61497270363e390fda6c113_35196268->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248

at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_61497270363e390fda6c113_35196268), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_61497270363e390fda6c113_35196268))in smarty_internal_runtime_inheritance.php line 156

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_61497270363e390fda6c113_35196268', 'cart_summary', 3)in 054836ecd6c4093e8c14a054ffc1bc170cbd425b_2.file.checkout.tpl.php line 217

at Block_60091952263e390fda6bab6_02457000->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248

at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_60091952263e390fda6bab6_02457000), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184

at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_60091952263e390fda6bab6_02457000))in smarty_internal_runtime_inheritance.php line 156

at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_60091952263e390fda6bab6_02457000', 'content')in 054836ecd6c4093e8c14a054ffc1bc170cbd425b_2.file.checkout.tpl.php line 71

at content_63e390fda74cb6_58867931(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123

at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114

at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216

at Smarty_Internal_Template->render(false, 0)in smarty_internal_templatebase.php line 232

at Smarty_Internal_TemplateBase->_execute(object(SmartyDevTemplate), null, 'apparelprolayouts/layout-full-width.tpl', null, 0)in smarty_internal_templatebase.php line 116

at Smarty_Internal_TemplateBase->fetch('checkout/checkout.tpl', null, 'apparelprolayouts/layout-full-width.tpl', null, false, true, false)in SmartyDev.php line 40

at SmartyDev->fetch('checkout/checkout.tpl', null, 'apparelprolayouts/layout-full-width.tpl')in FrontController.php line 727

at FrontControllerCore->smartyOutputContent('checkout/checkout.tpl')in FrontController.php line 709

at FrontControllerCore->display()in Controller.php line 326

at ControllerCore->run()in Dispatcher.php line 518

at DispatcherCore->dispatch()in index.php line 28

Link to comment
Share on other sites

Oups en effet,

 

voici une capture d'écran du début de l'erreur du coup.

En ce qui concerne l'erreur de module, ce serait celui de chronopost ou PayPal ?

Chronopost c'est bizarre je l'ai pourtant bien désactivé , et il apparait encore dans les erreurs.

Capture d’écran 2023-02-09 à 18.26.01.png

Link to comment
Share on other sites

L'erreur dans le module Chronopost que vous avez téléchargé est un "notice" (avis) et n'est pas vraiment celle qui provoque l'erreur fatale - page blanche.

Si la désactivation de ce module a fonctionné pour vous, je suppose qu'une autre erreur dans ce module est à l'origine de l'erreur fatale.

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