Results 1 to 7 of 7
  1. #1
    Join Date
    May 2010
    Location
    Cyberspace
    Posts
    376
    Plugin Contributions
    0

    Idea or Suggestion shoppingCart Prefix

    Hi, I wanted a shoppingCart Prefix so i tried fooling around with the tpl_shopping_cart.php file from templates/sideboxes.

    First thing I did was to add '•' like this, to $content .= '•' . '<li>'; at line 18.

    then I did the following styling in my stylesheet.css:

    #cartBoxListWrapper ul{margin-left:4px;}
    #cartBoxListWrapper ul li{margin-left:20px;margin-top:-25px;width:90%;}

    To me this seems like a rather brute way to go about it.. is there an easier way to achieve what I'm trying to do??

    Thanks
    Soniccc
    Last edited by Soniccc; 20 Apr 2011 at 10:16 PM.

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

    Default Re: shoppingCart Prefix

    So you're saying that you hard-coded and jury-rigged a way to make typical list item markers show on a list? How about

    #cartBoxListWrapper ul li {display: list-item; list-style: inside;}

    along with any properties needed to tweak the display to your liking.

  3. #3
    Join Date
    May 2010
    Location
    Cyberspace
    Posts
    376
    Plugin Contributions
    0

    Default Re: shoppingCart Prefix

    That's what made me feel like an idiot (the hard-coding and jury-rigging) I did that because I got a margin problem with the second line of the cart item title (one I think you already know of) and this also appeared when using display-list. It looks like this:

    • 1000st.- *GÜT CNe 50
    BOM, 100 M sort fä

    By hard-coding I could achieve this:

    • 1000st.- *GÜT CNe 50
    BOM, 100 M sort fä

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

    Default Re: shoppingCart Prefix

    Did you mean that
    Code:
    By hard-coding I could achieve this:
    
    • 1000st.- *GÜT CNe 50
      BOM, 100 M sort fä
    (as the forum display strips leading spaces.)

    Using list-style: outside; and padding-left on the <ul> will move the whole list over so the markers can be "outside" the list and still within the box.

  5. #5
    Join Date
    May 2010
    Location
    Cyberspace
    Posts
    376
    Plugin Contributions
    0

    Default Re: shoppingCart Prefix

    Well that pretty much does it. It seems there's always an easier way (one I don't know of) to do stuff.. where do you learn all this??

    Thanks!
    Soniccc
    Last edited by Soniccc; 20 Apr 2011 at 11:09 PM.

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

    Default Re: shoppingCart Prefix

    Various CSS books, and lots of online resources. www.w3schools.com is a good one for much of it, though they are sometimes out of date, especially with PHP (the preg_ functions are not even mentioned and it still describes the deprecated ereg_ functions).

  7. #7
    Join Date
    May 2010
    Location
    Cyberspace
    Posts
    376
    Plugin Contributions
    0

    Default Re: shoppingCart Prefix

    I'll try those resources so that hopefully I can contribute in a few years!

    thanks again!

 

 

Similar Threads

  1. v151 lost shoppingcart
    By elbert06 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 8 Aug 2014, 12:55 PM
  2. Shoppingcart question
    By arbmil in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 29 Nov 2011, 06:34 PM
  3. Shoppingcart layout
    By lexz in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 10 Feb 2007, 04:21 PM
  4. class shoppingCart
    By David Bo in forum General Questions
    Replies: 2
    Last Post: 6 Feb 2007, 05:56 PM
  5. shoppingcart heading in CSS?
    By RC-Hobby4U in forum Basic Configuration
    Replies: 1
    Last Post: 4 Jan 2007, 10:56 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