Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  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~

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

    Default Re: Cart Summary Sidebox Make URL's

    Hi Steve,

    I've removed the cart pic from the main background image, so it can be included as a small pic....

    Here is a link to the mod, together with the file I'd been working on:

    http://www.limelites.co.uk/CartContentsSidebox.rar

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

    Default Re: Cart Summary Sidebox Make URL's

    For anyone interested in having a dynamic shopping cart like the one Steve's just created for my site at www.limelites.co.uk then feel free to download the full version here:

    http://www.limelites.co.uk/Active_Ca..._Limelites.rar

    I've submitted this to contributions for review, courtesy of the original mod author and the outstanding modifications made by Steve to add cart images and active urls to the cart summary.

  9. #9
    Join Date
    May 2009
    Location
    from parts unknown
    Posts
    74
    Plugin Contributions
    0

    Default Re: Cart Summary Sidebox Make URL's

    Nice work steve and limelites

    Is there any way to get a list of contents like the shopping cart sidebox?

    And if possible a image included of the products as in the cart?

    please look at my site and expand the element in the header after adding to the cart.

    I am using the cart summary:
    <div>
    <?php require(DIR_WS_MODULES . 'sideboxes/cart_summary.php'); ?>
    </div>

    My wish is to place this content in the div and it would be great to have a version of this that displays contents and images :)

    Please check my other posts from today and maybe you can contribute to the AJAX modification that i made.

    i have a question.....
    Limelites
    "can i ask you hoe did you do the redirect on empty cart?"
    it looks great

    is this the one for download above?

    Thanks

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

    Default Re: Cart Summary Sidebox Make URL's

    Is there any way to get a list of contents like the shopping cart sidebox? And if possible a image included of the products as in the cart?
    There are a couple of mods you can download which display the shopping cart content with product images:


    ##############################################################################################################


    please look at my site and expand the element in the header after adding to the cart.
    There's no link to your site?
    ##############################################################################################################



    i have a question.....
    Limelites
    "can i ask you how did you do the redirect on empty cart?"
    it looks great

    is this the one for download above?

    Take a look at this contribution and just tweak the code so that it redirects to your own defined page which has your own content:


 

 
Page 1 of 3 123 LastLast

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