Home Forums WoodMart support forum NO after "Add to cart button" text area content!

NO after "Add to cart button" text area content!

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #68766

    b4hr4m
    Participant

    Hi,
    The after text area content somehow goes inside the wishlist div and it doesn’t show any content. Installed fresh new theme with no child theme customization and also disabled wishlist plugin but still had a problem. Please check the attachment.

    Attachments:
    You must be logged in to view attached files.
    #68772

    Hello,

    Please update your theme. Follow the instructions provided: https://xtemos.com/docs/woodmart/update-theme-2/

    Best Regards

    #68773

    b4hr4m
    Participant

    I already did that! Still nothing

    #68775

    b4hr4m
    Participant

    Even if I deactivate the YITH WooCommerce Wishlist plugin, still the after add to cart content goes inside the div with “wishlist-btn-wrapper” class:

    <div class="wishlist-btn-wrapper">
         <div class="woodmart-after-add-to-cart">sfsdfsdf</div>
    </div>
    #68783

    b4hr4m
    Participant

    I found the problem in woocommerce.php in inc folder:

    This is the code for after add to cart section:

    add_action( 'woocommerce_single_product_summary', 'woodmart_after_add_to_cart_area', 31 );

    And this is for wishlist section:

    add_action( 'woocommerce_single_product_summary', 'woodmart_before_wishlist_button', 30 );
    add_action( 'woocommerce_single_product_summary', 'woodmart_after_wishlist_button', 32 );

    As you can see, the “woodmart_after_add_to_cart_area” will go inside the “woodmart_after_wishlist_button” because of the 31 value.

    I changed the code to this:

    add_action( 'woocommerce_single_product_summary', 'woodmart_after_add_to_cart_area', 30 );
    
    add_action( 'woocommerce_single_product_summary', 'woodmart_before_wishlist_button', 31 );
    add_action( 'woocommerce_single_product_summary', 'woodmart_after_wishlist_button', 32 );

    And it works now!

    I didn’t change this file at all so I don’t know if this caused the problem or not! Am I right about the solution?

    #68796

    Hello,

    Please add this code to functions.php of the child theme:

    remove_action( 'woocommerce_single_product_summary', 'woodmart_before_wishlist_button', 30 );
    remove_action( 'woocommerce_single_product_summary', 'woodmart_after_wishlist_button', 32 );

    And this code to Theme Settings > Custom CSS > Global CSS:

    .summary-inner > .yith-wcwl-add-to-wishlist {
      display: inline-block;
      vertical-align: middle;
      line-height: 1;
      font-size: 0;
      margin-right: 20px;
      margin-bottom: 20px; }
      .summary-inner > .yith-wcwl-add-to-wishlist a {
        display: inline-block;
        vertical-align: middle;
        font-size: 14px;
        line-height: 1;
        font-weight: 600;
        color: #333333;
        position: relative; }
        .summary-inner > .yith-wcwl-add-to-wishlist a:before {
          margin-right: 5px;
          font-weight: normal;
          vertical-align: middle;
          display: inline-block; }
      .woodmart-dark .summary-inner > .yith-wcwl-add-to-wishlist a {
        color: white; }
    .summary-inner > .yith-wcwl-add-to-wishlist a {
      letter-spacing: 0;
      padding: 0;
      background-color: transparent;
      text-transform: none; }
      .summary-inner > .yith-wcwl-add-to-wishlist a:before {
        transition: opacity .1s ease;
        -webkit-transition: opacity .1s ease; }
      .summary-inner > .yith-wcwl-add-to-wishlist a:after {
        content: "";
        width: 14px;
        height: 14px;
        display: inline-block;
        vertical-align: middle;
        border: 1px solid #bbbbbb;
        border-left-color: #333333;
        border-radius: 50%;
        position: absolute;
        top: 50%;
        left: 0;
        margin-top: -7px;
        opacity: 0;
        transition: opacity .2s ease;
        -webkit-transition: opacity .2s ease; }
      .summary-inner > .yith-wcwl-add-to-wishlist a:focus, .summary-inner > .yith-wcwl-add-to-wishlist a:hover {
        box-shadow: none; }
    .woodmart-dark .summary-inner > .yith-wcwl-add-to-wishlist a:after {
      border-color: rgba(255, 255, 255, 0.15);
      border-left-color: white; }
    .summary-inner > .yith-wcwl-add-to-wishlist a {
      display: inline-flex;
      align-items: center;
      flex-direction: row; }
      .summary-inner > .yith-wcwl-add-to-wishlist a:before {
        content: "\f108";
        font-family: "woodmart-font"; }
    .summary-inner > .yith-wcwl-add-to-wishlist .woodmart-tooltip-label {
      display: none; }
    .summary-inner > .yith-wcwl-add-to-wishlist .yith-wcwl-add-button.feid-in > a:after {
      opacity: 1;
      animation: wd-rotate 450ms infinite linear; }
    .summary-inner > .yith-wcwl-add-to-wishlist .yith-wcwl-add-button.feid-in > a:before {
      opacity: 0; }

    Best Regards

Viewing 6 posts - 1 through 6 (of 6 total)