Hello,
I'm not sure if you guys still respond to support inquiries but I am in a pinch and would greatly appreciate a moment of your time. I am attempting to integrate some AJAX in with MXKART. Basically what I am trying to do is add an item to the kart using AJAX and PHP.
For example, let's say I am listing 10 products on a page. I capture the URL that you would click on and store it as a variable. Example:
The traditional HTML that provides the link to add the item to the kart:
<a href="MXKart/addToKart.php?MXKsessi HERE</a>
A simple hidden form element with the value of the link set:
<input type="hidden" name="linker" id="linker" value="MXKart/addToKart.php?MXKsessi />
What I am attempting to do with this value is in turn pass it to a php script which curls this link (in an effort to add the item to the cart). I understand that the there are triggers inside of addToKart.php which handle the redirect after the "add to kart" transaction has been processed. Is there any way to disable the redirect (and any other not needed triggers) and just access the "insertion" action/code?
If the redirect cannot be disabled, is there any other way to emulate a user actually clicking on the link to add an item to their cart (either via curl or any alternate method) without them actually clicking on it?
When I simply copy the value of the link and paste it on the end of my URL and attempt to open it with no referrer it simply gives me a directory listing of the MXKART folder (server runs FreeBSD). I've attempted to emulate a referrer (along with other header information) inside of my curl request but it doesn't seem to be acceptable. I would like to be able to isolate the insertion code so it can be reused without involving a separate page load. Thank you so much in advance - I really appreciate it!!
GG