Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cannot 'Add To Cart'


cburton71

Recommended Posts

Strangest thing... I've been working with osCommerce sites off and on for the past 4 years and never really had any problems that stumped me like this one. I just installed a new copy of osCommerce 2.2 Milestone 2 and everything went fine (as usual with osCommerce), but now when I click on the 'Add to Cart' button in product_info.php I get redirected to the advanced search page with a warning error 'At least one of the fields in the search form must be entered.'. Nothing gets added to the cart. I can go in by category and use the 'Buy Now' link and eveything gets added to the cart fine. It's only with the product_info.php page. I've checked to see if there was a filename mismatch, but FILENAME_PRODUCT_INFO is set to product_info.php. I don't see any problems in the logs that would point me in the right direction to correct this.

 

Any help with this would be appreciated.

 

I'm running PHP 4.3.10/MySQL 3.23.58 on a Fedora server w/ Apache 2.0.51

Link to comment
Share on other sites

Wonderful, now the cart contents are not behaving themselves either. When I am able to add an item to the cart I can't remove it. Check the box to remove the product and click the 'Update' button, but again I get redirected to the advanced search page! It looks as though none of the values are being passed properly; the URL string ends up with:

advanced_search.php?cart_delete=Array&cart_quantity=Array&products_id=Array

Link to comment
Share on other sites

  • 1 year later...
Wonderful, now the cart contents are not behaving themselves either. When I am able to add an item to the cart I can't remove it. Check the box to remove the product and click the 'Update' button, but again I get redirected to the advanced search page! It looks as though none of the values are being passed properly; the URL string ends up with:

advanced_search.php?cart_delete=Array&cart_quantity=Array&products_id=Array

 

 

I have the same problem, please help.

 

David

Ebaby.ca - Toothbrush.ca - Halitosis.ca - Templatemonster.ca - Adultfriendfinders.ca

Link to comment
Share on other sites

Backup, BACKUP, BACKUP your database and re-install if you don't have any contribs installed. If you do have contribs installed, restore files until you find the problem.

 

As for me, I have a whole list of renamed files. For example, if I work work on product_info.php right now, before uploading the new file I will rename the current file on the server to product_info.php.08122006-0253a so I can back track if needed.

 

Also be sure and put // comments in your files when you work on them so you can figure out what addons you have installed as you go. E.G.

// 12 AUG 2006 0253A - Installed Country State Selector -- JHS

BACKUP your current files before editing. Did I mention to BACKUP your current files, first?

 

"I'm not a hero, I'm a firefighter; it is my job to save lives. I'm a Jesus Christ Firefighter saving souls from the flames!"

 

Installed contribs: Almost XP Buttons *** Attribute Sort *** Auto Thumbnail Change *** Column Product Listing (for SPPC v4.0) *** Contact Us Registered *** Country-State Selector 1.3.3J *** CC# Db Mask 1.3 *** Email Order Clickable Link *** Extra Images *** Linkpoint API CVM *** Loginbox Best *** New Spiders *** New Attrib Mgr v.5.0 w/ New Attrib Include *** Multi Product Update *** MySQL Cron *** Pricing per Category *** Product Listing in Columns v2.2 [later upgraded to CPL(SPPC)] *** Product Sort v1.6 *** Seperate Pricing Per Customer v4.15 *** Simple Down for Maintenance [Gokou] *** Ultimate_SEO_URLs_v2.2.2 *** UPS Worldship Export 1.3 *** Welcome Email username & password

Link to comment
Share on other sites

close your forms properly with </form> at the right position

 

Thanks a lot. It turned out, as you said, that a </form> tag was missing in my header search box. It's fixed.

 

Take care,

 

Belz.

Ebaby.ca - Toothbrush.ca - Halitosis.ca - Templatemonster.ca - Adultfriendfinders.ca

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...