Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter idigmarketing

    (@idigmarketing)

    /**
    * Returns the custom dependency notice.
    *
    * @since 1.2.0
    *
    * @param WC_Product $product
    * @return string $notice
    */
    public function get_dependency_notice( $product ) {

    if ( WC_PD_Core_Compatibility::is_wc_version_gte_2_7() ) {
    $notice = $product->get_meta( ‘_dependency_notice’, true );
    } else {
    $notice = get_post_meta( $product->id, ‘_dependency_notice’, true );
    }

    return $notice;
    }

    Thread Starter idigmarketing

    (@idigmarketing)

    I think its this function I need to adjust

    Plugin Author Jason Kytros

    (@jasonkytros)

    Hey there,

    Thanks for reaching out!

    We tried adding a hyperlink in the Custom Notice field and indeed it seems that it is not rendered correctly! Thank you for bringing this to our attention!

    We managed to fix this issue by slightly modifying the code that renders the Custom Notice field. The fix is included in the latest pre-release Product Dependencies version, which you can download directly from our repository: https://github.com/somewherewarm/woocommerce-product-dependencies

    Let us know how this goes once you have a chance to test it! ??

    Cheers,
    Jason Kytros
    Support Engineer

    SomewhereWarm SMPC
    https://somewherewarm.gr/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Link in Custom notice’ is closed to new replies.