Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Buy it now duplicates the first already bought item in the cart


qwasha

Recommended Posts

Posted

My problem is following: when you add any product to your shopping cart by using "Buy it now" button and then continue shopping, adding another different item using again "Buy it now" button, what happens is that the first, already bought item in the shopping cart duplicates and no new item is added.

Posted
My problem is following: when you add any product to your shopping cart by using "Buy it now" button and then continue shopping, adding another different item using again "Buy it now" button, what happens is that the first, already bought item in the shopping cart duplicates and no new item is added.

try using http://addons.oscommerce.com/info/952 buy now" links to forms v1.2c only install the links to froms part

Posted
My problem is following: when you add any product to your shopping cart by using "Buy it now" button and then continue shopping, adding another different item using again "Buy it now" button, what happens is that the first, already bought item in the shopping cart duplicates and no new item is added.

 

Hello,

 

 

in the catalog/shopping_cart.php (about line 198)

 

Try to replace

<td class="main"><?php echo '<a href="' . tep_href_link($navigation->path[$back]['page'], tep_array_to_string($navigation->path[$back]['get'], array('action')), $navigation->path[$back]['mode']) . '">' . tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . '</a>'; ?></td>

With:

<td class="main"><?php echo '<a href="' . tep_href_link($navigation->path[$back]['page'], tep_array_to_string($navigation->path[$back]['get'], array('action', 'products_id')), $navigation->path[$back]['mode']) . '">' . tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . '</a>'; ?></td>

 

This is not a real fix of the problem but it can help.

 

 

Stanislav

  • 2 weeks later...
Posted

Thanks a lot! I installed the Buy it now to form contribution and iot works. Only problem is that also the "continue shopping" button is missing.

Posted
Thanks a lot! I installed the Buy it now to form contribution and iot works. Only problem is that also the "continue shopping" button is missing.

 

Hello,

 

You can try to uninstall the Buy it now to form contribution

 

And try this instead of my the previous solution:

 

 

In the catalog/includes/modules/product_listing.php (about line 133)

 

replace:

$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_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> ';

with:

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

 

Check the s1lverf0x posts

 

He told that it helped him

 

 

 

Stanislav

  • 11 months later...

Archived

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

×
×
  • Create New...