Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter soisita

    (@soisita)

    Many thanks for this prompt reply!
    Just bought the pro version for other features ??

    Hi,
    On my side, it breaks Chrome pages in admin only with very specific elements:
    it seems to break only some Woocommerce products
    I’ve tried to change some elements but I cannot identify what makes some products break Chrome & some other not. (tried tags, cat, cross sell, up sell without success)
    hope this might help
    using Avada, but other elements are same as for other folks
    Thx

    Hi,
    It was in woocommerce-fr_FR.po

    But as I said, the translation from the .po / .mo didn’t work for me…
    However, the sentence came from theme personalisation, on WooCommerce / Checkout tab

    well… Found it in personalisation of the theme > woocommerce tab > checkout tab
    Changing it there works for me

    Hi,

    On my side (for French translation), what is strange is that I can see the translated sentences in the .po file, which is same as the one called in #: includes/wc-template-functions.php:756

    but it is still in english on checkout page (using Avada, but no string like that is overwritten by avada)

    Any idea?

    Thx

    #. translators: %s privacy policy page name and link
    #: includes/admin/settings/class-wc-settings-accounts.php:150
    #: includes/customizer/class-wc-shop-customizer.php:736
    #: includes/wc-template-functions.php:756
    msgid “Your personal data will be used to process your order, support your experience throughout this website, and for other purposes described in our %s.”
    msgstr “Vos données personnelles seront utilisées pour le traitement de votre commande, vous accompagner au cours de votre visite du site web, et pour d’autres raisons décrites dans notre %s.”

    #. translators: %s privacy policy page name and link
    #: includes/admin/settings/class-wc-settings-accounts.php:140
    #: includes/wc-template-functions.php:760
    msgid "Your personal data will be used to support your experience throughout this website, to manage access to your account, and for other purposes described in our %s."
    msgstr "Vos données personnelles seront utilisées pour vous accompagner au cours de votre visite du site web, gérer l’accès à votre compte, et pour d’autres raisons décrites dans notre %s."
            switch ( $type ) {
                    case 'checkout':
                            /* translators: %s privacy policy page name and link */
                            $text = get_option( 'woocommerce_checkout_privacy_policy_text', sprintf( __( 'Your personal data will be used to process your order, support your experience throughout this website, and for other purposes described in our %s.', 'woocommerce' ), '[privacy_policy]' ) );
                            break;
                    case 'registration':
                            /* translators: %s privacy policy page name and link */
                            $text = get_option( 'woocommerce_registration_privacy_policy_text', sprintf( __( 'Your personal data will be used to support your experience throughout this website, to manage access to your account, and for other purposes described in our %s.', 'woocommerce' ), '[privacy_policy]' ) );
                            break;
            }
    Thread Starter soisita

    (@soisita)

    Hi Daniel,
    Any news about this?
    Thx!

    Thread Starter soisita

    (@soisita)

    Hi Daniel,
    No pb… Thanks for the reply ??
    Actually, if we could add a shortcode the way I did before last update, or if you accept in the shortcode more arguments, that would be perfect ??

    Thread Starter soisita

    (@soisita)

    Well…
    If it helps, I’ve been back to your shortcode, but with some changes on the shortcode handler (which is not nice, I know, unless you add this to a future version ?? ):
    ###################

    function a_z_shortcode_handler( $attributes ) {
            $attributes = shortcode_atts(
                    array(
                            'column-count' => 1,
                            'minimum-per-column' => 10,
                            'heading-level' => 2,
                            'display' => 'posts',
                            'post-type' => 'page',
                            'taxonomy' => '',
                            'terms' => '',
                            'numbers' => 'none',
    //<XXX
                    'category-not-in' => '',
    //XXX>
    
                    ), $attributes, 'a-z-listing'
            );
    
            if ( ! empty( $attributes['taxonomy'] ) && 'terms' === $attributes['display'] ) {
                    $a_z_query = new A_Z_Listing( $attributes['taxonomy'] );
                    return $a_z_query->get_the_listing();
            }
    //<XXX
            $excludecat = explode( ',', $attributes['category-not-in'] );
            $excludecat = array_map( 'trim', $excludecat );
            $excludecat = array_unique( $excludecat );
    //XXX>
    
            $post_types = explode( ',', $attributes['post-type'] );
            $post_types = array_map( 'trim', $post_types );
            $post_types = array_unique( $post_types );
    
            $query = array(
                    'post_type' => $post_types,
    //<XXX
                    'category__not_in' => $excludecat,
    //XXX>
            );

    ###################
    and the shortcode example:
    [a-z-listing post-type="post" taxonomy="category" terms="horses" orderby="postname" category-not-in="1,53"]

    My other concern now is to index the listing based on slug and not title…
    Meaning I want my posts to be sorted and grouped by letters based on slug (postname), but with titles displayed below the letters

    example:
    A
    Mickael Andrew

    D
    Katie Douglas

    (and the slugs being andrew-mickael, douglas-katie)

    The “orderby” I used before seems not to work on “tax_query” and I don’t want to go too deep into your class ??

    Thanks!

    soisita

    (@soisita)

    Hi Tib,
    What version of WP have you installed?
    Juste tried a few minutes ago & it works on my side

Viewing 9 replies - 1 through 9 (of 9 total)