• Resolved JuanjoChin

    (@juanjochin)


    Hi, I’ve made a table in a database that contains a list of ASIN from several products, then, by an AJAX request I get some of them and put them in a ‘div’ via jQuery.ready function, but finally the shortcode [ASA something]theASIN[/ASA] is printed, as normal text, and the ASA request hasn’t been made at all.

    Is there anyway to hold the ASA request waiting until a previous AJAX request has been done?

    Thank you!

    https://wordpress.org/plugins/amazonsimpleadmin/

Viewing 1 replies (of 1 total)
  • Plugin Author Timo

    (@worschtebrot)

    Hi,

    if you just load a piece of HTML code containing a shortcode with an AJAX request, no plugin will replace its shortcodes. What would work is passing the HTML code through the php function “do_shortcode” (https://developer.wordpress.org/reference/functions/do_shortcode/) on the PHP side, before you pass it back to the browser.

    I hope I was able to help you. If you still have questions, please let me know.

Viewing 1 replies (of 1 total)
  • The topic ‘How to make the request by adding the ASIN with jQuery’ is closed to new replies.