THELIA Forum

Welcome to the THELIA support and discusssion forum

Announcement

Rejoignez la communauté sur le Discord Thelia : https://discord.gg/YgwpYEE3y3

Offline

#1 Intégration module Paypal

(09-04-2015 14:19:44)


Après lecture du readme du module Paypal, je ne saisis pas s'il faut ajouter les pages «gotopaypalfail.html» et «ordercanceled.html» à mon template frontend.
Quelqu'un pourrait-il m'éclairer à ce sujet ?

Merci

Offline


Il n'est pas nécessaire de les ajouter à ton template, Thelia va aller automatiquement chercher ces fichiers dans le module, dans le répertoire Paypal/template/frontOffice/default

Si tu veux customiser ces templates, tu peux customiser les fichiers présents dans ce répertoire.
Si tu as créé ton propre template (qui s'appelle, disons, montemplate), tu peux placer ces deux fichiers customisés dans Paypal/template/frontOffice/montemplate.


OpenStudio Toulouse

Offline


Ok, c'est clair maintenant.
Je te remercie.

Offline


J'ai actuellement deux problèmes concernant les paiements avec le module Paypal :

1 - Tout d'abord, la page de paiement ne me propose que le paiement via compte Paypal alors que la solution configurée pour ma client est Paypal Intégral. Paypal Intégral propose normalement le paiement via cartes bancaires ainsi qu'à l'aide d'un compte Paypal.
Peut-il s'agir d'un bug lié au module Paypal ?

2 - Sinon, sur la page de paiement Paypal, lorsque je clique sur le bouton «Annuler et retourner sur la Boutique», je reviens bien sur la boutique à la page suivante :

http://monsite.com/module/paypal/cancel/31?token=EC-2BT90129412960424

Par contre lorsque le client souhaite se déconnecter, une erreur se produit. Le client est redirigé sur la page d'accueil tronquée (seule la barre de navigation apparait en double et le reste de la page est absente).
En ajoutant «index_dev.php» à mon url, j'obtiens le message «forbidden».
Une idée ?

Un grand merci d'avance.

Last edited by rigamarole (10-04-2015 10:39:24)

Offline


En ajoutant «index_dev.php» à mon url, j'obtiens le message «forbidden».

Oui, il te faut ajouter ton adresse IP à la liste qui figure dans index_dev.php


OpenStudio Toulouse

Offline


OK, voilà c'est mieux avec mon IP.
Enfin, pas sûr.  :-p

1/2 PropelException: Unable to execute DELETE statement [DELETE FROM `cart` WHERE cart.ID=:p1]
#1 in /home/voyalux/partenaires/core/vendor/propel/propel/src/Propel/Runtime/ActiveQuery/Criteria.php line 2406

#2 at Criteria->doDelete(object(ConnectionWrapper)) in /home/voyalux/partenaires/core/vendor/propel/propel/src/Propel/Runtime/ActiveQuery/ModelCriteria.php line 1325

#3 at ModelCriteria->delete(object(ConnectionWrapper)) in /home/voyalux/partenaires/core/lib/Thelia/Model/Base/CartQuery.php line 1166

#4 at CartQuery->delete(object(ConnectionWrapper)) in /home/voyalux/partenaires/core/lib/Thelia/Model/Base/Cart.php line 958

#5 at Cart->delete() in /home/voyalux/partenaires/core/lib/Thelia/Model/Cart.php line 82

#6 at Cart->duplicate('be42d6628387e5be81f5cf13c72a7933', null, object(Currency), object(ContainerAwareEventDispatcher)) in /home/voyalux/partenaires/core/lib/Thelia/Action/Cart.php line 428

#7 at Cart->duplicateCart(object(ContainerAwareEventDispatcher), object(Cart)) in /home/voyalux/partenaires/core/lib/Thelia/Action/Cart.php line 370

#8 at Cart->managePersistentCart(object(CartRestoreEvent), 'thelia_cart') in /home/voyalux/partenaires/core/lib/Thelia/Action/Cart.php line 283

#9 at Cart->restoreCurrentCart(object(CartRestoreEvent))

#10 at call_user_func(array(object(Cart), 'restoreCurrentCart'), object(CartRestoreEvent)) in /home/voyalux/partenaires/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php line 164

#11 at EventDispatcher->doDispatch(array(array(object(Cart), 'restoreCurrentCart')), 'cart.restore.current', object(CartRestoreEvent)) in /home/voyalux/partenaires/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php line 53

#12 at EventDispatcher->dispatch('cart.restore.current', object(CartRestoreEvent)) in /home/voyalux/partenaires/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/ContainerAwareEventDispatcher.php line 167

#13 at ContainerAwareEventDispatcher->dispatch('cart.restore.current', object(CartRestoreEvent)) in /home/voyalux/partenaires/core/lib/Thelia/Core/HttpFoundation/Session/Session.php line 220

#14 at Session->getSessionCart(object(ContainerAwareEventDispatcher)) in /home/voyalux/partenaires/local/modules/TheliaSmarty/Template/Plugins/DataAccessFunctions.php line 292

#15 at DataAccessFunctions->cartDataAccess(array('attr' => 'count_item'), object(Smarty_Internal_Template)) in /home/voyalux/partenaires/cache/dev/smarty/compile/e85c3ef214cec38611d882cf1af7592ac6c992c6.file.index.html.php line 295

#16 at content_5527a012ee39d7_63220840(object(Smarty_Internal_Template)) in /home/voyalux/partenaires/core/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php line 188

#17 at Smarty_Internal_TemplateBase->fetch('file:index.html') in /home/voyalux/partenaires/local/modules/TheliaSmarty/Template/SmartyParser.php line 365

#18 at SmartyParser->internalRenderer('file', 'index.html', array(), true) in /home/voyalux/partenaires/local/modules/TheliaSmarty/Template/SmartyParser.php line 389

#19 at SmartyParser->render('index.html') in /home/voyalux/partenaires/core/lib/Thelia/Core/EventListener/ViewListener.php line 72

#20 at ViewListener->onKernelView(object(GetResponseForControllerResultEvent))

#21 at call_user_func(array(object(ViewListener), 'onKernelView'), object(GetResponseForControllerResultEvent)) in /home/voyalux/partenaires/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php line 164

#22 at EventDispatcher->doDispatch(array(array(object(ViewListener), 'beforeKernelView'), array(object(ViewListener), 'onKernelView')), 'kernel.view', object(GetResponseForControllerResultEvent)) in /home/voyalux/partenaires/core/vendor/#1 symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php line 53

#23 at EventDispatcher->dispatch('kernel.view', object(GetResponseForControllerResultEvent)) in /home/voyalux/partenaires/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/ContainerAwareEventDispatcher.php line 167

#24 at ContainerAwareEventDispatcher->dispatch('kernel.view', object(GetResponseForControllerResultEvent)) in /home/voyalux/partenaires/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php line 122

#25 at HttpKernel->handleRaw(object(Request), '1') in /home/voyalux/partenaires/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php line 61

#26 at HttpKernel->handle(object(Request), '1', true) in /home/voyalux/partenaires/core/lib/Thelia/Core/TheliaHttpKernel.php line 78

#27 at TheliaHttpKernel->handle(object(Request), '1', true) in /home/voyalux/partenaires/core/lib/Thelia/Core/Stack/ParamInitMiddleware.php line 86

#28 at ParamInitMiddleware->handle(object(Request), '1', true) in /home/voyalux/partenaires/core/lib/Thelia/Core/Stack/SessionMiddleware.php line 80

#29 at SessionMiddleware->handle(object(Request), '1', true) in /home/voyalux/partenaires/core/vendor/stack/builder/src/Stack/StackedHttpKernel.php line 23

#30 at StackedHttpKernel->handle(object(Request), '1', true) in /home/voyalux/partenaires/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Kernel.php line 187

#31 at Kernel->handle(object(Request)) in /home/voyalux/partenaires/web/index_dev.php line 37

et

2/2 PropelException: Propel\Runtime\ActiveQuery\ModelCriteria::delete is unable to delete.
#1 in /home/voyalux/partenaires/core/vendor/propel/propel/src/Propel/Runtime/ActiveQuery/ModelCriteria.php line 1331

#2 at ModelCriteria->delete(object(ConnectionWrapper)) in /home/voyalux/partenaires/core/lib/Thelia/Model/Base/CartQuery.php line 1166

#3 at CartQuery->delete(object(ConnectionWrapper)) in /home/voyalux/partenaires/core/lib/Thelia/Model/Base/Cart.php line 958

#4 at Cart->delete() in /home/voyalux/partenaires/core/lib/Thelia/Model/Cart.php line 82

#5 at Cart->duplicate('be42d6628387e5be81f5cf13c72a7933', null, object(Currency), object(ContainerAwareEventDispatcher)) in /home/voyalux/partenaires/core/lib/Thelia/Action/Cart.php line 428

#6 at Cart->duplicateCart(object(ContainerAwareEventDispatcher), object(Cart)) in /home/voyalux/partenaires/core/lib/Thelia/Action/Cart.php line 370

#7 at Cart->managePersistentCart(object(CartRestoreEvent), 'thelia_cart') in /home/voyalux/partenaires/core/lib/Thelia/Action/Cart.php line 283

#8 at Cart->restoreCurrentCart(object(CartRestoreEvent))

#9 at call_user_func(array(object(Cart), 'restoreCurrentCart'), object(CartRestoreEvent)) in /home/voyalux/partenaires/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php line 164

#10 at EventDispatcher->doDispatch(array(array(object(Cart), 'restoreCurrentCart')), 'cart.restore.current', object(CartRestoreEvent)) in /home/voyalux/partenaires/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php line 53

#11 at EventDispatcher->dispatch('cart.restore.current', object(CartRestoreEvent)) in /home/voyalux/partenaires/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/ContainerAwareEventDispatcher.php line 167

#12 at ContainerAwareEventDispatcher->dispatch('cart.restore.current', object(CartRestoreEvent)) in /home/voyalux/partenaires/core/lib/Thelia/Core/HttpFoundation/Session/Session.php line 220

#13 at Session->getSessionCart(object(ContainerAwareEventDispatcher)) in /home/voyalux/partenaires/local/modules/TheliaSmarty/Template/Plugins/DataAccessFunctions.php line 292

#14 at DataAccessFunctions->cartDataAccess(array('attr' => 'count_item'), object(Smarty_Internal_Template)) in /home/voyalux/partenaires/cache/dev/smarty/compile/e85c3ef214cec38611d882cf1af7592ac6c992c6.file.index.html.php line 295

#15 at content_5527a012ee39d7_63220840(object(Smarty_Internal_Template)) in /home/voyalux/partenaires/core/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php line 188

#16 at Smarty_Internal_TemplateBase->fetch('file:index.html') in /home/voyalux/partenaires/local/modules/TheliaSmarty/Template/SmartyParser.php line 365

#17 at SmartyParser->internalRenderer('file', 'index.html', array(), true) in /home/voyalux/partenaires/local/modules/TheliaSmarty/Template/SmartyParser.php line 389

#18 at SmartyParser->render('index.html') in /home/voyalux/partenaires/core/lib/Thelia/Core/EventListener/ViewListener.php line 72

#19 at ViewListener->onKernelView(object(GetResponseForControllerResultEvent))

#20 at call_user_func(array(object(ViewListener), 'onKernelView'), object(GetResponseForControllerResultEvent)) in /home/voyalux/partenaires/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php line 164

#21 at EventDispatcher->doDispatch(array(array(object(ViewListener), 'beforeKernelView'), array(object(ViewListener), 'onKernelView')), 'kernel.view', object(GetResponseForControllerResultEvent)) in /home/voyalux/partenaires/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php line 53

#22 at EventDispatcher->dispatch('kernel.view', object(GetResponseForControllerResultEvent)) in /home/voyalux/partenaires/core/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/ContainerAwareEventDispatcher.php line 167

#23 at ContainerAwareEventDispatcher->dispatch('kernel.view', object(GetResponseForControllerResultEvent)) in /home/voyalux/partenaires/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php line 122

#24 at HttpKernel->handleRaw(object(Request), '1') in /home/voyalux/partenaires/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php line 61

#25 at HttpKernel->handle(object(Request), '1', true) in /home/voyalux/partenaires/core/lib/Thelia/Core/TheliaHttpKernel.php line 78

#26 at TheliaHttpKernel->handle(object(Request), '1', true) in /home/voyalux/partenaires/core/lib/Thelia/Core/Stack/ParamInitMiddleware.php line 86

#27 at ParamInitMiddleware->handle(object(Request), '1', true) in /home/voyalux/partenaires/core/lib/Thelia/Core/Stack/SessionMiddleware.php line 80

#28 at SessionMiddleware->handle(object(Request), '1', true) in /home/voyalux/partenaires/core/vendor/stack/builder/src/Stack/StackedHttpKernel.php line 23

#29 at StackedHttpKernel->handle(object(Request), '1', true) in /home/voyalux/partenaires/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Kernel.php line 187

#30 at Kernel->handle(object(Request)) in /home/voyalux/partenaires/web/index_dev.php line 37

C'est grave doc ?

Last edited by rigamarole (10-04-2015 11:23:45)

Offline


Tu utilises quelle version de Thelia ?


OpenStudio Toulouse

Offline


La version 2.1.2.

Offline


Ca ressemble à un bug. Peux-tu lever une issue ?


OpenStudio Toulouse

Offline


Zut, j'avais pas vu ton message.
Je fais ça rapidement.

Merci

Offline


Au fait l'issue à émettre est pour Thelia ou le module Paypal ?