Issues While Working on the Xstore Theme:

This topic has 44 replies, 3 voices, and was last updated 7 months, 2 weeks ago ago by Rose Tyler

  • Avatar: Theo
    Theo
    Participant
    September 4, 2023 at 11:16

    Thankyou, yes those issues resolved now.

    Now, please can you sort out the shopping cart translation issue. Shopping cart is still in english, while the rest is in dutch.

    please see the screenshot
    checkout

    Regards

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 4, 2023 at 20:23

    Hello, Theo,

    We have corrected the translation of the page cards. For this, we have added the following code to the functions.php of the child theme.

    add_filter('woocommerce_product_related_products_heading', function($params){
        return 'Gerelateerde producten';
    });
    
    add_filter('et_ajax_cart_text', function($params){
        if (get_bloginfo("language") == 'nl'){
            return 'Winkelwagen';
        }
    });
    
    function etheme_get_mini_cart_empty(){
        if (get_bloginfo("language") == 'nl'){
            ?>
                 <div class="woocommerce-mini-cart__empty-message empty">
                    <p><?php esc_html_e( 'Geen producten in de kar.', 'xstore' ); ?></p>
                    <?php if ( wc_get_page_id( 'shop' ) > 0 ) : ?>
                        <a class="btn" href="<?php echo get_permalink(wc_get_page_id('shop')); ?>"><span><?php esc_html_e('Keer terug naar de winkel', 'xstore') ?></span></a>
                    <?php endif; ?>
                </div>
            <?php
        } else {
            ?>
                 <div class="woocommerce-mini-cart__empty-message empty">
                    <p><?php esc_html_e( 'No products in the cart.', 'xstore' ); ?></p>
                    <?php if ( wc_get_page_id( 'shop' ) > 0 ) : ?>
                        <a class="btn" href="<?php echo get_permalink(wc_get_page_id('shop')); ?>"><span><?php esc_html_e('Return To Shop', 'xstore') ?></span></a>
                    <?php endif; ?>
                </div>
            <?php
        }
    }
    
    function etheme_woocommerce_continue_shopping() {
        if ( wc_get_page_id( 'shop' ) > 0 ){
            if (get_bloginfo("language") == 'nl'){
                echo '<a class="return-shop button btn bordered full-width" href="' . get_permalink(wc_get_page_id('shop')) . '">' . esc_html__('Doorgaan met winkelen', 'xstore') . '</a>';
            } else {
                echo '<a class="return-shop button btn bordered full-width" href="' . get_permalink(wc_get_page_id('shop')) . '">' . esc_html__('Continue shopping', 'xstore') . '</a>';
            }
        }
    }
    
    if ( ! function_exists( 'etheme_woocommerce_widget_shopping_cart_subtotal' ) ) {
        function etheme_woocommerce_widget_shopping_cart_subtotal() {
            if (get_bloginfo("language") == 'nl'){
                echo '<span class="small-h">' . esc_html__( 'Subtotaal:', 'xstore' ) . '</span> <span class="big-coast">' . WC()->cart->get_cart_subtotal() . '</span>';
            } else {
                echo '<span class="small-h">' . esc_html__( 'Subtotal:', 'xstore' ) . '</span> <span class="big-coast">' . WC()->cart->get_cart_subtotal() . '</span>';
            }
        }
    }
    
    add_filter('et_cart-checkout-nav-texts', function($params){
        if (get_bloginfo("language") == 'nl'){
            $params['cart'] = 'Winkelmand';
            $params['order'] = 'Bestelstatus';
            $params['order_received'] = 'Bedankt. Uw bestelling is ontvangen.';
            $params['checkout'] = 'Checkout';
            $params['shipping'] = 'Verzenden';
            $params['payment'] = 'Betaling';
        }
    
        return $params;
    });

    We have also rewritten the following files in the child theme.
    wp-content/themes/xstore-child/woocommerce/cart/cart-empty.php
    wp-content/themes/xstore-child/woocommerce/cart/cart.php
    wp-content/themes/xstore-child/woocommerce/cart/proceed-to-checkout-button.php
    wp-content/themes/xstore-child/woocommerce/checkout/form-checkout-default.php
    wp-content/themes/xstore-child/woocommerce/checkout/form-checkout-multistep.php
    wp-content/themes/xstore-child/woocommerce/checkout/form-checkout.php
    wp-content/themes/xstore-child/woocommerce/checkout/review-order.php

    Kind Regards,
    8theme team

    Avatar: Theo
    Theo
    Participant
    September 12, 2023 at 21:05

    Thank you so much…

    At the checkout page, the following words (see attachment) are still in English. Can you please take a look at this? After this, I believe everything on the website is in order.

    img

    Regards

    Avatar: Theo
    Theo
    Participant
    September 13, 2023 at 11:19

    please this given text need also be translated:

    2) At the checkout page, the following is still in English: Billing Details. This may be translated to factuurgegevens

    3. If you have a product in the shopping cart and want to pay for it, it says ‘check out.’ This should be translated to ‘Afrekenen’ in Dutch.

    Please can it be done asap.

    Regards

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 13, 2023 at 16:02

    Hello, Theo,

    Have you changed FTP access? We can’t connect.
    Please provide the correct credentials.

    Kind Regards,
    8theme team

    Avatar: Theo
    Theo
    Participant
    September 14, 2023 at 11:56

    please test them…

    Private Content

    let me know if it does not work.

    Regards

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 14, 2023 at 15:20

    Hello, Theo,

    BE ATTENTIVE and don’t place the private information in the general message area because all the visitors have access to that information.
    We’ve edited your message and moved credentials into the Private Content area.

    We can’t connect, please provide the correct credentials.

    Kind Regards,
    8theme team

    Avatar: Theo
    Theo
    Participant
    September 16, 2023 at 06:36

    ok thankyou

    let me check them.

    Regards

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 17, 2023 at 07:41

    Hello, Theo,

    Ok. Take your time.

    Kind Regards,
    8theme team

    Avatar: Theo
    Theo
    Participant
    September 18, 2023 at 12:01

    Please test them…

    Regards

    Please contact administrator
    for this information.
    Avatar: Theo
    Theo
    Participant
    September 19, 2023 at 06:04

    any update please….

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 19, 2023 at 14:19

    Hello, Theo,

    We are pleased to inform you that your issue has been resolved. The following code has been added to the function.php of the child theme.

    function etheme_woocommerce_widget_shopping_cart_proceed_to_checkout() {
        if (get_bloginfo("language") == 'nl'){
            echo '<a href="' . esc_url( wc_get_checkout_url() ) . '" class="button btn-checkout wc-forward">' . esc_html__( 'Afrekenen', 'xstore' ) . '</a>';
        } else {
            echo '<a href="' . esc_url( wc_get_checkout_url() ) . '" class="button btn-checkout wc-forward">' . esc_html__( 'Checkout', 'xstore' ) . '</a>';
        }
    }

    In addition, we have rewritten the following files in the child theme:
    wp-content/themes/xstore-child/woocommerce/checkout/checkout/form-billing.php

    We have also made changes to the parent theme file:
    wp-content/themes/xstore/framework/woo.php

    Please refrain from updating the theme until our next update is released. Installing version 9.1.14 is not recommended as it may cause a fatal error.

    Kind Regards,
    8theme team

    Avatar: Theo
    Theo
    Participant
    September 28, 2023 at 11:05

    Thank you so much for the updates,

    Please here see the screenshot, this page should also be updated, needs to be changed to Dutch.

    img

    Regards

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 2, 2023 at 13:19

    Hello, Theo,

    Sorry for the delay in answering.

    We can’t connect to FTP.
    Please provide correct FTP access.

    Kind Regards,
    8theme team

  • 1 2
    Viewing 44 results - 31 through 44 (of 44 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.