Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2008
    Posts
    27
    Plugin Contributions
    0

    Default simple button addition

    hi, i am having the hardest time adding a button to my shopping cart page.

    i would like to place it above the go to checkout button. nothing i do seems to work.

    <!--bof shopping cart buttons-->

    <?php echo '<a href="http://store.realityshots.org/index.php?main_page=index&cPath=26"><img src="http://store.realityshots.org/store/includes/templates/darkness/buttons/english/button_frame_options.gif" width="178" height="22"/></a>'; ?>

    <div class="buttonRow forward">
    <?php ...

    i can see a flicker of something loading the first time i refreshed, but there is nothing on my shopping cart page. i dont think i have the button added to the right... column or something. im not sure how the layout works, is there some code to tell the button to appear above the others?

  2. #2
    Join Date
    Mar 2008
    Posts
    27
    Plugin Contributions
    0

    Default Re: simple button addition

    well i just found that adding

    <a href="http://store.realityshots.org/index.php?main_page=index&cPath=26"><img src="http://store.realityshots.org/store/includes/templates/darkness/buttons/english/button_frame_options.gif" width="178" height="22"/></a>

    to the line where you can give shopping cart instructions does the same thing: a quick flicker of the outline where the image is loading, but once the page is done there is nothing there. can someone help me with the proper way of adding this button please....

  3. #3
    Join Date
    Mar 2008
    Posts
    27
    Plugin Contributions
    0

    Default Re: simple button addition

    *bump* any suggestions?

  4. #4
    Join Date
    Mar 2008
    Posts
    27
    Plugin Contributions
    0

    Default Re: simple button addition

    so no one knows how to add a button to the shopping cart page?

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: simple button addition

    to the line where you can give shopping cart instructions
    Might help if you will expand on what you are attempting -

    Like what file and line you are inserting what to - best if you post a couple of existing lines before and after wht you have added and some reference to approx line # and file name.

    And what you want this to do as I did not comprehend why your href is a hard code to a c path

  6. #6
    Join Date
    Mar 2008
    Posts
    27
    Plugin Contributions
    0

    Default Re: simple button addition

    Quote Originally Posted by kobra View Post
    Might help if you will expand on what you are attempting -

    Like what file and line you are inserting what to - best if you post a couple of existing lines before and after wht you have added and some reference to approx line # and file name.

    And what you want this to do as I did not comprehend why your href is a hard code to a c path
    the button is a link to a particular product, which happens to be the only one in the category, which is why there is a cpath.

    in my original post I clearly explained which file I was working on, and included a snip of code. the follow up post was merely me trying to figure out another way of adding this button to my shopping cart. Originally I was working with shopping_cart.php since I want the button with the other below the items in the cart.

    However, when that was not working and no one had responded I made a post about checkout_process.php. However, there was nothing in that post that really needed further explanation.

    its simple: i want to add a new button with a link to the shopping cart page. either my code is wrong (very likely) or its been added to the wrong place (not as likely) or its not possible (doubt it).

  7. #7
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: simple button addition

    in my original post I clearly explained which file I was working on
    You better re-read your OP - no posting of any filename...and your snip was only your code &/or not enough to visually determine the filename
    either my code is wrong (very likely) or its been added to the wrong place (not as likely) or its not possible (doubt it).
    What page is this to be on???

    If the first page of the checkout that displays after one adds to cart and above the "checkout" you should be working in a copy of includes/templates/template_default/templates/tpl_shopping_cart_default - So in a copy of this to be placed into your template structure -
    Find this and add a div and your href+src right after the BOF line that starts this there
    Code:
    <!--bof shopping cart buttons-->
    <!--bof My button -->
    <div id="your_Div" class="forward">
    <a href="http://store.realityshots.org/index.php?main_page=index&cPath=26">
    <img src="http://store.realityshots.org/store/includes/templates/darkness/buttons/english/button_frame_options.gif"</a>
    </div>
    <!--eof My button -->
    <br class="clearBoth" />
    <div class="buttonRow forward"><?php echo '<a href="' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_CHECKOUT, BUTTON_CHECKOUT_ALT) . '</a>'; ?></div>......
    etc, etc, etc
    <!--eof shopping cart buttons-->
    You will find that in most all cases that display is contained in a tpl_ file and as yours is hard code - php not required - just normal html stuff

 

 

Similar Threads

  1. Simple add to cart button in Product info page
    By Macbos in forum Setting Up Categories, Products, Attributes
    Replies: 11
    Last Post: 14 Dec 2012, 07:09 PM
  2. Simple Move Search/Home/Login Button to right align
    By Karm4 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 31 Jul 2010, 07:19 PM
  3. Basic 'simple button to URL in sidebox - HowTo Example needed
    By Beau91324 in forum Basic Configuration
    Replies: 11
    Last Post: 14 May 2010, 01:08 PM
  4. simple checkout addition
    By zerocrew in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 17 May 2008, 08:22 PM
  5. Currencies box - Changing dropdown menu to simple lists or radio button
    By mali in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 8 Sep 2007, 09:51 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