adodd Posted January 27, 2007 Posted January 27, 2007 I have installed several contributions today. All was well (sts_templates,zapper, header control tags) until I added Ultimate SEO. I had some trouble with the htaccess file, but got past that. Then I noticed that I could not use the Buy Now button on the product listing page. If I click it, it clears any items already in my shopping cart or just refreshes the page and does not do anything. All other pages seem to work fine. If I click on the detail of a product I can add items to the cart. I have searched the forums for over an hour trying to find a solution, but nothing seems to fit this problem. Please bare with the generic look. I had to convert this cart from Able Commerce in a hurry after the server crashed and my host took off for Bermuda. Here is the link, any other feedback would be greatly appreciated. http://www.mainattract.com
satish Posted January 27, 2007 Posted January 27, 2007 Your site is down so cant comment. You need to check whether sessio Id is getting lost. The other way to check is set force cookies to true and if the cart works then its for sure that our session Ids are getting lost or in some pages the links are not handled the way osc links should be. Satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does.
adodd Posted January 28, 2007 Author Posted January 28, 2007 I tried forcing cookies but neither of my browsers would let me add anything to the cart. Both IE and FireFox have cookies enabled. I could really use some help on this. I love the contributions I have added and hate to think I would have to remove any of them. I just know this is something stupid. Anybody take a look for me?? Thanks so much!
adodd Posted January 28, 2007 Author Posted January 28, 2007 Here is the link that the Buy it Now button is using : http://www.mainattract.com /collectibles-willow-tree-angel-collection-c-54_427.html?products_id=2847&action=buy_now&sort=2a&osCsid=849a2c36b48c36f8c16942d32bffd321 Does that seem right? I also tried to turn on the c-path, when I did that it not only wouldn't let me use the Buy It Now button, but I also could not use Add to Cart button. I changed it back.
satish Posted January 29, 2007 Posted January 29, 2007 http://www.mainattract.com/bestemor-grandm...c7f08996ca23a20 you need to take care that & is only & this can be done by placing some code in href() function. Satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does.
adodd Posted January 29, 2007 Author Posted January 29, 2007 http://www.mainattract.com/bestemor-grandm...c7f08996ca23a20 you need to take care that & is only & this can be done by placing some code in href() function. Satish Thank you for your replies Satish! I guess I don't see in the link I provided where & is being used. Were you able to access my site today? If so, I can turn the Buy Now buttons back on for a while so you can take a look at it.
satish Posted January 30, 2007 Posted January 30, 2007 Thank you for your replies Satish! I guess I don't see in the link I provided where & is being used. Were you able to access my site today? If so, I can turn the Buy Now buttons back on for a while so you can take a look at it. in Your includes/functions/html_output.php if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) { while (strstr($link, '&&')) $link = str_replace('&&', '&', $link); $link = str_replace('?', '/', $link); $link = str_replace('&', '/', $link); $link = str_replace('=', '/', $link); $separator = '?'; } if (isset($_sid)) { $link .= $separator . tep_output_string($_sid); } replace with if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) { while (strstr($link, '&&')) $link = str_replace('&&', '&', $link); $link = str_replace('?', '/', $link); $link = str_replace('&', '/', $link); $link = str_replace('=', '/', $link); $separator = '?'; } //The line below will get rid of & with just & $link = str_replace('&', '&', $link); if (isset($_sid)) { $link .= $separator . tep_output_string($_sid); } Satish Mantri Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does.
adodd Posted January 30, 2007 Author Posted January 30, 2007 in Your includes/functions/html_output.php if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) { while (strstr($link, '&&')) $link = str_replace('&&', '&', $link); $link = str_replace('?', '/', $link); $link = str_replace('&', '/', $link); $link = str_replace('=', '/', $link); $separator = '?'; } if (isset($_sid)) { $link .= $separator . tep_output_string($_sid); } replace with if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) { while (strstr($link, '&&')) $link = str_replace('&&', '&', $link); $link = str_replace('?', '/', $link); $link = str_replace('&', '/', $link); $link = str_replace('=', '/', $link); $separator = '?'; } //The line below will get rid of & with just & $link = str_replace('&', '&', $link); if (isset($_sid)) { $link .= $separator . tep_output_string($_sid); } Satish Mantri Satish, I really appreciate you looking at this for me. Unfortunately, I just tried the code you suggested and it did not make a difference. Any other ideas? I have turned off the Buy Now feature so customers won't get scared away, but I would really like to be able to use it.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.