Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Really Weird Problem With Buy It Now Button


comicsigotem

Recommended Posts

Posted

Okay, first off, I'm talking about the Buy It Now button that's next to the products when you see all the products in a certain category. For some reason, when I left-click on the button, nothing happens. No click from my computer telling me I clicked on a link, no loading of the next page, nothing. However, if I right-click on the link and select open link, the button works just fine. Anyone know what's wrong?

Posted

Can you post a link to the site?

:unsure:

 

Looking at the HTML source should provide a clue, if not the answer.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

I have clicked on "add to Cart" buttons in the Buy Now column on several pages. They all work.

 

Try it from another computer.

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted

The button works on some pages for me, but not others:

 

Doesn't work here:

 

http://www.comicsigotem.com/shop/index.php?cPath=52_57

 

Does here:

 

http://www.comicsigotem.com/shop/product_info.php?cPath=52_57&products_id=77

 

Will have to look at HTML source closer.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
I have clicked on "add to Cart" buttons in the Buy Now column on several pages. They all work.

 

Try it from another computer.

 

From the categories pages like Marvel Comics or DC Comics? I know it works when you go to a specific product's page. I just don't know why it's not working in the category pages.

Posted

Guess it is my lucky night.

 

Went to

 

http://www.comicsigotem.com/shop/index.php?cPath=52_57

 

Add to Cart worked and displayed cart contents on

 

http://www.comicsigotem.com/shop/shopping_cart.php?sort=2a

 

Checking for dns problems now

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted

CheckDNS.NET is testing comicsigotem.com

 

 

CheckDNS.NET is asking root servers about authoritative NS for domain

Got DNS list for 'comicsigotem.com' from e.gtld-servers.net

Found NS record: ns1.dnsjunction.com[203.22.204.101], was resolved to IP address by e.gtld-servers.net

Found NS record: ns2.dnsjunction.com[216.193.201.105], was resolved to IP address by e.gtld-servers.net

Domain has 2 DNS server(s)

 

CheckDNS.NET is verifying if NS are alive

DNS server ns1.dnsjunction.com[203.22.204.101] is alive and authoritative for domain comicsigotem.com

DNS server ns2.dnsjunction.com[216.193.201.105] is alive and authoritative for domain comicsigotem.com

2 server(s) are alive

 

CheckDNS.NET checks if all NS have the same version

All 2 your servers have the same zone version 1193265614

 

CheckDNS.NET verifies www servers

Checking HTTP server www.comicsigotem.com [203.22.204.96]

HTTP server www.comicsigotem.com[203.22.204.96] answers on port 80

Received: HTTP/1.1 302 Found (Server: Apache/1.3.29 (Unix) FrontPage/5.0.2.2623) Location: http://www.comicsigotem.com/shop/index.php

Your main page redirects to another location. Several search engines will be unable to index your site.

 

CheckDNS.NET tests mail-servers

Domain comicsigotem.com has only one mail-server

Checking mail server (PRI=10) ismtp.globat.everyone.net [216.200.145.235]

Mail server ismtp.globat.everyone.net[216.200.145.235] answers on port 25

<<< 220 dm30.mta.everyone.net ESMTP EON-INBOUND

>>> HELO www.checkdns.net

<<< 250 dm30.mta.everyone.net

>>> MAIL FROM: <[email protected]>

<<< 250 Sender okay

>>> RCPT TO: <[email protected]>

<<< 550 Recipient Rejected: Domain not hosted here

>>> RCPT TO: <[email protected]>

<<< 550 Recipient Rejected: Domain not hosted here

>>> RCPT TO: <[email protected]>

<<< 550 Recipient Rejected: Domain not hosted here

>>> RCPT TO: <[email protected]>

<<< 550 Recipient Rejected: Domain not hosted here

Probably mail server does not accept mail for comicsigotem.com (received status 550)

Some of your MX do not work properly

 

 

CheckDNS.NET is testing comicsigotem.com

 

 

CheckDNS.NET is asking root servers about authoritative NS for domain

Got DNS list for 'comicsigotem.com' from e.gtld-servers.net

Found NS record: ns1.dnsjunction.com[203.22.204.101], was resolved to IP address by e.gtld-servers.net

Found NS record: ns2.dnsjunction.com[216.193.201.105], was resolved to IP address by e.gtld-servers.net

Domain has 2 DNS server(s)

 

CheckDNS.NET is verifying if NS are alive

DNS server ns1.dnsjunction.com[203.22.204.101] is alive and authoritative for domain comicsigotem.com

