Top WooCommerce & WordPress Plugins › Forums › Amount Left for Free Shipping for WooCommerce › How to setup the progress bar with AJAX?
- Support forum for the Free Shipping Over Amount: Amount Left Tracker for WooCommerce.
- This topic has 4 replies, 2 voices, and was last updated 3 years ago by
Lukáš Dunaj.
- AuthorPosts
-
November 16, 2020 at 2:40 pm #88271
Lukáš Dunaj
ParticipantHello 😉
Please we’ve purchased now the plugin because of the PROGRESS BAR implementation with AJAX , but we can’t get it to work.We tried
Widget content field:
Shortcode:
[alg_wc_left_to_free_shipping content=" %amount_left_for_free_shipping% left for free shipping"]
PHP:
Sadly nothing displays working progress bar :(((
How to use the progress bar code with widget / shortcode / php ? The documentation is a bit dull on this topic.
P.S. We are using Oxygen builder so we have a custom single product page.
Thanks in forward for the answer.
November 16, 2020 at 6:34 pm #88272Lukáš Dunaj
ParticipantOk even the comment didnt like the progress bar code (deleted it) , so here is a screenshot
https://www.dropbox.com/s/sqrv5w6xz535kpu/error.JPG?dl=0
or download https://www.dropbox.com/s/sqrv5w6xz535kpu/error.JPG?dl=1November 16, 2020 at 6:39 pm #88273Hello Lukáš,
In order to display the progress bar using the widget you just need to add this to the Content field:
<progress max="%free_shipping_min_amount_raw%" value="%current_cart_total_raw%"></progress>
However, after trying to add it you probably won’t be allowed to.
I just fixed it now, so please just update the plugin to the most recent version (1.9.3) and it’s going to be ok.Let me know if it works now 😉
November 17, 2020 at 1:55 am #88274If you’re trying to use the
progress
inside the shortcode, please try to remove the double quotes from themax
andvalue
attributes, like this:max=%free_shipping_min_amount_raw% value=%current_cart_total_raw%
And Have you tried to update the plugin?
November 18, 2020 at 9:04 am #88275Lukáš Dunaj
ParticipantThank you 😉 its working now!
- AuthorPosts
- You must be logged in to reply to this topic.