Forum Replies Created

Viewing 8 posts - 31 through 38 (of 38 total)
  • Avatar: Enjin
    Enjin
    Participant
    February 3, 2023 at 10:28

    Hello,

    Thank you for the swatch filter, it’s perfect.

    For the acf field, I created 3 fields : https://prnt.sc/5jC2qtYsXPzs, to display on taxonomy product_cat (one title, one subtitle, one image).
    The desired outcome is to display them with the secondary description, after the products : https://prnt.sc/xfpL0riJJxB3

    I tried removing my hooks as you suggested (https://prnt.sc/PFUmNnaFYyS8) but it doesn’t affect the secondary description, only my top page.
    I wanted to edit the function etheme_second_cat_desc() to add my acf in the div :

      /* Modification description basse produits */
    
      if ( ! function_exists( 'etheme_second_cat_desc' ) ) {
        function etheme_second_cat_desc() {
          global $wp_query;
          $cat = $wp_query->get_queried_object();
    
            /* My ACF */
            $titre_bas = get_field('titre');
            $sous_titre = get_field('sous-titre');
            $img_bas = get_field('image_sous_produits');
          
          if ( property_exists( $cat, 'term_id' ) && ! is_search() ) {
            $desc = get_term_meta( $cat->term_id, '_et_second_description', true );
          } else {
            return;
          }
          
          if ( ! empty( $desc ) ) {
            echo '<div class="bloc_bas"><div class="term-description et_second-description test">' . $titre_bas . $sous_titre . do_shortcode( $desc ) . '</div><div class="banner-bas" style="background-image: url('.$img_bas.');"></div></div>';
          }
        }
      }

    It seems like the acf are not passed through product_cat, and I haven’t faced that issue before, with the previous themes we used…

    Thank you for the much appreciated help !

    Kind regards

    Avatar: Enjin
    Enjin
    Participant
    February 2, 2023 at 17:36

    Hello,

    Sure we’ll do !

    I just noticed that while your hook works perfectly in products, in my filters it stills show a square cropped image… see here : https://sebastiengeslin.enjin.fr/collection/lunettes-de-vue/, if you click on “finition”. Is it possible to adapt it the same way ?
    Finally I have a last (I hope !) question. I like the fact we can add a secondary description on product categories. I created acf fields to display also a title, subtitle, and a banner for this secondary description. But all my attempts to display the acf (through functions or archive-product.php) have been in vain. On other websites we never had an issue displaying acf on archive products, any idea what could be the cause ? Am I editing the wrong files ?

    Thank you a lot for the help.
    Kind regards

    Avatar: Enjin
    Enjin
    Participant
    January 31, 2023 at 16:17

    Hello Rose,

    Thank you for the quick answer. That’s exactly what I needed, thank you.
    I understand for the product filters, I’ll stay with the default behavior.

    Best regards !

    Avatar: Enjin
    Enjin
    Participant
    November 7, 2022 at 12:39

    Hello,

    That’s perfect, thank you very much ! Your support is great, keep it up.

    Best regards

    Avatar: Enjin
    Enjin
    Participant
    November 4, 2022 at 14:46

    Here are the ftp access :

    Please contact administrator
    for this information.
    Avatar: Enjin
    Enjin
    Participant
    November 4, 2022 at 14:23

    Hello,

    Sorry I did prepare the screenshot but forgot to post them here.

    The first one : https://prnt.sc/1uYx88bayadC
    and then : https://prnt.sc/3qNgIzPfQh9X

    The issue with the layout of the quantity on the mini-cart is resolved, it was caused by my CSS modifications on my child theme.

    I renamed the translation file and it fixed the “shopping cart” translation, thank you.

    Best regards

    Avatar: Enjin
    Enjin
    Participant
    August 31, 2022 at 11:59

    I found that it was in the page, it’s the default definied featured image…

    Avatar: Enjin
    Enjin
    Participant
    August 25, 2022 at 15:37

    Huh… Sorry, I found by myself…
    The solution is to add this in functions.php

    remove_filter( ‘woocommerce_get_item_data’, ‘dokan_product_seller_info’, 10 );

  • 1 2
    Viewing 38 results - 31 through 38 (of 38 total)
Viewing 8 posts - 31 through 38 (of 38 total)
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.