Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
914 B
1
Indexable
Never
<?php
if (defined('B2BKING_DIR') && defined('MARKETKINGPRO_DIR') && intval(get_option('marketking_enable_b2bkingintegration_setting', 1)) === 1){

    if (intval(get_option('b2bking_enable_offers_setting', 1)) === 1){
        if(marketking()->vendor_has_panel('b2bkingoffers')){
            ?>
            <a href="<?php 
            $offers_link = esc_attr(trailingslashit(get_page_link(apply_filters( 'wpml_object_id', get_option( 'marketking_vendordash_page_setting', 'disabled' ), 'post' , true)))).'offers';
            $otheruser = new WP_User($otherparty);
            $link = $offers_link.'?quote='.$otheruser->user_login;
            echo $link;
            ?>"><button class="btn btn-secondary" id="b2bking_conversation_make_offer_vendor" type="button" class="b2bking_myaccount_conversation_endpoint_button"><?php esc_html_e('Make Offer','b2bking'); ?></button></a>
            <?php
        }
    }
}
?>
Leave a Comment