QR code isn’t show on some popup
-
I’m using QR code generator with product quick view plugin by firing code snipplet to generate QR from product’s SKU. It works well on single product page, and the quick view popup from related products. Anyway, the QR code image is missing when I open the quick view popup from product archive page. It seems that the QR code img tag return “” so it can’t show the QR image correctly. Please suggest.
/** Display SKU in QR code **/
add_action(‘woocommerce_product_meta_start’,’show_sku_qr_shortcode’, 1);
function show_sku_qr_shortcode(){
global $product;
$product = wc_get_product( get_the_id() );
if ( $product->get_sku() ) {
echo “scan to show SKU ID”;
echo do_shortcode(‘[kaya_qrcode content=”‘. $product->get_sku() .'”]’);
}
}The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.