DNS server ns2.dnsjunction.com[216.193.201.105] is alive and authoritative for domain comicsigotem.com

2 server(s) are alive

 

CheckDNS.NET checks if all NS have the same version

All 2 your servers have the same zone version 1193265614

 

CheckDNS.NET verifies www servers

Checking HTTP server www.comicsigotem.com [203.22.204.96]

HTTP server www.comicsigotem.com[203.22.204.96] answers on port 80

Received: HTTP/1.1 302 Found (Server: Apache/1.3.29 (Unix) FrontPage/5.0.2.2623) Location: http://www.comicsigotem.com/shop/index.php

Your main page redirects to another location. Several search engines will be unable to index your site.

 

CheckDNS.NET tests mail-servers

Domain comicsigotem.com has only one mail-server

Checking mail server (PRI=10) ismtp.globat.everyone.net [216.200.145.235]

Mail server ismtp.globat.everyone.net[216.200.145.235] answers on port 25

<<< 220 dm30.mta.everyone.net ESMTP EON-INBOUND

>>> HELO www.checkdns.net

<<< 250 dm30.mta.everyone.net

>>> MAIL FROM: <[email protected]>

<<< 250 Sender okay

>>> RCPT TO: <[email protected]>

<<< 550 Recipient Rejected: Domain not hosted here

>>> RCPT TO: <[email protected]>

<<< 550 Recipient Rejected: Domain not hosted here

>>> RCPT TO: <[email protected]>

<<< 550 Recipient Rejected: Domain not hosted here

>>> RCPT TO: <[email protected]>

<<< 550 Recipient Rejected: Domain not hosted here

Probably mail server does not accept mail for comicsigotem.com (received status 550)

Some of your MX do not work properly

 

You can check here

 

http://www.checkdns.net/quickcheck.aspx

 

Try the check on a domain you know works and look at the differences.

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted

I don't see anything really wrong with that DNS checkup besides my index going somewhere else and some search engines might not be able to index the site. I mean, that is a problem for later, but I don't think it has anything to do with this problem here, right?

Posted

DNS has nothing to do with it, it's something in the HTML source.

 

I'm at home now using IE 7. My erarlier post was using IE 6.

 

They both work fine in Firefox, but not in IE 6 or 7.

 

Have you installed any contributions?

:unsure:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

From your HTML, a link example that doesn't work:

 

<a href="http://www.comicsigotem.com/shop/index.php?cPath=52&sort=2a&action=buy_now&products_id=36"><input type="image" src="includes/languages/english/images/buttons/button_in_cart.gif" border="0" alt="Add to Cart" title=" Add to Cart "></a>

 

I modified it, and tested it, an example that does work:

 

<a href="http://www.comicsigotem.com/shop/index.php?cPath=52&sort=2a&action=buy_now&products_id=36"><img src="includes/languages/english/images/buttons/button_in_cart.gif" border="0" alt="Add to Cart" title=" Add to Cart "></a>

 

IE doesn't seem to like this part:

 

input type="image"

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

Post the contents of:

 

/shop/includes/modules/product_listing.php

 

between "CODE" tags.

 

I think you have a call to tep_image_submit in there that should be just tep_image.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
Post the contents of:

 

/shop/includes/modules/product_listing.php

 

between "CODE" tags.

 

I think you have a call to tep_image_submit in there that should be just tep_image.

 

Here's the code:

 

<?php

