// Shortcode to use add_shortcode("Product_Templates_Mirror_display", "Product_Templates_Mirror_display"); function custom_woocommerce_before_cart() { // Get the author ID (the vendor ID) and phone number $vendor_id = get_post_field( 'post_author', get_the_id() ); $vendor = dokan()->vendor->get( $vendor_id ); $phone = $vendor->get_phone(); $text = get_option('orderonwhatsapp_Beginning_message'); $number = $phone; $urlimgthumb= wp_get_attachment_url(get_post_thumbnail_id(get_the_ID())); $product_title= get_the_title(); $productx = get_page_by_title( $product_title, OBJECT,'product' ); $product_height = get_post_meta( $productx->ID,'_my_meta_value_keyyQ',true ); $product_width = get_post_meta( $productx->ID,'_my_meta_value_key',true ); $urlp = get_permalink(get_the_ID()); $urlimg= plugins_url('img/buttontryeiton.png',__FILE__) ; $urldelimg= plugins_url('img/buttovntryeiton.png',__FILE__) ; $product_url=get_post_meta( get_the_ID(),'_my_meta_value_keyy',true ); $product = wc_get_product(); $id = $product->get_id(); echo"
"; }