+ Reply to Thread
Results 1 to 3 of 3

Thread: Moving Account Options into sc_logo section at the top of the page

  1. #1
    Client
    Join Date
    Aug 2010
    Posts
    49
    Squirrelcart version
    v3.2.1

    Moving Account Options into sc_logo section at the top of the page

    Hello,

    I'd like to move the Account login information to the top of the page (#sc_logo in the CSS) where the logo image resides.

    Is that possible? If so, how would I do this?

    Thanks!

    T

  2. #2
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,719
    Squirrelcart version
    v3.3.7
    Anything is possible.

    1. First, you need to locate the PHP code that displays the login form. You can find that in the Content field for the built in "Account Options" Navigation Block.
    example1.png

    2. Remove that navigation block from your store page if you haven't already:
    http://squirrelcart.com/help/?Nav_Bl...torefront.html
    example2.png

    3. Put the code from #1 in the store_main.tpl.php template file.
    http://squirrelcart.com/help/?Modify...Templates.html
    example3.png

    When you save that and load your storefront page, it will look like crap. Something like this:
    example4.png

    4. At this point, everything left to do is standard web design - CSS and HTML.

    For starters, I'd recommend wrapping the code that outputs the login form in a <div /> with an id like "login_top". You can then add this CSS to the bottom of your style_main.css.php stylesheet to fix most of the display issues:
    Code:
    #login_top input {
        display: inline;
    }
    #login_top {
        text-align: right;
    }
    
    #login_top .login_btn {
        float: right;
    }
    You will probably then want to move that div inside the div in store_main.tpl.php that has an id set to sc_inner so the login form lines up with your content.

    You will still have work to do beyond what I explained, but that should get you started.

  3. #3
    Client
    Join Date
    Aug 2010
    Posts
    49
    Squirrelcart version
    v3.2.1

    It works!

    Thanks, Jamie!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts