Results 1 to 11 of 11

Thread: Themes

  1. #1
    Client pdunton's Avatar
    Join Date
    Apr 2006
    Location
    Tucson, Arizona
    Posts
    555
    Squirrelcart version
    v3.4.1

    Themes

    Still working with the theme system.

    I don't want to offer the plethora of color options, just a single theme in 800, 1024, and fluid flavors.

    I have made a new theme folder with the needed files and switched to that theme folder.

    However, I can't disable the "squirrelcart" theme folder so these options continue to be offered.

    Jamie: Is there (or will there be) a knob to disable the "squirrelcart" theme?

  2. #2
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,829
    Squirrelcart version
    v3.3.7
    Jamie: Is there (or will there be) a knob to disable the "squirrelcart" theme?
    There are no plans for that. We haven't had it in past versions. If you allow theme change, it's going to allow them to change to any theme installed.

  3. #3
    Client pdunton's Avatar
    Join Date
    Apr 2006
    Location
    Tucson, Arizona
    Posts
    555
    Squirrelcart version
    v3.4.1

    Themes Need Work?

    The application won't allow me to delete the squirrelcart themes.

    If I disallow theme changes in the visual settings panel I then get the default theme reset to squirrelcart.blue.800 on save AND
    the application next use comes up in blue.800 with only the left navigation showing as that takes up the whole screen.

    The switch between allow and disallow themes has been done at least a dozen times here tonight always with the same result.

    If I log in on the screwed up 100% width left nav block, the application then performs normally.

  4. #4
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,829
    Squirrelcart version
    v3.3.7
    The application won't allow me to delete the squirrelcart themes.
    That's intentional. You would have a broken cart if you deleted the master Squirrelcart theme.

    The switch between allow and disallow themes has been done at least a dozen times here tonight always with the same result.
    All that option does is control whether or not the field to change themes for a user account appears in the storefront. There is no need to turn it on and off. If you are trying to change your own theme and it's off, change it in the control panel under "Settings > Themes". If you are trying to change the store's default theme, it's changed in the same location.

  5. #5
    Client pdunton's Avatar
    Join Date
    Apr 2006
    Location
    Tucson, Arizona
    Posts
    555
    Squirrelcart version
    v3.4.1

    Not What I'm Seeing

    I am not communicating well here I think.

    I am trying to set the cart to not allow theme changes. Testing the cart logic. If I clear the checkbox in Settings/Visual that allows theme changes, the cart is unusable. I get a reset to blue.800 and the left nav block is 100% OF THE DISPLAY WIDTH.

    In the end, if I can't control the cart themes, the thing is useless to me.
    My aim is to use a custom theme that allows the user to select 800, 1024, or fluid formats without also offering the myriad squirrelcart themes.

    I will be using custom artwork and backgrounds. The fancy pastels won't work in that genre.

    Can that be done? If not, I'll stick with version 2.

  6. #6
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,829
    Squirrelcart version
    v3.3.7
    Quote Originally Posted by pdunton View Post
    I am trying to set the cart to not allow theme changes. Testing the cart logic. If I clear the checkbox in Settings/Visual that allows theme changes, the cart is unusable. I get a reset to blue.800 and the left nav block is 100% OF THE DISPLAY WIDTH.
    I just tested that in the beta. I had the theme set to the default which is "squirrelcart gray 1024". I went into the control panel, and unchecked the "Allow Theme Change" field. I saved the form, went back to the storefront, and it was fine.

    If you can provide step by step instructions from a new session that will reproduce that problem, I'd be happy to look into it.


    In the end, if I can't control the cart themes, the thing is useless to me.
    My aim is to use a custom theme that allows the user to select 800, 1024, or fluid formats without also offering the myriad squirrelcart themes.

    I will be using custom artwork and backgrounds. The fancy pastels won't work in that genre.

    Can that be done? If not, I'll stick with version 2.
    No, I mentioned in my last reply that it's not possible to allow a theme to change without also allowing them to change to the default theme. That is nothing new. It's been like that since version 1.x. If you don't like the additional colors, delete the stylesheets for them.

  7. #7
    Client pdunton's Avatar
    Join Date
    Apr 2006
    Location
    Tucson, Arizona
    Posts
    555
    Squirrelcart version
    v3.4.1

    Clear Allow Theme Change

    Jamie:
    When I clear the Settings/Visual "Allow theme change" checkbox I get the following code from squirrelcart:

    <snip>
    /squirrelcart/style_main.css.php" />
    /modules/download/templates/download.css.php" />
    /squirrelcart/modules/news/templates/news.css.php" />
    /squirrelcart/modules/quick_total/templates/quick_total.css.php" />
    </snip>

    Variant stylesheets are not included which gives .

    I'm thinking to re-install SC on the thought I may have a corrupted file.
    I'll wait on word from you first in case there is something you want me to check before the deletion.

  8. #8
    Client pdunton's Avatar
    Join Date
    Apr 2006
    Location
    Tucson, Arizona
    Posts
    555
    Squirrelcart version
    v3.4.1

    Delete stylesheets

    Jamie:
    I'm OK with deleting the unwanted stylesheets.
    It's just something else to remember when upgrading.

    If an entirely new theme with variants is designed, placing it in its own folder, would deleting all the squirrelcart stylesheets be a problem?
    Will the bold "squirrelcart" header in the theme list still show up?

  9. #9
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,829
    Squirrelcart version
    v3.3.7
    If an entirely new theme with variants is designed, placing it in its own folder, would deleting all the squirrelcart stylesheets be a problem?
    I would recommend keeping 1 of each:
    style_main.css.php
    style_variant1_gray.css.php
    style_variant2_1024.css.php

    You can probably delete all the style_variant1*.css.php files but the result will be a theme with no color.

    Will the bold "squirrelcart" header in the theme list still show up?
    I'm not sure. Try it and see.

  10. #10
    Client pdunton's Avatar
    Join Date
    Apr 2006
    Location
    Tucson, Arizona
    Posts
    555
    Squirrelcart version
    v3.4.1

    Themes, themes, themes

    If I eliminate ALL of the styles in the squirrelcart theme folder, there is still a bold "squirrelcart" selection available to the user after my custom theme folder listing. This is for sure going to be confusing for some customers.

    I see in storefront.php the need for a set of styles as defaults. So I understand why you recommend leaving the minimal files in place.

    However, this will offer further confusing choices for the customer.

    IMHA There really needs to be a clean way to offer a custom theme without any of the default squirrelcart choices.

  11. #11
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    6,829
    Squirrelcart version
    v3.3.7
    I'll see if we can add something to not allow them to use the Squirrelcart theme. If I don't end up getting it done in time, you could always add some custom PHP to the account_options_nav.tpl.php template. Change this:
    PHP Code:
    <?php if ($Show_Theme_Field): ?>
        <div class="valign_middle theme_choice">
            Theme: 
            <select name="theme_user" onchange="this.form.submit()">
                <?php foreach($Theme_Option_Groups as $Theme_Name => $Theme_Options): ?>
                    <optgroup label="<?php print $Theme_Name ?>">
                        <?php foreach($Theme_Options as $Theme_Option): ?>
                            <option value="<?php print $Theme_Option['value'?><?php print $Theme_Option['selected'?>><?php print $Theme_Option['choice'?></option>
                        <?php endforeach; ?>
                    </optgroup>
                <?php endforeach; ?>
            </select>
        </div>
    <?php endif; ?>
    To this:
    PHP Code:
    <?php if ($Show_Theme_Field): ?>
        <div class="valign_middle theme_choice">
            Theme: 
            <select name="theme_user" onchange="this.form.submit()">
                <?php foreach($Theme_Option_Groups as $Theme_Name => $Theme_Options): ?>
                    <?php if ($Theme_Name != 'squirrelcart'): ?>
                        <optgroup label="<?php print $Theme_Name ?>">
                            <?php foreach($Theme_Options as $Theme_Option): ?>
                                <option value="<?php print $Theme_Option['value'?><?php print $Theme_Option['selected'?>><?php print $Theme_Option['choice'?></option>
                            <?php endforeach; ?>
                        </optgroup>
                    <?php endif; ?>
                <?php endforeach; ?>
            </select>
        </div>
    <?php endif; ?>

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