Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Buy Now button wipes out Shopping Cart


adodd

Recommended Posts

Posted

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

Posted

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.

Posted

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!

Posted

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.

Posted
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 &amp 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.

Posted
Thank you for your replies Satish! I guess I don't see in the link I provided where &amp 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 &amp with just &

 

$link = str_replace('&amp', '&', $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.

Posted
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 &amp with just &

 

$link = str_replace('&amp', '&', $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.

Archived

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

×
×
  • Create New...