Jump to content

[Paypal] Affichage de l'ID commande et montant transaction


BonCev

Recommended Posts

Bonjour
 
Après un paiement paypal, le client arrive sur une page de confirmation où je souhaite récupérer et afficher le montant et l'ID commande et la devise.
 
 
url affichée est :
//monsite.com/fr/module/paypal/submit?key=123456789d4443a03efa4&id_module=112&id_cart=27606&id_order=8973

Et le texte qui s'affiche provient du fichier /modules/paypal/views/templates/hook/confirmation.tpl
"Votre commande sur monsite est bien enregistrée. Vous avez choisi de payer avec PayPal...."
 
 
Avec la commande {debug} je ne vois aucune variable qui m'interesse.

C'est sur que je peux récupérer l'ID dans l'url avec smarty.get mais pour les 2 autres paramètres comment faire ?


 Normalement ces infos sont censés s'affichées mais la variable {$order} n'est pas définie... fichier modules/paypal/views/template/front/order-confirmation.tpl
 

{if $order}
	<p>{l s='Total of the transaction (taxes incl.) :' mod='paypal'} <span class="bold">{$price|escape:'htmlall':'UTF-8'}</span></p>
	<p>{l s='Your order ID is :' mod='paypal'} 
		<span class="bold">
		{if $smarty.const._PS_VERSION_ >= 1.5}
			{if isset($reference_order)}
				{$reference_order|escape:'htmlall':'UTF-8'}
			{else}
				{$order.id_order|intval}
			{/if}
		{else}
			{$order.id_order|intval}
		{/if}
		</span>
	</p>
	<p>{l s='Your PayPal transaction ID is :' mod='paypal'} <span class="bold">{$order.id_transaction|escape:'htmlall':'UTF-8'}</span></p>
	{/if}

-------------------------------
PS 1.6
Paypal 3.8.1

Edited by BonCev (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...