Third Party Custom Handler Script and AbleCommerce GOLD
Posted: Mon Oct 21, 2013 12:09 pm
Our local order processing system interfaces with AbleCommerce through a custom handler which (in version 7.x) resides in the ClientAPI directory. This integration script allows for order downloads, inventory management and other tasks through HTML GET requests.
This integration script will not work in AbleCommerce GOLD unless it is placed in Mobile directory. If it resides in any other locations (including the original ClientAPI directory), AbleCommerce rewrites the raw HTML header, removing all GET data and changing the URL to the mobile directory. For example:
www.siteroot.com/ClientAPI/scriptname.a ... othervalue
becomes:
www.siteroot.com/Mobile/scriptname.ashx
I am assuming the default handler for AbleCommerce GOLD is responsible for changing the URL. When the script resides in the Mobile directory, it URL is left alone and the script works normally.
This isn't a huge deal, but I would prefer to keep third party integration scripts separated from normal AbleCommerce code. It doesn't make sense to have this script sitting in the Mobile directory.
Is there a way I can tell AbleCommerce GOLD's default handler to ignore this script?
Thank you for your help!
This integration script will not work in AbleCommerce GOLD unless it is placed in Mobile directory. If it resides in any other locations (including the original ClientAPI directory), AbleCommerce rewrites the raw HTML header, removing all GET data and changing the URL to the mobile directory. For example:
www.siteroot.com/ClientAPI/scriptname.a ... othervalue
becomes:
www.siteroot.com/Mobile/scriptname.ashx
I am assuming the default handler for AbleCommerce GOLD is responsible for changing the URL. When the script resides in the Mobile directory, it URL is left alone and the script works normally.
This isn't a huge deal, but I would prefer to keep third party integration scripts separated from normal AbleCommerce code. It doesn't make sense to have this script sitting in the Mobile directory.
Is there a way I can tell AbleCommerce GOLD's default handler to ignore this script?
Thank you for your help!