View Full Version : Problem With Shopping Cart
Snipe
03-26-2005, 10:38 AM
I have added some new items to my shopping cart and you can view them on the site but when you try to add them to the cart you get this.. ILLEGAL PRODUCT ADDITION DETECTED.
Anyone have any Ideas..??
demostorm
03-26-2005, 07:28 PM
I have added some new items to my shopping cart and you can view them on the site but when you try to add them to the cart you get this.. ILLEGAL PRODUCT ADDITION DETECTED.
Anyone have any Ideas..??
I vaguely remember getting an error llike that once but cannot fully recollect the problem. It was either that I had two products entries with identical names or I had failed to fill in a required field. I do remember that it required no correction in the script itself. Wish I could be more specific but I never had that as a recurring problem.
Snipe
03-27-2005, 10:26 AM
I finally found the problem in the price variation, In the Variant box's you cannot put in parentheses .... :confused:
CEOSteve
04-04-2005, 10:23 AM
I finally found the problem in the price variation, In the Variant box's you cannot put in parentheses .... :confused:
I too am getting ILLEGAL PRODUCT ADDITION DETECTED. when a user tries to checkout. BUT, I have only one product. There are NO variations, and no odd ascii characters in the name or anythere else in the description. This only happens when I envoke the SSL certificate. If I do not use SSL, the checkout work fine. Now there's a head scratcher! :confused: Anyone in SohoLaunch Land have any ideas?
Roger
04-25-2005, 07:40 PM
I too am getting ILLEGAL PRODUCT ADDITION DETECTED. when a user tries to checkout. BUT, I have only one product. There are NO variations, and no odd ascii characters in the name or anythere else in the description. This only happens when I envoke the SSL certificate. If I do not use SSL, the checkout work fine. Now there's a head scratcher! :confused: Anyone in SohoLaunch Land have any ideas?
Did you ever solve this? If so please explain as I am experiencing this problem as well.
CEOSteve
04-25-2005, 07:56 PM
Did you ever solve this? If so please explain as I am experiencing this problem as well.
Actually I just am relying on the secure connection and transaction provided by PayPal. When my customers go there, they are sure their transaction is secure. This doesn't help with the initial collection of customer info at my site though. Still smells like a bug to me. :mad:
Joe Lain
04-26-2005, 09:55 AM
Did you ever solve this? If so please explain as I am experiencing this problem as well.
The quotation mark was creating a problem. If you get this problem in the future, check to see if there are any characters in any of the fields that could be causing the system to give this error.
Added lines 87-92 to products.php. This replaces " with in.
Download the attached products.php and upload it to the folder sohoadmin\program\modules\mods_full\shopping_cart\ to overwrite the current products.php.
jcnelson
08-13-2005, 10:01 PM
We are having this problem as well, however it shows quite a bit more than ILLEGAL PRODUCT ADDITION DETECTED.
This happens only when you choose continue shopping, then add another product and try to checkout.
Here is the error message we get:
Notice: Undefined index: docroot_path in /home/username/public_html/shopping/pgm-checkout.php on line 38
Warning: main(/sohoadmin/program/includes/shared_functions.php): failed to open stream: No such file or directory in /home/username/public_html/shopping/pgm-checkout.php on line 39
Warning: main(/sohoadmin/program/includes/shared_functions.php): failed to open stream: No such file or directory in /home/username/public_html/shopping/pgm-checkout.php on line 39
Warning: main(): Failed opening '/sohoadmin/program/includes/shared_functions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/username/public_html/shopping/pgm-checkout.php on line 39
Notice: Undefined index: docroot_path in /home/username/public_html/shopping/pgm-cart_config.php on line 33
Warning: main(/sohoadmin/includes/config.php): failed to open stream: No such file or directory in /home/username/public_html/shopping/pgm-cart_config.php on line 33
Warning: main(/sohoadmin/includes/config.php): failed to open stream: No such file or directory in /home/username/public_html/shopping/pgm-cart_config.php on line 33
Warning: main(): Failed opening '/sohoadmin/includes/config.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/username/public_html/shopping/pgm-cart_config.php on line 33
Notice: Undefined index: docroot_path in /home/username/public_html/shopping/pgm-cart_config.php on line 34
Warning: main(/sohoadmin/includes/db_connect.php): failed to open stream: No such file or directory in /home/username/public_html/shopping/pgm-cart_config.php on line 34
Warning: main(/sohoadmin/includes/db_connect.php): failed to open stream: No such file or directory in /home/username/public_html/shopping/pgm-cart_config.php on line 34
Warning: main(): Failed opening '/sohoadmin/includes/db_connect.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/username/public_html/shopping/pgm-cart_config.php on line 34
Notice: Undefined variable: this_ip in /home/username/public_html/shopping/pgm-checkout.php on line 117
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/username/public_html/shopping/pgm-checkout.php on line 152
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/username/public_html/shopping/pgm-checkout.php on line 161
Notice: Use of undefined constant PROD_UNITPRICE - assumed 'PROD_UNITPRICE' in /home/username/public_html/shopping/pgm-checkout.php on line 179
Notice: Use of undefined constant PROD_UNITPRICE - assumed 'PROD_UNITPRICE' in /home/username/public_html/shopping/pgm-checkout.php on line 180
Notice: Undefined offset: 2 in /home/username/public_html/shopping/pgm-checkout.php on line 149
ILLEGAL PRODUCT ADDITION DETECTED.
jcnelson
08-15-2005, 02:38 PM
Just a quick addition, we also do not have any characters in the variants boxes. This also only shows when using ssl.
kcjproductions
08-26-2005, 12:14 PM
I struggled for a long time trying to figure out how to properly use an SSL without getting errors. Here is how it is done:
1 - create a notepad file with the following coding:
// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
define('HTTP_SERVER', 'http://www.yourdomain.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://yourdomain.com'); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'www.yourdomain.com');
define('HTTPS_COOKIE_DOMAIN', 'yourdomain.com');
define('HTTP_COOKIE_PATH', '/ssl certificate folder name/');
define('HTTPS_COOKIE_PATH', '/ssl certificate folder name/');
define('DIR_WS_HTTP_CATALOG', '/ssl certificate folder name/');
define('DIR_WS_HTTPS_CATALOG', '/ssl certificate folder name/');
---------------- NOTES -----------------
replace "yourdomain.com" with your website name.
replace "/ssl certificate folder name/" with the folder name where your ssl certificate is located on the server.
2 - save the file with the name "configure.txt"
3 - rename the file to "configure.php"
4 - FTP the file to the root directory of your domain name (in your FTP program when you log into your website it is the first folder with this symbol "/")
5 - In your SOHOadmin under -->Shopping Cart --> Payment Options:
Under 6. I am using an SSL Certificate with my web site and when going to the checkout the following https:// call should be made to the scripts to invoke the SSL Cert.
type the following:
"https://yourdomain.com (replacing "yourdomain.com" with your website name.)
6 - Save changes.
This should do the trick.
You can view a working version of this at the website I currently have under construction at www.demoblowout.com
Hope this helps. I spent a lot of time in this forum looking to do just this and found nothing so I figured I'd come back and let all of you know, now that I figured it out on my own.
vBulletin® v3.7.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.