osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Buy Now buttons from catagories list is not working,

This is a discussion on Buy Now buttons from catagories list is not working, within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; Hi, the buy it now button for any of my items after you click on one of the catagories list ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 08-23-2005, 01:47 PM
Active Member
 
Join Date: Dec 2003
Posts: 110
Thanks: 0
Thanked 3 Times in 2 Posts
Rep Power: 5
Redeye_Joe
Default Buy Now buttons from catagories list is not working,

Hi, the buy it now button for any of my items after you click on one of the catagories list doesnt work, it only works if you open the item then buy it now, not if you try to buy direct from the catagories page. Here is error that comes up;
1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

delete from customers_wishlist WHERE customers_id=1 AND products_id=

[TEP STOP]


Anyone else having this problem?
Any ideas on how I can fix this? Thanks,

Doug
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
  #2  
Old 08-23-2005, 01:52 PM
Active Member
 
Join Date: Dec 2003
Posts: 110
Thanks: 0
Thanked 3 Times in 2 Posts
Rep Power: 5
Redeye_Joe
Default RE: Buy Now buttons from catagories list is not working,

If logged it this happens, but if you are not logged in, it acts like it adds it to the cart but shows nothing, and $0.00 for total.

think it my have something to do with visitors cart.
Please help!!
Doug
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 08-23-2005, 03:57 PM
Member
 
Join Date: Mar 2003
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ganast
Default RE: Buy Now buttons from catagories list is not working,

Apply patch for bug 11.

http://bugtrack.oscmax.com/view.php?id=11

--gabe
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 08-26-2005, 08:45 PM
New Member
 
Join Date: Aug 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
cleangroove
Default RE: Buy Now buttons from catagories list is not working,

Hello all... and props to all, especially Michael and Gabe for wonderful work and knowledge. I wasn't sure if I should open a new thread on this? I am also experiencing a Buy Now button issue for V2 from the Categories area. I have applied the ID=11 patch. I have tried my own homework on this, but now turned to the forum.

Problem: The link that is offered when rolling over (and of course clicking) the Buy Now button - which excludes the .php file extension from the link.

From this link
http://partsoplenty.com/catalog/index.php?cPath=4

Rolling over the Buy It Now button gives you this link
http://partsoplenty.com/catalog/inde...;products_id=1

Notice the .php is missing after index.

OK, I'm not the PHP expert here but my problem is not PHP, but where to find where this link is generated.

I'm not sure if I broke something applying bug fixes or not. Fix 11 is confirmed correct. I didn't just turn to the forum here. Please just point me in the right direction, if you can. The site is not live yet. This is not priority 1 for you, just for me. Thanks - Cleangroove
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 11-22-2005, 01:35 PM
New Member
 
Join Date: Jun 2005
Posts: 11
Thanks: 0
Thanked 4 Times in 1 Post
Rep Power: 0
sarahjessica is on a distinguished road
Default

The fix for product_listing_col.php does not fix the SQL error because the problem is actually coming from includes/application_top.php - the database query is wrong. To fix it, change this:

Code:
// performed by the 'buy now' button in product listings and review page
      case 'buy_now' :        if (isset($HTTP_GET_VARS['products_id'])) {
// BOF: MOD - Wish List 2.3
            if (tep_session_is_registered('customer_id')) {
              tep_db_query("delete from " . TABLE_WISHLIST . " WHERE customers_id=$customer_id AND products_id=$products_id");
              tep_db_query("delete from " . TABLE_WISHLIST_ATTRIBUTES . " WHERE customers_id=$customer_id AND products_id=$products_id");
            }
// EOF: MOD - Wish List 2.3
to this:

Code:
 case 'buy_now' :        if (isset($HTTP_GET_VARS['products_id'])) {
// BOF: MOD - Wish List 2.3
          if (tep_session_is_registered('customer_id')) {
          tep_db_query("delete from " . TABLE_WISHLIST . " where products_id = '" . $HTTP_GET_VARS['pid'] . "' and customers_id = '" . $customer_id . "'");
                               // Begin Wish List Code w/Attributes
                               tep_db_query("delete from " . TABLE_WISHLIST_ATTRIBUTES . " WHERE customers_id=$customer_id AND products_id='" . $HTTP_GET_VARS['pid']."'");
          }
// EOF: MOD - Wish List 2.3
Hope that helps!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 4 Users Say Thank You to sarahjessica For This Useful Post:
acheca (10-18-2007), chrisbarbers (08-21-2007), lraconsulting (02-11-2007), typhus (06-08-2008)
  #6  
Old 12-11-2005, 08:51 PM
macfionn's Avatar
New Member
 
Join Date: Dec 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
macfionn
Default

Thank you, sarahjessica, this has indeed squelched the error.

Mac
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 09-29-2006, 12:18 PM
New Member
 
Join Date: Sep 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
danhosts
Default

OK, this is an easy fix but why is it not corrected in the download?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 09-29-2006, 02:14 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,489
Thanks: 73
Thanked 334 Times in 313 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

This is fixed in the download. I just downloaded and installed RC3 and the issue is not present.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 12-11-2006, 03:14 AM
Lurker
 
Join Date: Feb 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
go2pub
Default

Quote:
Originally Posted by michael_s View Post
This is fixed in the download. I just downloaded and installed RC3 and the issue is not present.
I downloaded RC3 about 2 weeks ago and had to apply this fix, not sure why but I did and it worked a treat.

Oscmax is a great piece of work BTW, I'm in the process of switching from a standard osc install and so far oscmax is super.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 03-25-2007, 11:21 AM
New Member
 
Join Date: Dec 2006
Location: Sweden
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Pivkhan is on a distinguished road
Default Re: Buy Now buttons from catagories list is not working,

I'm having a simular problem. The Buy now button doesn't do anything in IE but works fine in Firefox. The fixes mentioned above are all there and the adress it points to looks right. I have several other buttons not working in IE as well so I'm thinking that some global file is the problem here. any ideas anyone?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
catagories & products HELP!!! krystaleyes osCMax v2 Installation issues 0 11-11-2005 11:44 AM
Cart Buttons and check out not working misersmith osCommerce 2.2 Installation Help 2 06-18-2005 10:12 AM
Change the number of Catagories Milmod osCommerce 2.2 Modification Help 4 03-15-2005 12:19 PM
Listing of Catagories Milmod osCommerce 2.2 Modification Help 5 02-28-2005 05:44 PM
Help - Catagories Menu Box Using Different Colors smf osCommerce 2.2 Modification Help 0 05-14-2003 04:07 PM


All times are GMT -8. The time now is 09:46 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax