New Zenner
- Join Date:
- Mar 2008
- Posts:
- 14
- Plugin Contributions:
- 0
Post #1 by josephkola
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
Started by josephkola on 10 Dec 2008, 9:59 PM · Views: 2,574
New Zenner
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
Totally Zenned
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)
New Zenner
At the moment, my Zen Cart just shows '...more info' but how can I change this to a 'more info' button?
Thanks
N
New Zenner
S'alright. Got it!
New Zenner
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
New Zenner
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
Totally Zenned
qfreddie:
... i think product listing page is a weak point of zencart regarding editability and customisation ...I agree, though I doubt we'll much in the way of new mods in this area since the Zen Cart 2.0 announcement indicates that this area has been substantially overhauled for the next release.
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
New Zenner
kuroi:
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.
where do I find it in the code?
Thanks
Totally Zenned
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)
Tell staff why this post should be reviewed.