Angie Posted May 10, 2020 Share Posted May 10, 2020 Is there anyway to permanantly remove the youtube field from the shopping cart? Thank you Link to comment Share on other sites More sharing options...
bsmither Posted May 10, 2020 Share Posted May 10, 2020 From the Footer area? In admin, Store Settings, make sure there is nothing entered in the respective Social Media text entry box. Link to comment Share on other sites More sharing options...
Angie Posted May 10, 2020 Author Share Posted May 10, 2020 I take that out save clear cache disapeers then comes back again, its driving me nuts! lol Link to comment Share on other sites More sharing options...
bsmither Posted May 10, 2020 Share Posted May 10, 2020 Comes back? Hmm... Please check the admin, System Error Log. Link to comment Share on other sites More sharing options...
Angie Posted May 10, 2020 Author Share Posted May 10, 2020 System error log is empty and saying no errors Edit to add admin error log is empty aswell Link to comment Share on other sites More sharing options...
bsmither Posted May 10, 2020 Share Posted May 10, 2020 The reason I had you check is because, if there is a too large of an amount of settings to save to the 'config' array, PHP will complain and CubeCart will log that error (in all but a few cases). If the settings cannot be saved, what got changed and saved will not get changed. So, having emptied the text entry fields for the social media entries, they would then immediately reappear because nothing actually got changed. However, since you say that the text entry field does stay empty at least for one page reload, then it did get saved. That leads me to believe that, if using Google's Chrome browser, Chrome is loading (or, at least loading the POST payload on save) the text entry field because.. well, it is a Google product. Are you using Chrome? Link to comment Share on other sites More sharing options...
Angie Posted May 10, 2020 Author Share Posted May 10, 2020 Yes am using Chrome. Your right I take it out, it dissapears then appears again, but it does reappear in the admin panel all by itself. Mostly it puts Angie but occasionally it puts my email address in there, this is not something I do. Link to comment Share on other sites More sharing options...
bsmither Posted May 10, 2020 Share Posted May 10, 2020 I am not familiar with Chrome. But there must be a setting where you can turn off "auto-fill" or "auto-complete" on form fields. Link to comment Share on other sites More sharing options...
Angie Posted May 10, 2020 Author Share Posted May 10, 2020 There is a settings to turn off auto fill, but I use that alot, the thing is its only the youtube its doing this to its not doing it to instagram for example where I took that link out. Link to comment Share on other sites More sharing options...
bsmither Posted May 10, 2020 Share Posted May 10, 2020 Google owns YouTube. (As far as I know, not Instagram.) Please give some consideration to using Firefox. (Or Waterfox, a Firefox look-a-like.) Link to comment Share on other sites More sharing options...
Angie Posted May 10, 2020 Author Share Posted May 10, 2020 I have never heard of waterfox am not keen on firefox to be honest, Yup google does own youtube and facebook owns instagram now. Link to comment Share on other sites More sharing options...
bsmither Posted May 10, 2020 Share Posted May 10, 2020 If this is the one (and only as yet) problematic text entry field, we can (politely) ask that the browser not auto-fill these specific form elements, or all form elements on the Settings pages. In the admin skin template, settings.index.php: Find near line 12: <form id="form-settings" action="{$PHP_SELF}" method="post" enctype="multipart/form-data"> Change to: <form id="form-settings" action="{$PHP_SELF}" method="post" enctype="multipart/form-data" autocomplete="off"> OR: Specific form fields: Find near line 55: <div><label for="youtube">YouTube</label><span><input name="config[youtube]" id="youtube" type="text" class="textbox" value="{$CONFIG.youtube}"></span></div> Change to: <div><label for="youtube">YouTube</label><span><input name="config[youtube]" id="youtube" type="text" class="textbox" value="{$CONFIG.youtube}" autocomplete="off"></span></div> Link to comment Share on other sites More sharing options...
Angie Posted May 10, 2020 Author Share Posted May 10, 2020 Is this in my websites cpanel? Tried this and its not worked for some reason Link to comment Share on other sites More sharing options...
bsmither Posted May 10, 2020 Share Posted May 10, 2020 In your cPanel, there is a tool where you can edit files. Have your browser show you the page source (again, how this is done in Chrome, I do not know). See if the edits are actually in place. Link to comment Share on other sites More sharing options...
Angie Posted May 10, 2020 Author Share Posted May 10, 2020 I have two admin files have tried both and its not working could be me as am far from a coder lol Link to comment Share on other sites More sharing options...
bsmither Posted May 10, 2020 Share Posted May 10, 2020 Two admin files? Maybe also two admin folders? If so, then look in /includes/global.inc.php. There will be the names of the file and folder of the pair that is actually in use. You may delete the file and folder pair that is not in use. For example, there is the /admin/ folder and the /admin_aBcDeF/ folder. If the globals.inc.php file says that the adminFolder is 'admin_aBcDeF', then you can delete the /admin/ folder. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.