Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Feb 2010
    Location
    Texas - The Republic
    Posts
    27
    Plugin Contributions
    0

    Default replace more info w add to cart button

    When there is more than one product in a category, ZC puts up a list, price on the right and a more info link.

    Can the more info link be replaced by an "Add to Cart" button, and yet still have the product title stay linked to the product detail page?

    If so how?

    Thanks
    Jim

    Products are zip file downloads only.

    WIP web site is
    www.ernest-education.com/eecdlst/

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: replace more info w add to cart button

    Products are zip file downloads only.
    Because the download function is an element of zencart's attributes, the default behaviour will be to change the add to cart, to more info.

    I think there is a work-around, but I am not sure of how it is applied in the context of downloadable products...
    20 years a Zencart User

  3. #3
    Join Date
    Feb 2010
    Location
    Texas - The Republic
    Posts
    27
    Plugin Contributions
    0

    Default Re: replace more info w add to cart button

    Quote Originally Posted by schoolboy View Post
    Because the download function is an element of zencart's attributes, the default behaviour will be to change the add to cart, to more info.
    I thought the more info link was only placed on pages with more than one product - at least that is the way it shows on my site. If there is only one item in the category, then that item shows with an add to cart button.

    With the caveat that I know next to nothing about php ...

    The more info link uses the products_id as does the add to cart function. I would assume that when the add to cart is clicked ZC looks up the products_id and at that time determines the attribute. Since the items I am interested in doing this with only have one attribute, I would think it would default to it.

    So I guess I am wondering if in the
    <td class="productListing-data" align="right">
    section is there a way to replace the call for the moreinfo link with the add to cart function?

    And just to complicate it even more I only want to do that on certain product category pages.

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: replace more info w add to cart button

    I recall seeing this discussed recently (possibly by DrByte), but have no idea of what is involved in doing the tweak. Where you see the add to cart for categories with only one product, that is because the listing page is being skipped entirely, going straight to the product info page. So that is irrelevant to getting the listing the way you want.

 

 

Similar Threads

  1. v151 How do I replace the add-to-cart button with a PayPal *Donate* button?
    By picandnix in forum Addon Payment Modules
    Replies: 7
    Last Post: 29 Apr 2014, 02:52 PM
  2. v150 Replace "...more info" with a Go To Product Details button
    By TamaraSFL in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Sep 2012, 08:20 PM
  3. How do I replace the Buy Now button with an Add to Cart button?
    By OrcaSoul in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 19 Feb 2010, 05:36 AM
  4. Replace Add To Cart Button
    By accpro in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 17 Jul 2008, 12:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg