• Resolved ideaware

    (@ideaware)


    Hello,
    Shortcode doesn’t work at all.
    When I try to use a widget, it shows:

    Warning: Undefined array key “content” in C:\xampp\htdocs\hih1\wp-content\plugins\amount-left-free-shipping-woocommerce\includes\class-alg-wc-widget-alfs.php on line 43

    I’m using Elementor Pro with Hello theme.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Zohaib

    (@zohaibayub85)

    Hi,

    We have tested the shortcode thoroughly on various WordPress installations and can confirm it is working. I would have requested for access to your WordPress dashboard if you had a live site to find out more about the error, but I see you are using a local installation.

    I would like to suggest please make sure you are using the latest version of the plugin.

    Zohaib

    (@zohaibayub85)

    Hi,

    Could you also try adding the content attribute to the shortcode.

    [alg_wc_left_to_free_shipping content=”%amount_left_for_free_shipping% left for free shipping”]

    Please let me know if this works or if you need further assistance with this.

    Zohaib

    (@zohaibayub85)

    [alg_wc_left_to_free_shipping content="%amount_left_for_free_shipping% left for free shipping"]

    • This reply was modified 3 years, 11 months ago by Zohaib.
    • This reply was modified 3 years, 11 months ago by Zohaib.
    Zohaib

    (@zohaibayub85)

    Hi,

    I had forgotten to add code tags. Here is the right code below

    [alg_wc_left_to_free_shipping content="%amount_left_for_free_shipping% left for free shipping"]

    Plugin Author WPFactory

    (@wpcodefactory)

    I’m closing the ticket.
    If you notice something else let me know ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Widget throws php error’ is closed to new replies.