2009/09/05

PHP/HTML Input Name Limit

Filed under: osCommerce Coding — Tags: , , — eCartz @ 15:25  Share/Bookmark  Delicious  StumbleUpon  WordPress  Twitter  LinkedIn

Worked through a weird bug the other day.  A gaming computer store has products with lots of attributes — as many as fifty.  Since osCommerce stores the attributes with the product ID, the result is to make the id array that holds the attributes on the shopping cart page have exceptionally large input names.  If the name gets too large (I didn’t test it exactly, but more than two hundred characters was all right and three hundred some broke it), it gets silently dropped.  (more…)

2009/08/31

Check Referrer Sessions Option

Filed under: osCommerce Coding,osCommerce Community — Tags: , , , — eCartz @ 20:16  Share/Bookmark  Delicious  StumbleUpon  WordPress  Twitter  LinkedIn

A situation that was mentioned on the osCommerce forums recently started me thinking.  Currently, if someone has cookies disabled, then the osCsid (the osCommerce session ID) appears in the URL.  If such a person logs in and then emails a link to someone else, the osCsid will be included in that URL (unless they remove [...]

2009/08/21

osCommerce Image Uploads

Filed under: osCommerce Coding — Tags: , , , — eCartz @ 16:16  Share/Bookmark  Delicious  StumbleUpon  WordPress  Twitter  LinkedIn

Recently, someone posted in the osCommerce forums looking for a way to upload product images into folders.  I found a post that I made six years ago:  Setting upload image destination in categories.php, Admin change.  Surprisingly, the post was remarkably accurate with the more modern osCommerce RC2a, even the line numbers were only a couple [...]

Powered by WordPress