Results 1 to 10 of 23

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Cart Summary Sidebox Make URL's

    Hi All,

    I have this cart summary mod installed on my site, displaying in the header at www.limelites.co.uk

    My question is how to make this mod behave like other carts I see on other sites. I would like the text in the cart summary to be clickable and direct to the shopping cart, but only when there is something in the cart.

    Does anyone know how to do this?

  2. #2
    Join Date
    Aug 2006
    Location
    UK
    Posts
    449
    Plugin Contributions
    0

    Default Re: Cart Summary Sidebox Make URL's

    What is the name and link to the mod you have installed... Should be rather straightforward to add a link to shopping cart..
    ~Steve~

  3. #3
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Cart Summary Sidebox Make URL's

    Hi Steve,

    It was the Cart Summary mod here:

    http://www.zen-cart.com/index.php?ma...roducts_id=345

    It would be straightforward to add a link to the cart, but I'd struggle to add a dynamic link that only became clickable when the cart had something added, so only when cart contents >=1 ?

  4. #4
    Join Date
    Aug 2006
    Location
    UK
    Posts
    449
    Plugin Contributions
    0

    Default Re: Cart Summary Sidebox Make URL's

    You could try...

    PHP Code:

    <?php if ($_SESSION['cart']->count_contents() == 0) { ?>
       <p>nothing in cart - so no link required</p>
    <?php  } else { ?>
       <a href="">something in cart so create a link..</a>
    <?php }?>
    If that doesnt help, I'll take a look at the mod...
    ~Steve~

  5. #5
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Cart Summary Sidebox Make URL's

    Hi Steve,

    Thanks for that... It's working, you've certainly got the right coding but I wonder how I might add the URL to the existing text in the cart summary.

    When the cart is empty, this is the text:

    Items in Cart: 0
    Weight: 0kgs
    Amount: £0.00


    How easy would it be to change that code so that the whole of the existing text changes to red font and becomes clickable?

    The other issue I had was with the little image of the cart I've used. Ideally, this should be clickable when the cart is active too. I've had to cheat with that image though as I've actually positioned it on my main site logo so it appears as part of the cart. I realise it should be a background image applied to #navCartMainSummary.... I had this applied originally like this:

    PHP Code:
    #navMainCartSummary {
    positionrelativeleft885pxtop:25px;
    width10%;
    height70px;
    text-alignleft;
    color#000000;
    background-imageurl("../images/shopping_cart.png");
    background-position:right;
    background-repeatno-repeat;

    ... which was working great, but which brings me to another problem with my poor html skills :-) I can't seem to force the Items in Cart---Weight---Amount each onto a new line of their own. I tried it with <p> in the language define file but it makes it all screwy..... I'm having to make them take up a new line using a 10% width control in the stylesheet above which isn't ideal as I can't apply the background image so the little cart could never be clickable along with the text.

    Hope you can understand what I'm trying to describe. It's a hard one to put across. I could illustrate exactly what I mean by sending some adaptive screenshots?

  6. #6
    Join Date
    Aug 2006
    Location
    UK
    Posts
    449
    Plugin Contributions
    0

    Default Re: Cart Summary Sidebox Make URL's

    I'll download the mod.. and look at the code... If you want the shopping basket clickable, then remove it from the background so it can be included as a small pic... .
    ~Steve~

 

 

Similar Threads

  1. Shopping Cart Summary Sidebox - Product Characters
    By mattk251285 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 6 Dec 2011, 10:56 AM
  2. Replies: 0
    Last Post: 18 Dec 2009, 05:06 AM
  3. Shopping Cart Summary Sidebox
    By mrmrsg in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 Apr 2007, 07:59 AM
  4. Adding content to cart summary sidebox
    By Cal in forum Addon Sideboxes
    Replies: 0
    Last Post: 23 Mar 2007, 01:26 PM
  5. cart summary displayed in sidebox
    By marslizard in forum Basic Configuration
    Replies: 3
    Last Post: 8 Dec 2006, 05:44 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