| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
order confirmation: insert code | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
order confirmation: insert code
Hi
I need some help to put a small php script into the order process. Once an order is placed and the confirmation page is shown with the invoice (cart.php?mode=order_message&orderids=XXX), I would like to run a small php script. (this script will create an account on our FTP server). I don▓t find where to insert the portion of code. Witch is the best file for this ? Thanks
__________________
version 4.4.4 version 4.5.1 |
|||||||
#2
|
|||||||||
|
|||||||||
Re: order confirmation: insert code
Look in /include/func/func.order.php
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#3
|
|||||||
|
|||||||
Re: order confirmation: insert code
Thanks, I've tried to put the script in func_complete_order put it doesn't work.
Any idea ?
__________________
version 4.4.4 version 4.5.1 |
|||||||
#4
|
|||||||||
|
|||||||||
Re: order confirmation: insert code
Order complete is for orders that have been shipped. Look in func_process_order()
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#5
|
|||||||||
|
|||||||||
Re: order confirmation: insert code
Look in the script that actually shows the order confirmation message. Doing this is order status change or order process or order placement... will re-run the code every time one of them is run.
The order_message portion is either in cart.php or include/checkout_init.php. This is the code that runs on successful order placement and shows the confirmation - so it is run once
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#6
|
|||||||||
|
|||||||||
Re: order confirmation: insert code
Very cool Steve, I've always done it the other way. I like this method much better. One question, what about manually setting the order to processed? Will order confirmation run in that case?
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#7
|
|||||||||
|
|||||||||
Re: order confirmation: insert code
mode=order_message runs only after order placement and if order was successfully placed - regardless if it was paid for, processed or queued.
Changing order status from admin does not run this code
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#8
|
|||||||||
|
|||||||||
Re: order confirmation: insert code
So this is not a great solution if you want the function to run after an order was paid for or processed. But if it is based on order placement it sounds perfect! Thanks Steve.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#9
|
|||||||||
|
|||||||||
Re: order confirmation: insert code
The original questions was for
Quote:
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#10
|
|||||||||
|
|||||||||
Re: order confirmation: insert code
Has anyone had luck placing the adwords conversion tracker in either of the above templates?
__________________
X-Cart Version: 4.5.4 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|