Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Edit Vendor Login Page Rate Topic   - - - - -

 

Posted 11 February 2016 - 04:26 PM #1

I'm trying to make changes to the Vendor Login page.  Right now, it's just the default login page, like this:

 

http://i.imgur.com/aBuhRfm.png

 

But I'd like to make some changes to how that looks (and add a link to allow them to "Sign Up for a Vendor Account" that links over to our Vendor Application page).

 

How and Where do I make changes to accomplish this?



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19483 posts

Posted 12 February 2016 - 08:30 AM #2

Template is located here:

 

design/backend/templates/views/auth/login_form.tpl

 

Please use the following code to add text for vendor accounts only:

{if $smarty.const.ACCOUNT_TYPE == 'vendor'}
TEXT HERE....
{/if}

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 

Posted 16 February 2016 - 02:34 PM #3

That doesn't seem to be working.

 

I did exactly that.  I copy and pasted your code snippet (and even left it saying "TEXT HERE..." just to test) at the end of the login_form.tpl file.  I saved my changes, I cleared my browser cache, and I cleared CS Cart's Cache then reloaded the vendor login page, and I still see no change.  I even checked the source code and did a search for "TEXT HERE" and it's not there anywhere.



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19483 posts

Posted 16 February 2016 - 02:50 PM #4

Works on my local installation

 

http://prntscr.com/a40mdp

 

http://prntscr.com/a40mln


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 

Posted 16 February 2016 - 03:15 PM #5

Any other advice then?

 

I'm using "Graceful Theme" but I didn't think that affects the login pages.

 

I've tried adding that to 5 different "login_form.tpl" files.  I have the "backend" folder (updated it there).  I also have the following 4 under themes:

  • graceful
  • graceful_clone
  • responsive
  • responsive_clone

Inside CS Cart Admin, if I got to where I chose a theme, it says I'm using a "graceful_clone" but the one I'm using has the following in the sidebar:

THEME INFORMATION

Name
TrainingBAE_GracefulTheme
Directory
/graceful_clone
Layouts
3
Styles
3
Developer
cart-power.com

 

Also, if I use the built in CS Cart Admin Template editor (but selecting the top dropdown for Design » Templates), and go to "Templates » Views » Auth » login_form.tpl" here's what it currently looks like:

{assign var="id" value=$id|default:"main_login"}

{capture name="login"}
    <form name="{$id}_form" action="{""|fn_url}" method="post">
    <input type="hidden" name="return_url" value="{$smarty.request.return_url|default:$config.current_url}" />
    <input type="hidden" name="redirect_url" value="{$config.current_url}" />

        {if $style == "checkout"}
            <div class="ty-checkout-login-form">{include file="common/subheader.tpl" title=__("returning_customer")}
        {/if}
        <div class="ty-control-group">
            <label for="login_{$id}" class="ty-login__filed-label ty-control-group__label cm-required cm-trim cm-email">{__("email")}</label>
            <input type="text" id="login_{$id}" name="user_login" size="30" value="{$config.demo_username}" class="ty-login__input cm-focus" />
        </div>

        <div class="ty-control-group ty-password-forgot">
            <label for="psw_{$id}" class="ty-login__filed-label ty-control-group__label ty-password-forgot__label cm-required">{__("password")}</label><a href="{"auth.recover_password"|fn_url}" class="ty-password-forgot__a"  tabindex="5">{__("forgot_password_question")}</a>
            <input type="password" id="psw_{$id}" name="password" size="30" value="{$config.demo_password}" class="ty-login__input" maxlength="32" />
        </div>

        {if $style == "popup"}
            <div class="ty-login-reglink ty-center">
                <a class="ty-login-reglink__a" href="{"profiles.add"|fn_url}" rel="nofollow">{__("register_new_account")}</a>
            </div>
        {/if}

        {include file="common/image_verification.tpl" option="login" align="left"}

        {if $style == "checkout"}
            </div>
        {/if}

        {hook name="index:login_buttons"}
            <div class="buttons-container clearfix">
                <div class="ty-float-right">
                    {include file="buttons/login.tpl" but_name="dispatch[auth.login]" but_role="submit"}
                </div>
                <div class="ty-login__remember-me">
                    <label for="remember_me_{$id}" class="ty-login__remember-me-label"><input class="checkbox" type="checkbox" name="remember_me" id="remember_me_{$id}" value="Y" />{__("remember_me")}</label>
                </div>
                
                
            </div>
        {/hook}
    </form>
{/capture}

