Mort-lemur Posted November 20, 2013 Posted November 20, 2013 HI, In my 2.2 stores I had modified the code to ensure that the buy-it-now button took the shopper to the product page rather than checkout from the list of products regardless of if the item had options or not. This was to ensure that they were at least presented with information about the products before they purchased them. Trying to find out how to do this in 2.3.3.4 as it is quite different. Many Thanks Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.
tgely Posted November 20, 2013 Posted November 20, 2013 Hi, I think you can use the same codes. osCommerce based shop owner with minimal design and focused on background works. When the less is more.Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store.
Mort-lemur Posted November 20, 2013 Author Posted November 20, 2013 @@Gergely Thanks, But I cant for the life of me remember or find what it was - It was provided some time ago by spooks (Sam) Thanks Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.
♥joli1811 Posted November 20, 2013 Posted November 20, 2013 @@Gergely Thanks, But I cant for the life of me remember or find what it was - It was provided some time ago by spooks (Sam) Thanks Hi Heather, http://www.oscommerce.com/forums/topic/349920-change-buy-now-button-to-link-to-product-info-php/ this was discussed think I would take a look in the code Product Listing Enhancements must be in there somewhere regards Joli To improve is to change; to be perfect is to change often.
burt Posted November 20, 2013 Posted November 20, 2013 includes/application_top.php Find: // performed by the 'buy now' button in product listings and review page case 'buy_now' : if (isset($HTTP_GET_VARS['products_id'])) { if (tep_has_product_attributes($HTTP_GET_VARS['products_id'])) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id'])); } else { $cart->add_cart($HTTP_GET_VARS['products_id'], $cart->get_quantity($HTTP_GET_VARS['products_id'])+1); } } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; Change to: // performed by the 'buy now' button in product listings and review page case 'buy_now' : if (isset($HTTP_GET_VARS['products_id'])) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id'])); } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break;
Mort-lemur Posted November 20, 2013 Author Posted November 20, 2013 @@joli1811@@burt Thank You! Works a treat now. @@burt Crashing on with 2.3.3.4 mods - how about a pinned thread of mods that actually work on 2.3.3.4? Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.
knifeman Posted November 20, 2013 Posted November 20, 2013 @@joli1811@@burt Thank You! Works a treat now. @@burt Crashing on with 2.3.3.4 mods - how about a pinned thread of mods that actually work on 2.3.3.4? This isn't pinned, but it is a start... http://www.oscommerce.com/forums/topic/394804-addons-that-will-break-on-update-to-2334/page__p__1683616#entry1683616 Tim
Jack_mcs Posted November 20, 2013 Posted November 20, 2013 @@Mort-lemur Maybe I'm missing something but that seems misleading, or maybe confusing, to me. If someone clicks on a buy now button they would expect that item to be bought now, not after they went to some other page so that they could click buy now again. If you are going to do that, I suggest changing the buy now button to a view details button. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
tgely Posted November 21, 2013 Posted November 21, 2013 @@Jack_mcs are right. osCommerce based shop owner with minimal design and focused on background works. When the less is more.Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store.
Mort-lemur Posted November 21, 2013 Author Posted November 21, 2013 @@Jack_mcs@@Gergely I agree - But what I need to avoid is the possibility of someone checking out without having been presented with the product details first. So how would I go about changing the button text just on the products listings page? Many Thanks Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.
Jack_mcs Posted November 22, 2013 Posted November 22, 2013 The code for the button is in the includes/modules/product_listing.php file. You could also change the setting for it in configuration->Products Listing so that that column doesn't show at all. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Recommended Posts
Archived
This topic is now archived and is closed to further replies.