/*

$Id: product_listing.php,v 1.44 2003/06/09 22:49:59 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

$listing_split = new splitPageResults($listing_sql, MAX_DISPLAY_SEARCH_RESULTS, 'p.products_id');

 

if ( ($listing_split->number_of_rows > 0) && ( (PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3') ) ) {

?>

<table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td class="smallText"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></td>

<td class="smallText" align="right"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td>

</tr>

</table>

<?php

}

 

$list_box_contents = array();

 

for ($col=0, $n=sizeof($column_list); $col<$n; $col++) {

switch ($column_list[$col]) {

case 'PRODUCT_LIST_MODEL':

$lc_text = TABLE_HEADING_MODEL;

$lc_align = '';

break;

case 'PRODUCT_LIST_NAME':

$lc_text = TABLE_HEADING_PRODUCTS;

$lc_align = '';

break;

case 'PRODUCT_LIST_MANUFACTURER':

$lc_text = TABLE_HEADING_MANUFACTURER;

$lc_align = '';

break;

case 'PRODUCT_LIST_PRICE':

$lc_text = TABLE_HEADING_PRICE;

$lc_align = 'right';

break;

case 'PRODUCT_LIST_QUANTITY':

$lc_text = TABLE_HEADING_QUANTITY;

$lc_align = 'right';

break;

case 'PRODUCT_LIST_WEIGHT':

$lc_text = TABLE_HEADING_WEIGHT;

$lc_align = 'right';

break;

case 'PRODUCT_LIST_IMAGE':

$lc_text = TABLE_HEADING_IMAGE;

$lc_align = 'center';

break;

case 'PRODUCT_LIST_BUY_NOW':

$lc_text = TABLE_HEADING_BUY_NOW;

$lc_align = 'center';

break;

}

 

if ( ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW') && ($column_list[$col] != 'PRODUCT_LIST_IMAGE') ) {

// $lc_text = tep_create_sort_heading($HTTP_GET_VARS['sort'], $col+1, $lc_text);

}

 

$list_box_contents[0][] = array('align' => $lc_align,

'params' => 'class="productListing-heading"',

'text' => ' ' . $lc_text . ' ');

}

 

if ($listing_split->number_of_rows > 0) {

$rows = 0;

$listing_query = tep_db_query($listing_split->sql_query);

while ($listing = tep_db_fetch_array($listing_query)) {

$rows++;

 

if (($rows/2) == floor($rows/2)) {

$list_box_contents[] = array('params' => 'class="productListing-even"');

} else {

$list_box_contents[] = array('params' => 'class="productListing-odd"');

}

 

$cur_row = sizeof($list_box_contents) - 1;

 

for ($col=0, $n=sizeof($column_list); $col<$n; $col++) {

$lc_align = '';

 

switch ($column_list[$col]) {

case 'PRODUCT_LIST_MODEL':

$lc_align = '';

$lc_text = ' ' . $listing['products_model'] . ' ';

break;

case 'PRODUCT_LIST_NAME':

$lc_align = '';

if (isset($HTTP_GET_VARS['manufacturers_id'])) {

$lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>';

} else {

$lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a> ';

}

break;

case 'PRODUCT_LIST_MANUFACTURER':

$lc_align = '';

$lc_text = ' <a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing['manufacturers_id']) . '">' . $listing['manufacturers_name'] . '</a> ';

break;

case 'PRODUCT_LIST_PRICE':

$lc_align = 'right';

if (tep_not_null($listing['specials_new_products_price'])) {

$lc_text = ' <s>' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s>  <span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span> ';

} else {

$lc_text = ' ' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . ' ';

}

break;

case 'PRODUCT_LIST_QUANTITY':

$lc_align = 'right';

$lc_text = ' ' . $listing['products_quantity'] . ' ';

break;

case 'PRODUCT_LIST_WEIGHT':

$lc_align = 'right';

$lc_text = ' ' . $listing['products_weight'] . ' ';

break;

case 'PRODUCT_LIST_IMAGE':

$lc_align = 'center';

if (isset($HTTP_GET_VARS['manufacturers_id'])) {

$lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>';

} else {

$lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a> ';

}

break;

case 'PRODUCT_LIST_BUY_NOW':

$lc_align = 'center';

$lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . '</a> ';

break;

}

 

$list_box_contents[$cur_row][] = array('align' => $lc_align,

'params' => 'class="productListing-data"',

'text' => $lc_text);

}

}

 

new productListingBox($list_box_contents);

} else {

$list_box_contents = array();

 

$list_box_contents[0] = array('params' => 'class="productListing-odd"');

$list_box_contents[0][] = array('params' => 'class="productListing-data"',

'text' => TEXT_NO_PRODUCTS);

 

new productListingBox($list_box_contents);

}

 

if ( ($listing_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3')) ) {

?>

<table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td class="smallText"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></td>

<td class="smallText" align="right"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td>

</tr>

</table>

<?php

}

?>

 

Should I get rid of the submit part in the following:

case 'PRODUCT_LIST_BUY_NOW':

$lc_align = 'center';

$lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . '</a> ';

 

?

Posted

Change this:

 

case 'PRODUCT_LIST_BUY_NOW':

$lc_align = 'center';

$lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . '</a> ';

break;

}

To:

 

case 'PRODUCT_LIST_BUY_NOW':

$lc_align = 'center';

$lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . '</a> ';

break;

}

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

I wasn't exactly right on what I suspected, but I was close.

:lol:

 

You're welcome, Jonathan.

;)

 

But, just for the record... I aint no genius.

:blush:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Archived

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

×
×
  • Create New...