Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Oct 2008
    Location
    Rochester, NY
    Posts
    231
    Plugin Contributions
    0

    Default How do I add buttons to the left column?

    How can I add buttons to the left column? I know I need to create images and upload them, but where do I put the code to make them show up?

    What if I want a button to show up ONLY if the user has something in the shopping cart? How would I do that?

    Thanks,
    BP

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

    Default Re: How do I add buttons to the left column?

    What does the button do? Or do you just want to sew it on ...
    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!

  3. #3
    Join Date
    Oct 2008
    Location
    Rochester, NY
    Posts
    231
    Plugin Contributions
    0

    Default Re: How do I add buttons to the left column?

    I'm just gonna 'sew' it on. :)

    Basically I want to put a link (like to the Checkout page) on the left if the person has one or more items in the shopping cart. I would also like to make buttons to other pages on the site which are always present.

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

    Default Re: How do I add buttons to the left column?

    This mod includes a checkout button: Cart Sidebox with Free Shipping Qualifier and Checkout Button Free Shipping Qualifier

    Or you could use this code adapted from it, which includes a switch to only show if there is something in the cart:
    PHP Code:
    <?php
    if ($_SESSION['cart']->count_contents() > 0) { 
      echo 
    '<div id="cartCheckout"><a href="' zen_href_link(FILENAME_CHECKOUT_SHIPPING'''SSL') . '">' zen_image_button(BUTTON_IMAGE_CHECKOUTBUTTON_CHECKOUT_ALT) . '</a></div>';
    }  
    ?>

  5. #5
    Join Date
    Oct 2008
    Location
    Rochester, NY
    Posts
    231
    Plugin Contributions
    0

    Default Re: How do I add buttons to the left column?

    Gotta love SESSIONS. Thanks, I'll give it a try!

    So... where do I put this code so it shows up in my sidebar...
    I'll find it.

    Thanks!

  6. #6
    Join Date
    Oct 2008
    Location
    Rochester, NY
    Posts
    231
    Plugin Contributions
    0

    Default Hoe do I edit the code in the sidebars?

    I want to add code to my sidebars. Which file do I change to do this?

    Thanks.

  7. #7
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Hoe do I edit the code in the sidebars?

    Quote Originally Posted by bparker View Post
    I want to add code to my sidebars. Which file do I change to do this?

    Thanks.
    There are several sidebox addons in the Free Software Addons area that can serve as examples of which files are involved in adding/editing sideboxes.
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Oct 2008
    Location
    Rochester, NY
    Posts
    231
    Plugin Contributions
    0

    Default Re: How do I add buttons to the left column?

    I don't really need to add a box, just a link. Which PHP file do I modify?

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

    Default Re: How do I add buttons to the left column?

    That depends on which box you want to put the link in.

  10. #10
    Join Date
    Oct 2008
    Location
    Rochester, NY
    Posts
    231
    Plugin Contributions
    0

    Default Re: How do I add buttons to the left column?

    Ok, I think I see the confusion. I do not wish to put this in a box, but outside the boxes. I want to have a picture or link between boxes.

    Thanks.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. how to disable the left column on the home page?
    By win8win in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 26 Jun 2012, 01:42 PM
  2. How do I place an image on the left side of the left column? ( Image Included)
    By samar777 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 30 Nov 2010, 04:43 AM
  3. Best way to add text to the left column on only the home page?
    By pocweb01 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 22 Oct 2008, 12:28 PM
  4. How to left align the text in the item name column please
    By angelicdezigns in forum Templates, Stylesheets, Page Layout
    Replies: 16
    Last Post: 17 Apr 2007, 05:18 AM
  5. How can I add a graphic to top of left column?
    By rstevenson in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 30 Jan 2007, 11:16 PM

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