Add custom Product Content Items to the Products.

This topic has 6 replies, 2 voices, and was last updated 8 months ago ago by Rose Tyler

  • Avatar: ProdbyDaan
    ProdbyDaan
    Participant
    August 27, 2023 at 14:38

    Hello Team, for the German market we have to display “zzgl. 19% MWst” to our Prices.

    But over the XStore theme WooCommerce Options i cant display them.
    Is there a Option or do you have a custom code for the functions.php?

    Something like this but it should show it behind the price tag

    Example:
    add_action( ‘et_before_shop_loop_title’, function(){
    echo ‘

    zzgl. 19% MWst

    ‘;
    }, 30);

    The “Germanized” Plugin doesnt add is automaticly, but they have this shortcodes:
    [gzd_product_tax_notice]
    [gzd_product_shipping_notice]
    [gzd_product_delivery_time]

    Please help.
    Thanks!

    5 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 27, 2023 at 15:06

    Hello, ProdbyDaan,

    Thank you for contacting us and for using XStore.

    Please try to use the next custom CSS code:

    .amount::before {
      content: 'zzgl. 19% MWst';
      margin-right: 5px;
    }

    We hope this information is helpful.

    Kind Regards,
    8theme team

    Avatar: ProdbyDaan
    ProdbyDaan
    Participant
    August 27, 2023 at 16:10

    Hey Team, now its showing everywhere 🙂

    I only need it at the …/shop at the Products.
    Is that possbile?

    For the Cart/Checkout, my “Germanized” Plugin showing it already.

    Thanks.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 27, 2023 at 16:59

    Hello, ProdbyDaan,

    In this case, please change the code to:

    .post-type-archive-product .amount::before,
    .tax-product_cat .amount::before {
      content: 'zzgl. 19% MWst';
      margin-right: 5px;
    }

    Kind Regards,
    8theme team

    Avatar: ProdbyDaan
    ProdbyDaan
    Participant
    August 27, 2023 at 22:08

    Okay one last thing,
    it apers now in the mini-cart too.
    Can i remove it from the mini cart?

    Thanks always!! 🙂

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 28, 2023 at 07:42

    Hello, ProdbyDaan,

    In this case, please change the code to:

    .post-type-archive-product .products-loop .amount::before,
    .tax-product_cat .products-loop .amount::before {
      content: 'zzgl. 19% MWst';
      margin-right: 5px;
    }

    Kind Regards,
    8theme team

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

The issue related to '‘Add custom Product Content Items to the Products.’' has been successfully resolved, and the topic is now closed for further responses

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