Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add to Cart / Buy Now! button behavior


celiawessen

Recommended Posts

Posted

While viewing a list of prodcuts under "What's new?" or "Featured products", the "Add to Cart" and "Buy Now!" buttons do the same thing. They invoke the "buy_now" action in "applications_top.php" to check if the product has any attributes. If the product has no attributes assigned to it, it immediately adds the product to the cart. But if the product has attributes assigned to it, then the shopper is taken to the products' info page and the product is not added until the "Add to Cart" button is clicked again. This feature is present to protect against customers forgetting to choose the size or color of the product before buying it.

 

I would like to see a feature where the shop owner may switch the behavior of these buttons and preferably change the images to "Product Details". This way, when the shopper clicks on the "Product Details" button, they will not confuse it with adding it to the cart.

 

There are two choices in implementing this feature:

 

1) Display "Product Detail" button instead of "Add to Cart" button for all products (Clean looking in list view)

2) Display "Product Detail" button instead of "Add to Cart" button only if product has attributes assigned. (Messy looking in list view)

 

Choice (1) looks like the better option, since there is less server-side processing to do. There seems to be a lot of pages needing modification for this feature. But I've looked at the pages, and this seems completely possible. If there is a similar contribution already, please guide me to it.

Posted

Sorry, I got impatient. I went ahead and made the changes myself. Still, if there are contributions that does this, I'd like to know.

Posted

Hi mate,

I would like to add that if I am a customer on the shop my understanding of clicking on the Buy Now button means that at least the product is included in the Shopping Cart straight away. There should be a way to specify default options in the case of a product with different options.

 

Hope this comments adds an extra level of understanding about the problem with these two buttons.

 

B)

  • 3 months later...
Posted

Hello Celia,

 

First of all, thank you for the effort of writing and sharing a contribution for OSC :)

 

I'm replying to this because i encountered a problem with your mod. After making the modifications to the script, the More Details button showed correctly, but when clicking the item was placed automaticly in the customers cart, instead of just showing the details of the product with then the option of adding it to the cart.

Then maybe in future versions of this mod, maybe the script can show 2 buttons: add to cart and more details?

 

I uninstalled the mod and hope for future updates of this, I'm afraid my knowledge is limited of this matter.

I hope my comment contributes to future updates.

 

cheers,

 

Jeroen

Archived

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

×
×
  • Create New...