-
- 7,075 Posts
Nice concept ! Had never heard of it... thanks for bringing FoxyCart to MODx, Brett
I’ll have to check how things work for European customers though, did not see anything about that...
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
-
- 7,075 Posts
Ok Brett, nice to know : will do !
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
-
- 40 Posts
Hey All,
Since the XML is generated from a link, I’d suggest escaping the input to prevent sql inject attack.
Just modify each line to include the modx escape function:
Was: $code = $detail->product_code[0]->tagData;
Now: $code = $modx->db->escape($detail->product_code[0]->tagData);
Unless this is being handled on the foxycart side?
-
- 40 Posts
The Logging file can quickly get bloated, so I recommend that the code be updated to delete the file before it is created. Here’s my new version:
// ===================================================================================================
// WRITE THE RESULTS TO A FILE ON YOUR SERVER
// ===================================================================================================
if ($myFile) {
if (file_exists($myFile)) {
unlink($myFile);
}
$spacer = "===============\n";
$date = date("Y-m-d H:i:s") . "\n";
$fh = fopen($myFile, ’a’) or die("can’t open file");
fwrite($fh, $spacer);
fwrite($fh, $order_record);
fwrite($fh, $date);
fwrite($fh, $spacer);
fwrite($fh, $FoxyData_decrypted);
fclose($fh);
}
-
- 372 Posts
The XML duplication bug (it repeats for times) is subtracting four times as much inventory.
Is there some way to modify the snippet to only process the first xml?
DropboxUploader -- Upload files to a Dropbox account.
DIG -- Dynamic Image Generator
gus -- Google URL Shortener
makeQR -- Uses google chart api to make QR codes.
MODxTweeter -- Update your twitter status on publish.
-
- 361 Posts
The XML getting sent 4 times should be fixed at this point. Let me know if it’s still sending extra times for you. Sorry about that.
-
- 217 Posts
I was just wondering before I purchase a Foxycart subscription, how easy it would be to create a photography website using maxigallery and integrate foxycart to create an image purchasing system.
I tried to enter this query in the Foxycart forum, but hit a load of blank walls. It would be useful if prospective customers could ask queries without going through a lengthy membership process.
Any help would be appreciated.