• Resolved hilllander

    (@hilllander)


    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]

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

    (@hilllander)

    Work around by force load 3 JS library files in page header.

    • This reply was modified 3 months, 3 weeks ago by hilllander.
    Plugin Author Kaya Studio

    (@kayastudio)

    Hi,

    Indeed it seems that some AJAX display of QR Codes have troubles if the JS library are’nt loaded at the same time.

    I will looking to fix that behavior on next update.

    Thank you for your report !

    Best regards.

    I assume you still haven’t fixed the problem above. I’ve encountered the same problem when using the QR shortcodes within a JetEngine ‘listing’ on an Elementor page. Adding a dummy QR shortcode {display:none} on the page directly rectifies the problem.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.