qwasha Posted June 26, 2009 Posted June 26, 2009 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.
steve_s Posted June 26, 2009 Posted June 26, 2009 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
Pektsekye Posted June 26, 2009 Posted June 26, 2009 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
qwasha Posted July 7, 2009 Author Posted July 7, 2009 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.
Pektsekye Posted July 7, 2009 Posted July 7, 2009 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
lacoz Posted June 10, 2010 Posted June 10, 2010 Had the same, its a known bug, found this answer from Jan Zonjee and worked for me perfectly: http://svn.oscommerce.com/jira/browse/OSC-478
Recommended Posts
Archived
This topic is now archived and is closed to further replies.