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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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 |
| Sponsored Links | ||
| ||
| |
|
#2
| |||
| |||
| 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 |
|
#3
| |||
| |||
| |
|
#4
| |||
| |||
| 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 |
|
#5
| |||
| |||
| 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
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
|
| The Following 4 Users Say Thank You to sarahjessica For This Useful Post: | ||
|
#6
| ||||
| ||||
| Thank you, sarahjessica, this has indeed squelched the error. Mac |
|
#7
| |||
| |||
| OK, this is an easy fix but why is it not corrected in the download? |
|
#8
| ||||
| ||||
| This is fixed in the download. I just downloaded and installed RC3 and the issue is not present.
__________________ Michael Sasek osCMax Developer
|
|
#9
| |||
| |||
| Quote:
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. |
|
#10
| |||
| |||
| 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? |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| 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 |