Jump to content

In the mobile skin or is it?


fabriceunko

Recommended Posts

It should work. All the code to show Arrière is correct and functional. In the template main.php, there is:

            <div class="row">
               <div class="small-12 columns small-collapse">
                  {include file='templates/box.navigation.php'}
                  <div class="hide" id="val_lang_back">{$LANG.common.back}</div>
               </div>
            </div>

where {$LANG.common.back} is correctly replaced with Arrière. The javascript is supposed to find $('#val_lang_back') and use the inner text. But for some reason, the javascript is not using the inner text. The javascript defaults to "Back".

You can manually change this javascript code:

In the skin's 1.foundation.js file, near line 5458, find:

Foundation.libs.topbar = {

Ten lines later, find:

back_text : back_text,

Change to:

back_text : "Arrière",

Have CubeCart clear its internal cache for the change to the javascript to take effect.

However, there is an extra </footer> tag. It is after the Newsletters sign-up box and before the 3D-Secure image tag.

 

Link to comment
Share on other sites

Looking at this again, I see that you may be using a version of the Foundation skin that has had a change that would affect this.

This is what you have:

1.foundation.js, near line 5450:

;(function ($, window, document, undefined) {
  'use strict';

  Foundation.libs.topbar = {
    name : 'topbar',

    version : '5.5.2',

    settings : {
      index : 0,
      start_offset : 0,
      sticky_class : 'sticky',
      custom_back_text : true,
      back_text : 'Back',
      mobile_show_parent_link : true,

This is the latest code, but only what is different from above:

;(function ($, window, document, undefined) {
  'use strict';

  var back_text = $('#val_lang_back').text();
  if(!back_text) {
    back_text = 'Back';
  }

  Foundation.libs.topbar = {
    name : 'topbar',

    version : '5.5.2',

    settings : {
      index : 0,
      start_offset : 0,
      sticky_class : 'sticky',
      custom_back_text : true,
      back_text : back_text,
      mobile_show_parent_link : false,

Try replacing 1.foundation.js from the latest version of the Foundation skin.

This was fixed in CC6011. (See: https://github.com/cubecart/v6/issues/1013 )

Link to comment
Share on other sites

Hello, so I put file 1.foundation.js of the latest version of cubecart.
And it always remains in English.

I also tested by changing the line

    back_text = 'Back';

by

    back_text = 'Retour';

and it's still in English. I have of course cleared the cache.

Link to comment
Share on other sites

You added 1.foundation.js in the skin's /js/ folder? Yes?

Did you remove all other older foundation javascript file? It may have been named 1.foundation.min.js.

I am seeing three copies of the foundation javascript file being used:

An up-to-date version, the version you edited with 'Retour', and the older version that only shows 'Back'.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...