I'm wondering if in the product listing page I can have both the "...more info" button as well as a "buy now" or an "add to cart" button.
Thoughts?
JK
I'm wondering if in the product listing page I can have both the "...more info" button as well as a "buy now" or an "add to cart" button.
Thoughts?
JK
Yes, this can be done, but there is a danger in here. Currently Zen Cart checks whether a product can be placed directly in the cart and if it can displays an add-to-cart button. If it can't, it displays more info instead.
If you put in an add to cart button for all products then you risk products being placed in the cart without, for example, knowing the values of required attributes.
So if Zen Cart is displaying more info buttons instead of add-to-carts to force users to the product info page to choose attributes, it would be dangerous to over-ride it.
If on the other hand you want to add more info buttons to products that would otherwise display add-to-cart buttons, that would be safe, and you would find the code needed for that already in the add-to-cart section of the listing template.
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
At the moment, my Zen Cart just shows '...more info' but how can I change this to a 'more info' button?
Thanks
N
S'alright. Got it!
OK, but say that your products all have attributes that are not optional because they are all parts of a downloadable product. Meaning that the customer automatically receives all attributes (ie: files) attached to the product. How then would you override the code so that Buy Now buttons show up on all product listing pages?
I hope that made sense.
Thanks,
Netta
Hi
This issue is a big problem for me also. On my site people don't really buy products; they buy services, with no additional options. So a BuyNow button is really needed for me on the listing page.
I would do things myself, but i think product listing page is a weak point of zencart regarding editability and customisation so i am in a need of a mod here.
Thanks
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
includes/modules/product_listing.php. You'll find what you need (and more) between lines 112 and 149.
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)