{if $style == "popup"}
    {$smarty.capture.login nofilter}
{else}
    <div class="ty-login">
        {$smarty.capture.login nofilter}
    </div>

    {capture name="mainbox_title"}{__("sign_in")}{/capture}
{/if}
{if $smarty.const.ACCOUNT_TYPE == 'vendor'}
TEXT HERE....
{/if}





 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19483 posts

Posted 16 February 2016 - 03:35 PM #6

Please check correct path in the post #2


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 

Posted 16 February 2016 - 03:38 PM #7

I edited that one too:

 

/public_html/design/backend/templates/views/auth/login_form.tpl

 

Looks like this:

<div class="modal signin-modal">
    <form action="{""|fn_url}" method="post" name="main_login_form" class=" cm-skip-check-items cm-check-changes">
        <input type="hidden" name="return_url" value="{$smarty.request.return_url|fn_url:"A":"rel"|fn_query_remove:"return_url"}">
        <div class="modal-header">
            <h4><a href="{""|fn_url}">{$settings.Company.company_name|truncate:40:'...':true}</a></h4>
            <span>{__("administration_panel")}</span>
        </div>
        <div class="modal-body">
            <div class="control-group">
                <label for="username" class="cm-trim cm-required cm-email">{__("email")}:</label>
                <input id="username" type="text" name="user_login" size="20" value="{if $stored_user_login}{$stored_user_login}{else}{$config.demo_username}{/if}" class="cm-focus" tabindex="1">
            </div>
            <div class="control-group">
                <label for="password" class="cm-required">{__("password")}:</label>
                <input type="password" id="password" name="password" size="20" value="{$config.demo_password}" tabindex="2" maxlength="32">
            </div>
        </div>
        <div class="modal-footer">
            {include file="buttons/sign_in.tpl" but_name="dispatch[auth.login]" but_role="button_main" tabindex="3"}
            <a href="{"auth.recover_password"|fn_url}" class="pull-right">{__("forgot_password_question")}</a>
        </div>
        
    </form>
</div>
{if $smarty.const.ACCOUNT_TYPE == 'vendor'}
TEXT HERE....
{/if}


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19483 posts

Posted 17 February 2016 - 09:40 AM #8

Try to remove the var/cache directory manually


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 

Posted 17 February 2016 - 03:54 PM #9

Wow! That worked!!  Thank you!

 

Ok, so it looks like the "Clear Cache" from my admin panel doesn't actually work (even though I still get the green confirmation message).  Do you know what might be causing that?

 

Also, would you know why the built in template editor in the admin panel doesn't have me editing the actual template files?



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11329 posts

Posted 18 February 2016 - 02:50 AM #10

Ownership of permissions issues.

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19483 posts

Posted 18 February 2016 - 07:58 AM #11

Ownership of permissions issues.

 

 

Totally agree


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 

Posted 18 February 2016 - 03:24 PM #12

So what needs to be changed to what in order to fix that?  Any clue or is it too broad of a problem to pinpoint?



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11329 posts

Posted 19 February 2016 - 07:30 PM #13

In SSH:

# sudo /bin/sh
# cd ~[your cpanel username]
# cd public_htnl
# chown -R [cpanel_user]:[cpanel_group] .
# chown [cpanel_user]:nobody .
# find . -type f | xargs chmod 644
# find . -type d | xargs chmod 755
# edit config.local.php and change file/dir permissions to match above

If you don't have root access to your server either use your file manager (if it lets you) or have your hosting company do it for you.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.