Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Jan 2007
    Posts
    59
    Plugin Contributions
    0

    Default Shopping cart sidebox - help to customize?

    Hello all

    I have the shopping cart always displaying in the sidebar because I like people to always know where it is.

    I want to make a couple of changes to this sidebar item but I cant find the file! Im presuming its an include somewhere...

    The changes I want to make are:

    1) I want to change the box heading from 'Shopping Cart [more]' to 'View Shopping Cart'

    2) I want to make it so that when there is an item in the cart a link will appear inside this side box under the subtotal that says 'Go to Checkout'. Would I be right to assume I can just copy and paste the relevant code that is in the header template which functions in this way?


    Thanks a lot
    R

  2. #2
    Join Date
    Jan 2007
    Posts
    59
    Plugin Contributions
    0

    Default Re: Shopping cart sidebox - help to customize?


  3. #3
    Join Date
    Feb 2007
    Location
    Chicago, IL
    Posts
    63
    Plugin Contributions
    0

    Default Re: Shopping cart sidebox - help to customize?

    It will be in this file...

    YOUR_CATALOG > includes > languages > english.php

    Copy that file and paste it into your template folder in that directory (you may have to create one...

    YOUR_CATALOG > includes > languages > YOUR_TEMPLATE > english.php

    For me, the "[more]" is on line 75 and the shopping cart is on line 109.
    [FONT=Tahoma]- S[FONT=Verdana]teph -
    Fetch Designs: Standards Compliant Web Design

    [/FONT] [/FONT] [FONT=Verdana] Pink Puppy Designs[/FONT][FONT=Verdana]
    [/FONT] [FONT=Verdana] "Collars dogs REALLY want to wear!"
    www.PinkPuppyDesigns.com[/FONT]

  4. #4
    Join Date
    Jan 2007
    Posts
    59
    Plugin Contributions
    0

    Default Re: Shopping cart sidebox - help to customize?

    Crystal clear answer, thank you very much :)

    Ive removed the [more] and changed the title to 'View Shopping Cart' which is exactly what I wanted.

    I still have one more little thing though...

    You know when you add a product to cart, the header section shows a link that says 'checkout'. I really like this functionality and I want to put the 'checkout' link inside my shopping cart side box too.

    In the header the code for this reads <a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a>

    I guess I can use this same code somehow inside my shopping cart side box but I dont know how... any ideas?

    Thanks,
    R

    btw, pink puppy looks fantastic!

  5. #5
    Join Date
    Feb 2007
    Location
    Chicago, IL
    Posts
    63
    Plugin Contributions
    0

    Default Re: Shopping cart sidebox - help to customize?

    You'll have to modify it slightly. I have it set up on my page right now. Here's what you do...

    Edit the second to last line of...
    YOUR_CATALOG > includes > templates > YOUR_TEMPLATE > sideboxes > tpl_shopping_cart.php

    If you don't have this file, just create it by copy and pasting from the default template.

    The old line was...
    $content .= '</div>';

    The new line should be...
    $content .= '<a href=' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . HEADER_TITLE_CHECKOUT . '</a>' . '</div>';
    [FONT=Tahoma]- S[FONT=Verdana]teph -
    Fetch Designs: Standards Compliant Web Design

    [/FONT] [/FONT] [FONT=Verdana] Pink Puppy Designs[/FONT][FONT=Verdana]
    [/FONT] [FONT=Verdana] "Collars dogs REALLY want to wear!"
    www.PinkPuppyDesigns.com[/FONT]

  6. #6
    Join Date
    Feb 2007
    Location
    Chicago, IL
    Posts
    63
    Plugin Contributions
    0

    Default Re: Shopping cart sidebox - help to customize?

    Also, to remove that extra space after the total price I deleted this line...

    $content .= '<br class="clearBoth" />';
    [FONT=Tahoma]- S[FONT=Verdana]teph -
    Fetch Designs: Standards Compliant Web Design

    [/FONT] [/FONT] [FONT=Verdana] Pink Puppy Designs[/FONT][FONT=Verdana]
    [/FONT] [FONT=Verdana] "Collars dogs REALLY want to wear!"
    www.PinkPuppyDesigns.com[/FONT]

  7. #7
    Join Date
    Feb 2007
    Location
    Chicago, IL
    Posts
    63
    Plugin Contributions
    0

    Default Re: Shopping cart sidebox - help to customize?

    OR... if you want it to the left of the total price, forget everything I said before and do this...

    Before this line...
    $content .= '<div class="cartBoxTotal">' . $currencies->format($_SESSION['cart']->show_total()) . '</div>';

    Add this...
    $content .= '<div style="float: left;"><a href=' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . HEADER_TITLE_CHECKOUT . '</a></div>';

    Technically the "style" should be in your CSS document and it should be referenced by a "class" or "id", but this hack will do for now.
    [FONT=Tahoma]- S[FONT=Verdana]teph -
    Fetch Designs: Standards Compliant Web Design

    [/FONT] [/FONT] [FONT=Verdana] Pink Puppy Designs[/FONT][FONT=Verdana]
    [/FONT] [FONT=Verdana] "Collars dogs REALLY want to wear!"
    www.PinkPuppyDesigns.com[/FONT]

  8. #8
    Join Date
    Jan 2007
    Posts
    59
    Plugin Contributions
    0

    Default Re: Shopping cart sidebox - help to customize?

    Fantastic!
    Thanks, that looks perfect. Ill try it tonight :)
    R

  9. #9
    Join Date
    Jan 2007
    Posts
    59
    Plugin Contributions
    0

    Default Re: Shopping cart sidebox - help to customize?

    Yep, awesome.
    I even got a little creative a set it to only appear if theres something in the shopping cart (to keep consistent with header, and otherwise it says session expired). Couldnt have done it without you.

    The last lines are:

    if ($_SESSION['cart']->count_contents() != 0) {
    $content .= '<a href=' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . HEADER_TITLE_CHECKOUT . '</a>';
    }
    $content .= '</div>';


    Last question, how to I change the HEADER_TITLE_CHECKOUT variable so it reads 'Pay at Checkout'. I couldnt find in the english.php or the shopping cart file...

  10. #10
    Join Date
    Feb 2007
    Location
    Chicago, IL
    Posts
    63
    Plugin Contributions
    0

    Default Re: Shopping cart sidebox - help to customize?

    YOUR_CATALOG > includes > languages > english > YOUR_TEMPLATE > header.php

    If you don't have that file, create it by copy/pasting from the preceeding folder "english."

    The tool that helps me a lot when I'm looking for what file things are in is in the Admin control panel menu under...

    Tool > Developers Tool Kit

    ... there you can search for text and it will find it and show you what files it is in. It has been VERY helpful.
    [FONT=Tahoma]- S[FONT=Verdana]teph -
    Fetch Designs: Standards Compliant Web Design

    [/FONT] [/FONT] [FONT=Verdana] Pink Puppy Designs[/FONT][FONT=Verdana]
    [/FONT] [FONT=Verdana] "Collars dogs REALLY want to wear!"
    www.PinkPuppyDesigns.com[/FONT]

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 Shopping Cart Sidebox, CSS Help
    By Stizzed in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 5 Feb 2012, 07:31 AM
  2. Help with Shopping Cart Sidebox Overflow
    By joannem in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 1 Nov 2011, 04:39 PM
  3. How do i customize the shopping cart?
    By amieco in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 25 Jun 2007, 06:20 PM
  4. Need Help Formatting Shopping Cart Sidebox Heading
    By anduril3019 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 9 Mar 2007, 05:54 PM
  5. shopping cart sidebox IE blowout? please help
    By atracksler in forum Basic Configuration
    Replies: 0
    Last Post: 29 Nov 2006, 10:07 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR