Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

2.3.3.4 Buy Now Behaviour


Mort-lemur

Recommended Posts

Posted

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.

Posted

Hi,

 

I think you can use the same codes.

:blink:
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.

Posted

@@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.

Posted

@@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.

 

Posted

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;

 

Posted

@@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.

Posted

@@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

Posted

@@Jack_mcs are right.

:blink:
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.

Posted

@@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.

Posted

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

Archived

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

×
×
  • Create New...