• Resolved prajakta ghole

    (@prajakta-ghole)


    Hi,
    Thanks for the nice plugin.I wanted to know whether it is possible to add the shortcode in template like I tried to do following :

    <?php echo do_shortcode(‘[shopify embed_type=”product” shop=”my-shop-name” product_handle=”1-4-zip-mock” show=”all”]’); ?>

    But it did not display anything, the same product gets displayed when I put this in content of page in dashboard.

    Please help, how can I display the product in my templates ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Shopify

    (@shopify)

    Hey Prajakta, you are using the plugin correctly so you can do a few things to make sure it is all working. You can try reinstalling the plugin and making sure that it is activated. Then also login to your shopify admin and click on the buy button app to make sure it is also working and authenticated.

    cheers.

    Thread Starter prajakta ghole

    (@prajakta-ghole)

    Hi,
    Thanks its working on my page templates now But its not working in my ajax call.

    add_action(‘wp_ajax_shopify_ajax_action’, ‘shopify_ajax_action’ );
    add_action(‘wp_ajax_nopriv_shopify_ajax_action’, ‘shopify_ajax_action’ );

    function shopify_ajax_action()
    {
    echo do_shortcode(‘[shopify embed_type=”product” shop=”my-shop-name” product_handle=”1-4-zip-mock” show=”all”]’);
    }

    This is not returning the product iframe, the div (class=secp-embed) and scripts are loading but only iframe is missing.Please help asap.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Product not displaying in templates’ is closed to new replies.