Two issues with the product quick preview [new]

This topic has 22 replies, 3 voices, and was last updated 1 month ago ago by Andrew Mitchell

  • Avatar: Frank
    Frank
    Participant
    December 9, 2025 at 20:39

    Hi there,

    Sorry, I changed my previous ticket too soon. there was still one issue left:
    https://www.8theme.com/topic/two-issues-with-the-product-quick-preview/

    2 – The language is in English. Where do I change this in my current setup? Please note that for a different ticket you changed something in my language settings. Please keep the settings the way they are and only tell me where to change the text. Thanks.

    Thanks for your time.

    Please, contact administrator
    for this information.
    21 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    December 10, 2025 at 11:12

    Hello @Frank,

    Thank you for providing the access details. Most of the translations are located in the Loco Translate plugin, where you can make the necessary changes. Some text can also be modified directly within the page content, if such settings are available.

    If you have questions regarding specific strings, could you please clarify which ones you would like to translate? Providing screenshots would help us better understand your request.

    Best regards,
    Jack Richardson
    The 8Theme’s Team

    Avatar: Frank
    Frank
    Participant
    December 10, 2025 at 20:22

    Hi there,

    The settings in Loco Translate for this part are correct. “In stock” is correctly translated. However, it doesn’t show up on the website. The original – English – language still shows.

    Thanks for your time.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    December 10, 2025 at 20:58

    Hello, Frank

    To ensure you get the best support, we’re escalating your request to another specialist from our team, who will take a closer look at the issue.

    They will update you as soon as possible, and we’ll make sure to keep you posted. If you have any additional details that might help, feel free to reply here.

    Thank you for your cooperation!

    Best Regards,
    The 8Theme Team

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    December 11, 2025 at 09:54

    Hello, Frank,

    Unfortunately, we were unable to find a way to do this from the admin panel. Therefore, please provide us with FTP access to your website.

    Best regards,
    8Theme Team

    Avatar: Frank
    Frank
    Participant
    December 13, 2025 at 12:47

    Hi there,

    Please see the attached private content.

    Thanks for your time.

    Please contact administrator
    for this information.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    December 15, 2025 at 09:23

    Hello, Frank,

    Unfortunately, we are unable to connect to your FTP server, as we constantly receive the following error:

    Error:          Connection timed out after 20 seconds of inactivity  
    Error:          Could not connect to server

    We have tried using a VPN and different ports, but the result remains the same.

    Best regards,
    8Theme Team

    Avatar: Frank
    Frank
    Participant
    December 15, 2025 at 21:00

    See private content area.

    Please contact administrator
    for this information.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    December 16, 2025 at 08:08

    Hello, Frank,

    We are experiencing the same error when attempting to connect. Unfortunately, the issue persists, so we kindly request that you provide the exact host and port details we should use to establish a successful connection.

    Best regards,
    The 8Theme Team

    Avatar: Frank
    Frank
    Participant
    December 16, 2025 at 10:18

    Please contact administrator
    for this information.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    December 16, 2025 at 14:46

    Hello, Frank,

    Thank you for providing access. To resolve this issue, we have added the following code to

    add_action( 'init', function () {
    	if ( wp_doing_ajax() && isset($_POST['action']) && $_POST['action'] == 'etheme_product_quick_view') {
    		switch_to_locale( get_option( 'WPLANG' ) ?: 'nl_NL' );
    	}
    }, 0 );

    wp-content/themes/xstore/functions.php
    Ideally, this code should be added to the functions.php file of the child theme. However, unfortunately, we do not have permission to edit those files.

    Therefore, we kindly ask you to move the specified code to the file located at
    wp-content/themes/xstore-child
    This is necessary to ensure that the changes are preserved after updates.

    Best regards,
    8Theme Team

    Avatar: Frank
    Frank
    Participant
    December 16, 2025 at 14:59

    Hi there,

    This seems to be a workaround, since the locale nl_NL is hardcoded. Is there no adjustable solution that will change based on the language that is set in the wordpress settings?
    For example, if i choose to switch to English now, I have to change the hardcoded code again, right?

    Thanks for your time.

    Edit:
    On top of that, it also counts for example for the quick view of the shopping cart. This has “View Basket” and “Checkout”, instead of the locale that is set. You solved a specific problem, which I’m thankful for, but the problem is broader than that. If it could be solved in general, that would be great.

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    December 16, 2025 at 17:05

    Unfortunately, there is currently no solution for this issue, as the quick view and cart are loaded via AJAX, and AJAX is executed earlier than the translation through Loco Translate. (There is no such problem with WPML.) Therefore, using a hardcoded locale is, unfortunately, the only way to translate content that is loaded via AJAX at the moment.

    Best regards,
    8Theme Team

    Avatar: Frank
    Frank
    Participant
    December 17, 2025 at 16:38

    Hi there,

    Is there any way to work around this? For example, to use WPML since you mentioned there is no problem when using that. If so, how do I go about doing so?

    Thanks for your time.

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    December 17, 2025 at 16:47

    Hello, Frank,

    Thank you for reaching out to us.
    You can indeed use WPML as a workaround. To proceed, please install and activate the WPML plugin, then configure it according to your website’s language requirements. Once set up, you should be able to manage translations without any issues.

    If you need detailed guidance on the configuration process, please let us know, and we will be happy to provide further instructions.

    Best Regards,
    8Theme’s Team

    Avatar: Frank
    Frank
    Participant
    December 18, 2025 at 23:05

    Hi there,

    I see that this is a paid plugin. Do you know any free plugins that fix the same issue?
    Alternatively, will the issue be fixed if I choose to revert back to your original language files instead of using a plugin?

    Thanks for your time.

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    December 19, 2025 at 08:06

    Hello, Frank,

    Unfortunately, we are not aware of any free plugins that meet your request. Regarding the issue with AJAX request translations, we recommend that you continue using the custom code previously provided.

    Best regards,
    8Theme Team

    Avatar: Frank
    Frank
    Participant
    December 19, 2025 at 15:16

    Hi there,

    Thanks for your help so far.
    Is there any way to use your built-in translation and edit it manually? So, get the .mo or .po file or whatever extension is used, using FTP. Then edit it locally and upload it back using FTP?
    I guess that way it will load like it normally would, and I could make the same changes as I would be making if I would use LocoTranslate.

    Thanks for your time.

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    December 19, 2025 at 17:08

    Hello, Frank,

    Unfortunately, there is no such option available. The PO and MO files are loaded only after WordPress declares the language, and during the AJAX request, this declaration has not yet been made.

    Best regards,
    8Theme Team

    Avatar: Frank
    Frank
    Participant
    December 19, 2025 at 18:42

    Hi there,

    I see. Respectfully, how would your internal language files ever work then? Will there always be untranslated parts of the site since ajax is always a thing?

    Thanks for your time.

    Avatar: Frank
    Frank
    Participant
    December 22, 2025 at 08:13

    Bump

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    December 22, 2025 at 08:58

    Hello, Frank,
    Unfortunately, such issues will always occur if the custom code or WPML plugin we previously provided is not used.

    Best regards,
    8Theme Team

  • Viewing 22 results - 1 through 22 (of 22 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.