TravelinMoe Posted August 7, 2017 Share Posted August 7, 2017 Hi there, I am trying to change the language flags found at the top of the page. I have modified the .PNG image in the \language\flags folder, cleared the browser cache and clear the CubeCart Cache, but the old flags still appear. The language is good, but I want to show a Canadian and Mexican flag instead of UK and Italy. Everything else is awesome and just tweaking now! Any ideas? Thanks, Maurice Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 8, 2017 Share Posted August 8, 2017 The images in the /language/flags folder are used by other processes. For the Foundation skin, there is a 'sprite' in the /skins/foundation/images/ folder. The skin code uses CSS rules to slide the sprite up and down so that the relevant part of the sprite appears in the area set to display, which is just one flag wide and tall. The process is this: There are a fine set of properly-sized flags in the latest downloadable package of the CC5 family. (I do not know why they were removed from the CC6 family, other than, I suppose, as you download and install other language packs, the flag will come with it.) Load the sprite into an image editor. Add the desired flags to the bottom of the sprite. In the file cubecart.css, near line 231, examine how each CSS rule offsets the span selector according to the flag that is wanting to show - each offset by X times 11 pixels. Maintain the scheme for the other two flags added. In the file templates/box.basket.php, the code need not be changed, but only to point out that enabled languages will be in the $LANGUAGES array. Quote Link to comment Share on other sites More sharing options...
TravelinMoe Posted August 10, 2017 Author Share Posted August 10, 2017 Awesome, awesome. Worked like a charm! Thanks a bunch! 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.