Ms Holly Posted February 4, 2015 Share Posted February 4, 2015 I have just upgraded to 5.2.16 and my mobile skin (green) is now showing a section down the bottom if the screen after the mailing list "store settings" with a blank box underneath it. What can I do to remove this? my website is notanotherbabyshop . com Thanks in advance Holly Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 4, 2015 Share Posted February 4, 2015 That code is in the template file main.php, and is (badly) named for an area that displays the choices for the customer to choose an alternate currency and an alternate language. So, it seems your store has only one currency enabled and only one language enabled, which probably means these selectors are not displayed (why show a selector with only one choice?). But the layout still has the area for those selectors. Using a programmer's text editor, make these edits, near line 45: Was: {if isset($SECTION_NAME) && ($SECTION_NAME == "home")} {$MAIL_LIST} <h2>Store Settings</h2> <fieldset>{$CURRENCY}{$LANGUAGE}</fieldset>{/if} Now: {if isset($SECTION_NAME) && ($SECTION_NAME == "home")} {$MAIL_LIST}{if $CURRENCY || $LANGUAGE} <h2>Store Settings</h2> <fieldset>{$CURRENCY}{$LANGUAGE}</fieldset>{/if} {/if} This adds a test such that if there is either selector, show the area and the selector. Oh, and I find the name of your store quite humorous! Love it! Quote Link to comment Share on other sites More sharing options...
Ms Holly Posted February 4, 2015 Author Share Posted February 4, 2015 thanks - I appreciate it. Quote Link to comment Share on other sites More sharing options...
Ms Holly Posted February 4, 2015 Author Share Posted February 4, 2015 Hmm that didn't work ... well I guess it did in away it got rid of the store settings but also got rid of everything else and showed a blank screen on mobile instead. Ive reverted to the backup file so all good for now Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 4, 2015 Share Posted February 4, 2015 A blank screen means there is a syntax error that Smarty does not like. Unfortunately, the Mobile skin will not show the DEBUG info, so finding the cause of Smarty's distress will be very difficult. I ask that you double-check the edit. If still a problem, attach your main.php file to a reply and we will look at it. That's odd: I do not find the code that displays the DEBUG section, but my Mobile skin is showing the DEBUG. That's because DEBUG is the Smarty debugging console, not the CubeCart debug area. In admin, Store Settings, Advanced, enable Debug mode and enter your IP address in the adjacent field (www.whatismyip.com). Hopefully, if/when Smarty complains, we will see the complaint. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.