Results 1 to 10 of 10
  1. #1
    Join Date
    Jan 2011
    Posts
    44
    Plugin Contributions
    0

    Default Center box position

    Hi All,

    I'm re-designing the website and I'm stuck!
    I'm trying to utilise the centerboxes to show certain items. I decided to utilise existing features to do this. I'm using the featured items and I'd like to use the specials centerbox to show a single special item.

    So using the existing features seems like a sensible idea. I have managed to get the Featured products box up in the top right and showing items correctly, but I'm guessing the Specials box is utilising the same CSS tag and as such I'm lost on how to get this aligned and showing correctly.

    Can anyone point me in the right direction / give some advice?

    Version 1.5.1
    Website: http://www.webextend.co.uk/bristolfashion/

    Many thanks

    Logicalstep

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Center box position

    Something like this in your stylesheet might help:

    #specialsDefault {height: 180px;}

    though one wonders why you don't use the Featured and Specials sideboxes in the right sidebox column to do much the same thing.

    (BTW, I found that in a minute or two using the Firebug plugin for Firefox. An essential tool.)

  3. #3
    Join Date
    Jan 2011
    Posts
    44
    Plugin Contributions
    0

    Default Re: Center box position

    HI Stevesh,

    That would probably be more sensible. to be honest, I wasn;t thinking straight, I was thinking those modules were only available on the center box!

    Thanke for the tip, I'll have a play and be back if I get stuck.

  4. #4
    Join Date
    Jan 2011
    Posts
    44
    Plugin Contributions
    0

    Default Re: Center box position

    I've replaced the centerbox with sideboxes, but now the sidebox only shows images in a single column, whereas the centerbox showed them in a grid.
    Is there any way to get the sideboxes (specifically the featured box) showing in grid view? I'd liek to get 6 images in a grid.

    Many thanks

    Logicalstep

  5. #5
    Join Date
    Jan 2011
    Posts
    44
    Plugin Contributions
    0

    Default Re: Center box position

    Bump anyone.....if someone could just point me to the correct code module I can have a play?

    Many thanks

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

    Default Re: Center box position

    You should be able to get the items in a grid with a CSS rule or two, without touching the PHP. The exact rule will depend on what your output source looks like, so seeing it live will let us advise. In brief, you would make the items float left and have say 49% width so two fit per line.


    Found link in OP, looking now...

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

    Default Re: Center box position

    Add to your stylesheet
    Code:
    #featured .sideBoxContent a {display: block; float: left; width: 49%; margin-top: 12px;}
    Adjust to taste.

  8. #8
    Join Date
    Jan 2011
    Posts
    44
    Plugin Contributions
    0

    Default Re: Center box position

    ha, Fantastic thanks gjh42...almost there but...

    The only issue is it only shows 2 of the 4 products I have on as featured. I've tried to see what it could be, but I'm lost. any thoughts?

    Ideally I'd like another two columns to the right, so 6 images total.

    Thanks again

  9. #9
    Join Date
    Jan 2011
    Posts
    44
    Plugin Contributions
    0

    Default Re: Center box position

    hmm looks like its showing only random products from the featured catalog.
    Taken it from here by the looks: while (!$random_featured_product->EOF) {

    Any clues as to where this array is generated and if it contains all the featured products and if so is it using a random function of PHP to show random ones?

    I'm not a PHP programmer, so I'm still trying to learn all this.

    Thanks

  10. #10
    Join Date
    Jan 2011
    Posts
    44
    Plugin Contributions
    0

    Default Re: Center box position

    Ok found it, simple when you know how!!
    For anyone who comes to this thread:

    Configuration>Maximum Values>Random Featured Products for SideBox>6 (or what ever)

    Link here: http://www.zen-cart.com/showthread.p...s-quot-sidebox

 

 

Similar Threads

  1. Help Center Live - center the online/offline box
    By terryparley in forum General Questions
    Replies: 5
    Last Post: 9 Oct 2009, 03:01 AM
  2. center position of review box and bestseller box.
    By littlehawk in forum Basic Configuration
    Replies: 4
    Last Post: 26 Feb 2009, 02:07 AM
  3. Center Box's : Style and position
    By accurax in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 3 Aug 2008, 04:34 PM
  4. Banner Display Groups - Header Position 1 Center???
    By rickintn in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 28 Mar 2008, 06:33 PM
  5. can't change sidebox position from left/right to center
    By mellonade in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 30 Apr 2007, 07:06 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