Jump to content

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

No Block For Customer To Sign In/register Or Sign Out Rate Topic   - - - - -

 
  • notlim
  • Junior Member
  • Members
  • Join Date: 16-Mar 11
  • 218 posts

Posted 27 February 2018 - 04:17 PM #1

Working on a responsive theme. I am looking for a block to add so that a customer can either sign in/register or sign out upon leaving. I looked at the MY Account block but there is no option for this.

Thank you



 
  • The Tool
  • Been Here Way Too Long Member
  • Members
  • Join Date: 30-Mar 07
  • 3606 posts

Posted 27 February 2018 - 04:47 PM #2

Can you explain further?  The My Account block does include a button to sign in and out.



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

Posted 28 February 2018 - 04:57 AM #3

Yes, My account block contains corresponding buttons

 

http://prntscr.com/ikqcnx


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 руб.


 
  • Darius
  • Douchebag
  • Members
  • Join Date: 20-Apr 08
  • 3112 posts

Posted 28 February 2018 - 06:30 AM #4

Maybe he maybes sign in text link, not all prefer having this hidden within drop down menu..


4.5.2 SP2


 
  • notlim
  • Junior Member
  • Members
  • Join Date: 16-Mar 11
  • 218 posts

Posted 28 February 2018 - 08:29 PM #5

ok. The block I looked at has a list, non of which said "sign in". I found the (ordinary block H3) setting has what I need. 

Thanks.



 
  • notlim
  • Junior Member
  • Members
  • Join Date: 16-Mar 11
  • 218 posts

Posted 28 February 2018 - 08:49 PM #6

OK. The MY ACCOUNT block had choices that did not specify "sign in" after trial and error I found what I need.

Thank you



 
  • notlim
  • Junior Member
  • Members
  • Join Date: 16-Mar 11
  • 218 posts

Posted 05 March 2018 - 05:17 PM #7

Here I go again with the sign in /register- sign out problem. When I use the My Account button that inables the sign out routine, The entire block displays  all links in the My Account block plus the recaptcha icon. When I sign in, the Sign Out button appears also with other links. One problem

I really want only the Sign In , Register ,Sign Out to show on the Home Page. Do I have to design a new block?

Thank you 

post-16580-0-25178500-1520269817_thumb.jpost-16580-0-53285500-1520269887_thumb.jSign in_Register view.jpg sign out view.jpg



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

Posted 05 March 2018 - 11:19 PM #8

You should be able to use hooks from the my_account.tpl block to disable certain links.

If you use an "override" and the template comes back with empty content, then the original block content will be used.  If it comes back with content (like an html comment) then that content will be used. So the easiest way to do this would be something like:

{if $controller == 'index' && $mode == 'index'}
<!-- my override hook preventing content from displaying -->
{/if}

For the homepage, the override template will return the html comment.  For any other it will be empty enabling the standard content to display.

 

There are several hooks in the my_account.tpl block as well as several hooks in the underlying templates called from that template.  You'll have to determine which you want and which you don't.


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.


 
  • notlim
  • Junior Member
  • Members
  • Join Date: 16-Mar 11
  • 218 posts

Posted 07 March 2018 - 09:31 PM #9

Thanks EZ I,ll try to do that. 



 
  • notlim
  • Junior Member
  • Members
  • Join Date: 16-Mar 11
  • 218 posts

Posted 09 March 2018 - 09:13 PM #10

EZ, I made a copy of the My_account tpl lines 56-69 and created a new block. It works the way I want it. Thanks for your help. I dicovered this while trying to figure out where to put your suggestion.

By the way, how do you make corrections on this page without rewriting. I can't seem to insert a letter in a sentence- like the s in discover.

anyway thanks again.



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

Posted 09 March 2018 - 09:26 PM #11

Not going to dig through the code to see where you changed things.  But I would strongly suggest you either use hooks or override the entire template versus changing distributed code if at all possible.  If you copied the original block to a new name and then edited, that should preserve, but using hooks/overrides is a better practice.

 

Update: and to edit, just click the Edit link!


Edited by tbirnseth, 09 March 2018 - 09:27 PM.

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.


 
  • notlim
  • Junior Member
  • Members
  • Join Date: 16-Mar 11
  • 218 posts

Posted 13 March 2018 - 02:28 AM #12

EZ I didn't change anything in the original template. I just copied the portion of the code that created the  buttons for the sign in / register.

when sign in is completed the button turns to sign out. I used that to create a new block, which I am using and is working.

The original template was not changed at all.



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

Posted 13 March 2018 - 07:42 PM #13

Okay, that's a more clear.  As long as you are not causing yourself a future headache from your changes being overwritten in an upgrade.  That was my concern 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.