Results 1 to 10 of 10
  1. #1
    Join Date
    Jun 2006
    Posts
    223
    Plugin Contributions
    0

    Default Buy Now to More Info

    I see how to change the quantity box to a Buy Now image buy changing the Display Mulitple Products Qty Box in Product Listings but what if I wanted to change this to a More Info Link or have both a Buy Now and a separate More Info button besides the title link?

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

    Default Re: Buy Now to More Info

    To be very brief, there will be a test in the product listing file (probably tpl_product_listing.php) for whether to display the buy now button or the more info... you can change or add to that test to have it always display the more info or both. There are various details and complications to consider.

    If you don't know enough about PHP and the template override system to do this, someone can expand on the subject later.

  3. #3
    Join Date
    Jun 2006
    Posts
    223
    Plugin Contributions
    0

    Default Re: Buy Now to More Info

    So there is not a config setting it is an actuall PHP edit?

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Buy Now to More Info

    To change all Buy Now in the Product Listing to ... more info on all Products go to:

    Configuration ... Product Listing ... and set to 0
    Display Product Add to Cart Button (0=off; 1=on; 2=on with Qty Box per Product)
    Do you want to display the Add to Cart Button?

    NOTE: Turn OFF Display Multiple Products Qty Box Status to use Option 2 on with Qty Box per Product
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Jun 2006
    Posts
    223
    Plugin Contributions
    0

    Default Re: Buy Now to More Info

    Wow this is not at all obvious LOL.

    Is it possible to display both?

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Buy Now to More Info

    Both do display depending on whether or not the product has attributes by default ...

    What is the criteria for when to show ... more info that you are trying to establish?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Jun 2006
    Posts
    223
    Plugin Contributions
    0

    Default Re: Buy Now to More Info

    well take movies for instance. only part of the description displays. which is what i want. some buyers may want to read the whole description and need more info (yes they can click on the title but i like to assume nothing), some just want to buy it. So ideally I would like to have a buy now and a more info button on the product listing.

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Buy Now to More Info

    You would need to customize the:
    /includes/modules/product_listing.php

    /includes/modules/your_template_dir/product_listing.php

    to include the ... more info link

    But you can change whether you have the quantity input box or individual add to cart buttons on the Configuration ... Product Listing ...
    Display Product Add to Cart Button (0=off; 1=on; 2=on with Qty Box per Product)
    Do you want to display the Add to Cart Button?

    NOTE: Turn OFF Display Multiple Products Qty Box Status to use Option 2 on with Qty Box per Product
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  9. #9
    Join Date
    Nov 2006
    Location
    8,600 ft in the Rocky Montains of Colorado
    Posts
    23
    Plugin Contributions
    0

    Default Re: Buy Now to More Info

    I also would like to add a more info link to all products on the product listing page even if they have no attributes. I would like it to appear below the price and above the quantity box for the add to cart button. I have looked over the files that you mentioned, but I have very little php and could not find a way to do this. Has anyone done this and can they send the code for me to cut and paste?

    Any help would be much appreciated!

    (Also, I'd like to add a link to the wish list as well. It was easy to do for the product info page, but I haven't found a way to do it below the add to cart box on the product listing page.)

    Thank you. Hopefully, I won't always be a newbie!

  10. #10
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Buy Now to More Info

    For no display of anything you can use the built in setting on the Configuration ... All Listing ...
    Display Product Buy Now Button
    Do you want to display the Product Buy Now Button

    0= off
    1st digit Left or Right
    2nd and 3rd digit Sort Order
    4th digit number of breaks after
    To customize this to show the ... more info you would need to copy the file:
    /includes/templates/template_default/templates/tpl_modules_products_all_listing.php

    To your templates and overrides directory:
    /includes/templates/your_template_dir/templates/tpl_modules_products_all_listing.php

    Turn off the multiple quantity:
    Display Multiple Products Qty Box Status and Set Button Location
    Do you want to display Add Multiple Products Qty Box and Set Button Location?
    0= off
    1= Top
    2= Bottom
    3= Both
    Then comment out line 100 and below it add the new line as displayed here:
    PHP Code:
    //        $display_products_button = zen_get_buy_now_button($products_all->fields['products_id'], $the_button, $products_link) . '<br />' . zen_get_products_quantity_min_units_display($products_all->fields['products_id']) . str_repeat('<br clear="all" />', substr(PRODUCT_ALL_BUY_NOW, 3, 1));
            
    $display_products_button $products_link
    You could tweak this all further to manage Free, Call for Price etc. a little better ... but see if this works for you ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Replace buy now with more info buttons
    By Nick1973 in forum General Questions
    Replies: 3
    Last Post: 1 Nov 2011, 11:48 PM
  2. Buy now / more info on home page
    By Elly in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 27 May 2011, 09:03 PM
  3. Product Listing - Buy Now and ...more info?
    By JosephKola in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 17 Jul 2009, 08:29 PM
  4. Buy Now/More Info Links New Products
    By gee38l in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 13 Jan 2009, 04:21 PM
  5. change more info to buy now with attributes
    By tbrides in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 25 Feb 2007, 10:50 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