Jump to content

Customer Account Panel Change

Recommended Posts

Posted

Thanks a lot for this!

I've tried to customise the page using the ss created names and also the ones you've provided in the link above, however, no change is detected on my end.

This is what I've been testing out just to see if its registering it but no luck so far

  <x-twc-capc-style style="display : none;">
    
    
  .twc-capc-close {
    font-weight: 700;
  }
    
    
</x-twc-capc-style>


I might have done it wrong not sure.

But the LOGIN PAGE code that you also did, there I didnt have issues with the CSS, they were registering pretty quickly and I could see the changes I was making. 

Thanks 

Posted

Thank you for your report. You have found a bug! I'll need to make a round of updates to this code and my Member Area Log In Dialog Change code, I think.

If I've sussed out what is happening, the two codes are crossing their streams. So the code that runs last is sending it's CSS into Customer Account Panel and the Member Area Log In Dialog Change.

It may take several days for me to update my code. Stay tuned.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Posted
21 hours ago, NewbiefromUK said:

  .twc-capc-close {
    font-weight: 700;
  }

This won't work because of CSS Specificity.

This would work.

    .twc-capc-title-close .twc-capc-close {
    
      font-weight : 700;
      
      }
      

 

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Posted

Thank you for this! It worked yes! 

Just a note again about any bugs and so on :] I think the refresh issue is also happening with this code and in this section, If I open the profile page (customised) and then refresh it while open then after closing it and opening it right up again it tends to go back to its original form.


I had a quick question about the DARK OVERLAY you get when you click on LOGIN or SIGN IN or the ACCOUNT once you are signed in which also has a spinning wheel for about 1,2 seconds where the background gets a darker overlay.  Would you know the element name for it ? I am trying to remove the dark overlay and instead have a white overlay which is the effect of most of my elements in the website.

I've managed to make the background transparent when I click on SIGN IN and then once it gets the window up the background is transparent but there is a brief moment where the background is dark while spinning wheel shows and then it goes to transparent when the click function is processed. I am not sure exactly how to target that moment I would also like to remove this from both the SIGN IN and USER ACCOUNT PROFILE elements when I click on them. 

Regards 

  • 2 weeks later...
Posted
On 4/28/2023 at 2:53 PM, NewbiefromUK said:

I think the refresh issue is also happening with this code and in this section

I have updated the code. From the changes.

fix for code not running is some circumstances

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

  • 2 months later...
Posted

I am trying to customise the members area account profile menu. 
Is it possible to hide the orders, addresses and profile options? 

 

Screenshot 2023-07-24 at 14.48.21.png

  • 4 weeks later...
Posted

Hi @creedon,

Thanks for sending me this link. Unfortunately I spent a couple hours yesterday trying to adjust your code to hide the "Orders" section or even just the text because it is confusing to our site visitors because they place "orders" using a Jotform and it doesn't update the account dashboard. I am very new with Jquery and I'm sure I'm doing it wrong, but What I added above your accountFrameCallback comment is the following:
  
  <x-twc-capc-style style="display : none;">
  
    [optional, enter css here replacing square brackets]
    
    </x-twc-capc-style>
    
  <script>
  
    if ( window.twc == undefined ) window.twc = { };
    
    twc.capc = {
    
      title : '[Welcome to the fette]',
      
      /*
      
        accountFrameCallback is a custom function ...

Can you help me at all or is this beyond the scope of a forum?

Thanks,
Seth

Posted
4 hours ago, sethhoffman said:

By the way I realize you said we can't hide something with this

One might be able to, I don't know as I've not done it.

What I did say was this code doesn't do the hiding but gives one the ability to potentially write code that can hide stuff.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Posted
5 hours ago, sethhoffman said:

Can you help me at all or is this beyond the scope of a forum?

You have introduced syntax errors into my code.

ScreenShot2023-08-15at12_30_39PM.png.4b510a54ba8d65add2bde417c11ca904.png

It looks like you are trying to write a JavaScript function? If you are just hiding elements you probably only need the proper CSS. I may be able to help with that.

But before I do that I need to adjust my code. Apparently SS made some changes and I need to account for the changes.

It may take me several days to make the changes. In the meantime remove my code.

I'll post back when the code is updated.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Posted

I have updated my cited code in the original post of this thread.

From the read me changes.

  • changed twc-capc-title-close class to twc-capc-header
  • fix for code not running after apparent changes by Squarespace

Let me know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Posted
Quote

If you are just hiding elements you probably only need the proper CSS. I may be able to help with that.

To hide the Order section of the Customer Account panel set the following line in my code...

    [optional, enter css here replacing square brackets]

...to...

    .twc-capc-orders {
    
      display : none;
      
      }
      

Let us know how it goes.

@sethhoffman

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

  • 6 months later...
Posted

@creedon

Hi there,

Just regarding this code, Ive had few breaks in the past month or so maybe 2 so I had to re-do the things again few times because of code change (the weird letters .xyhijiajar etc.) 

Thats pretty much how I am targeting the sections that I want to change since I dont know a better way but your twc_caps_styling is there a way we can create Custom selectors for the areas we want to target as its kind of frustrating to keep doing this over and over to maintain the style.

I dont understand the twc classes or whatever they are so thats why I decided to ask as they've rolled out changes that affected these areas 2 times now in a span of few weeks


Regards

Posted

This is awesome @creedon. I've installed it and it works great for renaming the items on the account settings panel. Is it possible to remove the digital product name and the "view" button entirely, just leaving the panel and the "account settings" button? I'm trying to find the correct identifier for this area. 

Posted
1 hour ago, Gmm398 said:

Is it possible to remove the digital product name and the "view" button entirely, just leaving the panel and the "account settings" button?

I assume you mean the elements enclosed in red? My code does not address those elements specifically.

Screenshot2024-07-04at2_07_15PM.thumb.png.48a879cb6400c667c65568060e768100.png

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Posted (edited)
On 7/7/2024 at 4:25 AM, MuhammadIsa said:

Is there a way we could use your code to change the circled text while retaining the respective customer's name?

As is, no.

With a custom callback, yes.

Are you currently using the accountFrameCallback setting in the code currently? I ask because the current code only allows one callback. If you need more than one callback then you would need to write your own callback to call multiple callbacks or wait until I potentially add that feature into my code.

Edited by creedon

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Posted
6 hours ago, creedon said:

Are you currently using the accountFrameCallback setting in the code currently?

No I am not using accountFrameCallback setting currently.

Posted (edited)
On 7/7/2024 at 4:25 AM, MuhammadIsa said:

use your code to change the circled text while retaining the respective customer's name?

Please see the following.

Edited by creedon

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.