Page 5 of 7

Re: X3.31.0 Cart, Breadcrumbs and Files :lion_face:

Posted: 22 Aug 2022, 23:48
by mjau-mjau
trpgforum wrote:I'm sorry. Now I have tested the CSS-following hack, But it doesn't work :-(
Do you have a link? I have tested it successfully here.
Image
Image
You could try this:
Code
.x3-cart-show-order-form {
  --x3-cart-text-order: 'Bestellen' !important;
}

Re: X3.31.0 Cart, Breadcrumbs and Files :lion_face:

Posted: 23 Aug 2022, 12:01
by trpgforum
Hello Karl

Now it works!! Thank you!
Code
.x3-cart-show-order-form {
  --x3-cart-text-order: 'Bestellen' !important;
}
Best regards
Thomas 

Re: X3.31.0 Cart, Breadcrumbs and Files :lion_face:

Posted: 23 Aug 2022, 23:10
by mjau-mjau
trpgforum wrote:Now it works!! Thank you!
Assuming you have other custom CSS that translates the rest of the cart interface into German? Could it be that you placed this new CSS at the top, above the other translation values? The CSS noted in this post should probably be at the bottom, below your other values, so that it has the ability to override. In this case, you could probably remove the "!important" rule ...

Re: X3.31.0 Cart, Breadcrumbs and Files :lion_face:

Posted: 24 Aug 2022, 15:00
by Ch3ck3rM0n
mjau-mjau wrote:
Ch3ck3rM0n wrote: Hi all, I am sorry but I have the problem that i can not find Breadcrumbs in the settings. Do i searching wrong?
Strange. Could you give me login to your control panel so I can diagnose? I can't explain it from just seeing the screenshot.
I found the issue, the panel was still cached on browser and server side.

Re: X3.31.0 Cart, Breadcrumbs and Files :lion_face:

Posted: 24 Aug 2022, 15:27
by trpgforum
mjau-mjau wrote:
23 Aug 2022, 23:10
trpgforum wrote:Now it works!! Thank you!
Assuming you have other custom CSS that translates the rest of the cart interface into German? Could it be that you placed this new CSS at the top, above the other translation values? The CSS noted in this post should probably be at the bottom, below your other values, so that it has the ability to override. In this case, you could probably remove the "!important" rule ...
Indeed a very good idea! I will try it as soon as possible!

Re: X3.31.0 Cart, Breadcrumbs and Files :lion_face:

Posted: 26 Aug 2022, 05:16
by metallissimus
Is it possible to name these "undefined" labels?

Re: X3.31.0 Cart, Breadcrumbs and Files :lion_face:

Posted: 26 Aug 2022, 06:02
by mjau-mjau
metallissimus wrote: Is it possible to name these "undefined" labels?
I'm actually not sure how you got "undefined" there. Even in the German demo on our website, these titles are translated. The only reason "Layout" remains the same is because I believe the German translation is also "Layout". The other hover titles appear in German:
https://cart.photo.gallery/interface-texts/

Re: X3.31.0 Cart, Breadcrumbs and Files :lion_face:

Posted: 26 Aug 2022, 11:21
by metallissimus
Must be a local issue on my computer. I am using Firefox, also tried a new private window.

Re: X3.31.0 Cart, Breadcrumbs and Files :lion_face:

Posted: 27 Aug 2022, 00:06
by mjau-mjau
metallissimus wrote: Must be a local issue on my computer. I am using Firefox, also tried a new private window.
And the other buttons also show undefined? There seems to be a circumstantial bug somewhere, as I managed to created it once in Firefox, but it was resolved when I refreshed the page. In the demo, I have the CSS added to PAGE SETTINGS though ... Did you try to translate the texts already on your own website? I think it should work fine if you add to global Settings > Custom CSS.

It also works from browserling.com:
Image

Re: X3.31.0 Cart, Breadcrumbs and Files :lion_face:

Posted: 29 Aug 2022, 03:34
by metallissimus
mjau-mjau wrote: And the other buttons also show undefined? There seems to be a circumstantial bug somewhere, as I managed to created it once in Firefox, but it was resolved when I refreshed the page.
Yeah, they do, refreshing doesn't solve it.
Did you try to translate the texts already on your own website? I think it should work fine if you add to global Settings > Custom CSS.
I already did and the translations are where you recommend.

You can try yourself here: https://www.danielbollinger.de/template ... l-galerie/

Re: X3.31.0 Cart, Breadcrumbs and Files :lion_face:

Posted: 29 Aug 2022, 04:41
by mjau-mjau
I have tested locally, and I can confirm the issue in Firefox. I did some tests, and unfortunately, this is a Firefox bug, because there is nothing wrong with the order of execution, and it works consistently in all other browsers. It's clearly reading the custom CSS variables (else, English would remain, as default), but for some reason, it's returning "undefined" when it actually finds them. I tried various fixes, but it's unknown why Firefox does this ... I will need to look into it on a deeper level. For now, you have three options:
  • Ignore the issue on Firefox. It's only tiny titles on hover, and Firefox only has 3% market penetration. User would mostly understand what the icons are for, and if not, they will when they click it.
  • Remove translations for the button "title" items, so that titles remain in English.
  • Add a dirty Javascript hack that checks on interval when the cart is created, and then proceed to manually assign the title attribute for these buttons.

Re: X3.31.0 Cart, Breadcrumbs and Files :lion_face:

Posted: 29 Aug 2022, 04:55
by metallissimus
mjau-mjau wrote:
  • Ignore the issue on Firefox. It's only tiny titles on hover, and Firefox only has 3% market penetration. User would mostly understand what the icons are for, and if not, they will when they click it.
I'll go with this. Thanks for checking it out!

Re: X3.31.0 Cart, Breadcrumbs and Files :lion_face:

Posted: 05 Oct 2022, 03:47
by Kamil.Lebiecki
Is there an option (or how can I do it by myself) to get this Cart feature translated into Polish language? Thanks!

Re: X3.31.0 Cart, Breadcrumbs and Files :lion_face:

Posted: 05 Oct 2022, 03:49
by mjau-mjau
Kamil.Lebiecki wrote: Is there an option (or how can I do it by myself) to get this Cart feature translated into Polish language? Thanks!
There is an example of this on the Cart demo page:
https://cart.photo.gallery/interface-texts/

Click "Cart text CSS variables" to see the CSS to add to your Settings > Custom > Custom CSS.

Re: X3.31.0 Cart, Breadcrumbs and Files :lion_face:

Posted: 10 Oct 2022, 07:55
by Kamil.Lebiecki
Thanks! You helped me a lot! :slight_smile: