Forums / General Questions / checkout success tag

checkout success tag

Locked

Started by bebijuteria on 11 Jul 2008, 10:42 AM · Views: 3,827

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
11 Jul 2008, 10:42 AM
#1
bebijuteria avatar

bebijuteria

Zen Follower

Join Date:
Feb 2006
Posts:
124
Plugin Contributions:
0

checkout success tag

Can you help me with this:

I need to put a tag in the checkout success page with this information:

<img src="http://action.metaffiliation.com/suivi.php?mclic=S419071011&argmon=XXX&argann=XXX" width="1" height="1" border="0">

The argann=XXX will be number id of the order
The argmon=XXX will be the price of the order without taxes and shipping.

11 Jul 2008, 4:00 PM
#2
bebijuteria avatar

bebijuteria

Zen Follower

Join Date:
Feb 2006
Posts:
124
Plugin Contributions:
0

Re: checkout success tag

Any one can tell me how i can do that?

13 Jul 2008, 12:32 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: checkout success tag

The following variables are available on the checkout_success page. The first two are likely what you're after:

  $order_summary['order_number'] 
  $order_summary['order_subtotal'] 
  $order_summary['credits_applied']
  $order_summary['order_total'] 
  $order_summary['commissionable_order'] 
  $order_summary['commissionable_order_formatted'] 
  $order_summary['coupon_code'] 

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

14 Jul 2008, 9:53 PM
#4
bebijuteria avatar

bebijuteria

Zen Follower

Join Date:
Feb 2006
Posts:
124
Plugin Contributions:
0

Re: checkout success tag

And the page i have to change is this?

/includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_success_default.php

15 Jul 2008, 2:47 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: checkout success tag

Yes, you could put it on your tpl_checkout_success_default.php page.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

15 Jul 2008, 4:13 PM
#6
bebijuteria avatar

bebijuteria

Zen Follower

Join Date:
Feb 2006
Posts:
124
Plugin Contributions:
0

Re: checkout success tag

Something like this:

/**

  • The following creates a list of checkboxes for the customer to select if they wish to be included in product-notification

  • announcements related to products they've just purchased.

**/

if ($flag_show_products_notification == true) {

$order_summary['order_number']
$order_summary['order_subtotal']
$order_summary['credits_applied']
$order_summary['order_total']
$order_summary['commissionable_order']
$order_summary['commissionable_order_formatted']
$order_summary['coupon_code']
?>

<img src="http://action.metaffiliation.com/suivi.php?mclic=S419071011&argmon=<?php echo order_subtotal; ?>&argann=<?php echo order_number; ?>" width="1" height="1" border="0"> <fieldset id="csNotifications">
15 Jul 2008, 6:10 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: checkout success tag

No, use the full variable name, as shown:```
<img src="http://action.metaffiliation.com/suivi.php?mclic=S419071011&argmon=<?php echo [B]$order_summary['order_subtotal'][/B] ; ?>&argann=<?php echo [B]$order_summary['order_number'][/B]; ?>" width="1" height="1" border="0">

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

15 Jul 2008, 10:18 PM
#8
bebijuteria avatar

bebijuteria

Zen Follower

Join Date:
Feb 2006
Posts:
124
Plugin Contributions:
0

Re: checkout success tag

Ok, and i only need to put this line?

16 Jul 2008, 12:11 AM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: checkout success tag

bebijuteria:

Ok, and i only need to put this line?

If that's the only line they gave you to put, then yes.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

16 Jul 2008, 7:40 AM
#10
bebijuteria avatar

bebijuteria

Zen Follower

Join Date:
Feb 2006
Posts:
124
Plugin Contributions:
0

Re: checkout success tag

And this part of the code, is not need?

$order_summary['order_number']
$order_summary['order_subtotal']
$order_summary['credits_applied']
$order_summary['order_total']
$order_summary['commissionable_order']
$order_summary['commissionable_order_formatted']
$order_summary['coupon_code']

16 Jul 2008, 3:42 PM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: checkout success tag

bebijuteria:

And this part of the code, is not need?

$order_summary['order_number']
$order_summary['order_subtotal']
$order_summary['credits_applied']
$order_summary['order_total']
$order_summary['commissionable_order']
$order_summary['commissionable_order_formatted']
$order_summary['coupon_code']

That is just a list of variables available to the checkout-success page template in case you wanted to display/use those values someplace ... such as to send the order number and order total to the screen or to another system such as via your image beacon posted earlier.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

20 Jul 2008, 10:09 AM
#12
bebijuteria avatar

bebijuteria

Zen Follower

Join Date:
Feb 2006
Posts:
124
Plugin Contributions:
0

Re: checkout success tag

Many thanks works fine.

31 Jul 2008, 4:31 AM
#13
vivaxone avatar

vivaxone

New Zenner

Join Date:
Jul 2008
Posts:
9
Plugin Contributions:
0

Re: checkout success tag

i tried to get the $coupon_code to show but it doesnt show, i am doing a simple

<?php echo $coupon_code; ?> i am using version 1.3.7 any help please.
9 Apr 2009, 9:48 AM
#14
bebijuteria avatar

bebijuteria

Zen Follower

Join Date:
Feb 2006
Posts:
124
Plugin Contributions:
0

Re: checkout success tag

I have used this TAG for some time and everything is ok. But now i have a problem

Can you help me with this, please.

I have one tag on this page tpl_checkout_success_default.php that is:

<img src="http://action.metaffiliation.com/suivi.php?mclic=S41CC81015&argmon=<?php echo $order_summary['order_subtotal'] ; ?>&argann=<?php echo $order_summary['order_number']; ?>" width="1" height="1" border="0">

When the payment is "Wire Transfer" or "Debit Card" the Tag get the ['order_subtotal'] and ['order_number'], but when the payment is made by Paypal this two variables don´t get nothing.

I want to know when it pass by the paypal server the variables are different?

9 Apr 2009, 7:50 PM
#15
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: checkout success tag

That's because the order information isn't available on the checkout-success page when using the PayPal IPN(Standard) module.
If you want it to work as you described, use PayPal Express Checkout instead.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.