• Resolved macg64

    (@macg64)


    Hi, have created a customer account page according to EDD support document. Included the shortcode [edd_profile_editor] so that users can change personal details. The resulting account page, as well as giving users the option to change their name/email address/password also contains fields for a physical address Street Name/Zip Code etc. As things stand, I really don’t want to include this information on the account page as I will not be shipping any physical products and the less information I collect privacy-wise the better. Please could you advise whether there is some shortcode I could use instead of [edd_profile_editor] that would omit the physical address?

    I was surprised to see inclusion of a physical address as the support document that advised the shortcode I have mentioned doesn’t include a physical address in the sample page example.

    Many thanks in anticipation.

    Sorry cannot provide link to page in question as building in Local on my laptop.

    • This topic was modified 2 years, 11 months ago by macg64.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Mihai Joldis

    (@misulicus)

    Hey @macg64

    Thanks for reaching out!
    You could remove those fields manually by editing the template file that displays them.

    First, you will need to create a directory inside your active theme called “edd_templates” and in there copy the file “wp-content/plugins/easy-digital-downloads/templates/shortcode-profile-editor.php”

    Now you can edit that file inside the edd_templates directory and remove the section that generates the physical fields from line 137 to 189

    Having the template file inside your theme will preserve the changes when you update EDD.

    Regards

    Thread Starter macg64

    (@macg64)

    Hi Mihai,

    Many thanks again for responding. This one will just take me a bit longer to action. I’m just off out to work. Please could we leave this thread open in case I have any questions. I’ll have a look at this first thing in the morning.

    Many thanks again for responding – much appreciated!

    • This reply was modified 2 years, 11 months ago by macg64.
    Plugin Support Mihai Joldis

    (@misulicus)

    Sure thing the thread will be open. Even if it’s marked as Resolved you can still access it at any time. The topics on the forums here are not delted.

    Thread Starter macg64

    (@macg64)

    Sorry for the delay Mihai. This is all VERY new to me so it has taken a little bit of research to understand your initial response.

    If having read what I am going to write below makes you think I am not experienced enough and just to leave well alone, please say so!! But having said that, here is what I think I am going to do, with one or two questions thrown in…..

    For reference, my theme is Astra and I have created a Child theme where I think I am going to create the “edd_templates” directory you mention and edit the file.

    1) In Dashboard > Appearance >Theme File Editor I can see over on the right under “Theme Files” I can see two options: Stylesheet (style css) and Theme Functions (functions.php). I select Theme Functions cos I am going to be dealing with a php file.

    2) Is this where I am going to create my “edd_templates” directory? And if so, how do I do that? Please keep reading…I think I have sussed the next bit…

    3) I have found the file I am going to copy in >Plugins File Editor under Easy Digital Downloads >templates > shortcode-profile-editor.php and I can indeed see that lines 137-189 deals with the address that I want to delete.

    4) So, I can copy this file. I’m thinking this is not simply a case of Command C (I’m working on a Mac) and then literally and SIMPLY pasting all that into the “edd_templates” directory I have created? Or is it?? Or do I need a file copying plugin??

    Anyway, that’s where I’m at. Any help MOST GRATEFULLY received.

    I’m thinking what I have suggested above could just be one of the most ridiculous things you have read so far this year….If so, as I said, please just tell me to leave well alone!! In trepidation I am hitting the “Submit” button!

    Plugin Support Mihai Joldis

    (@misulicus)

    Hey @macg64

    You can’t copy files via the Theme Editor in WordPress. You will need an FTP software (Filezilla for example) and then you will connect to your server and have access to the WordPress files directly.

    You will need your FTP information to enter into Filezilla to be able to connect but you should be able to retrieve those from your Hosting Account panel(cPanel) for example and if you are not sure where to get them please contact your hosting company and they should be able to assist you with that.

    Once you are connected via FTP navigate to the wp-content/themes/YOURTHEMEFOLDERHERE/ and inside that folder you create a new directory called “edd_templates”. Once you have that created then you can for example download the template file via the FTP program to your computer and upload it inside that edd_templates directory.

    If you think this is too complicated you could ask your hosting provider to assist you with creating the directory and copying the template file.

    Regards

    Thread Starter macg64

    (@macg64)

    Many thanks once again Mihai for responding and the heads up on how to proceed – much appreciated! I have checked out Filezilla. Onward and forward… I am going to mark the thread as “resolved”. Thanks again for your time and patience.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Customer Account Page Shortcode’ is closed to new replies.