Hey,
I have a question. I need to add the order total and another varible into the url for when they hit the checkout_success page. What file would i make that change in?
Thanks
kamino
Hey,
I have a question. I need to add the order total and another varible into the url for when they hit the checkout_success page. What file would i make that change in?
Thanks
kamino
To add variables to that particular URL, you would edit:
/includes/modules/pages/header_php.php
around line 32:Insert your extra variables inside the '' quotes:Code:zen_redirect(zen_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL'));
Code:zen_redirect(zen_href_link(FILENAME_CHECKOUT_SUCCESS, 'var1=abc&var2=xyz&var3=qrs', 'SSL'));
.
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.
That doesnt work. I do this:
And i still do not get that variable in the url on the final checkout_success page.Code:$total = $_SESSION[order_amount]; zen_redirect(zen_href_link(FILENAME_CHECKOUT_SUCCESS, "ototal=$total", 'SSL'));
Any ideas?
Kamino84
1. which payment module are you using?
2. I see I didn't give a complete path to the file to edit. Which header_php.php file did you edit?
.
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.
I am using the AuthNet Payment Module, and i edited the file in the checkout_success folder within the pages folder.
From Zen Cart v1.3.6:
/includes/modules/pages/checkout_process/header_php.php
line 32:
change this:to this:Code:zen_redirect(zen_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL'));Now place a new order and look at the URL on the checkout_success page.Code:zen_redirect(zen_href_link(FILENAME_CHECKOUT_SUCCESS, "ototal=$order_subtotal&credits=$credits_applied&comm=$commissionable_order", 'SSL'));
.
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.
I did that and nothing shows in the URL but i am currently using Zen Cart 1.3.0.1
Database Patch Level: 1.3.0.1. So i am not sure whats wrong. I did find another post on the boards and installed JAM Affiliate Program and it works great with Zencart. But i still need the vars in the URL for tracking purposes.