Kleor
Forum Replies Created
-
Thank you for your quick answer! Indeed, this file wasn’t loaded in the page, so I added this code:
<script src="/wp-content/plugins/woorewards/js/pointsoncart.js"></script>
and now it works! ??
I have 2331 points, but nothing happens when I click the “Use Max Amount” button. I can enter a number in the input area, but even with at least one point in this area, nothing happens when I click the “Apply” button. Maybe you can tell me what I need to replace XXXXX with in this code to make it work:
<script> inputs = document.querySelectorAll("input.lws_wr_pointsoncart_amount_value"); inputs.forEach((input) => { if (input.getAttribute("name") == "lws_wr_pointsoncart_amount_value") { points_input = input; data_usemax = input.getAttribute("data-usemax"); } }); buttons = document.querySelectorAll("button.lwss_selectable"); buttons.forEach((button) => { button.disabled = false; data_id = button.getAttribute("data-id"); if (data_id == "lws_woorewards_points_to_cart_action_max") { use_max_amount_button = button; } if (data_id == "lws_woorewards_points_to_cart_action_update") { apply_points_button = button; } }); use_max_amount_button.setAttribute("onclick", "points_input.value = data_usemax;"); apply_points_button.setAttribute("onclick", "XXXXX"); </script>
Even, if it’s a PHP function instead of a JavaScript code, it’s not a problem because I know how to make an AJAX request.
Forum: Plugins
In reply to: [WooCommerce] Bug with variations since 4.5Unfortunately, Enable jQuery Migrate Helper doesn’t fix it.
Forum: Plugins
In reply to: [WooCommerce] Bug with variations since 4.5I just reverted back. You can download the version 4.4.1 here.
Forum: Plugins
In reply to: [WooCommerce] Bug with variations since 4.5More informations about this bug: with the version 4.5, you can select an amount between 10 EUR and 200 EUR, but on the shopping cart, it will always be 10 EUR whatever the amount you chose. This bug disappears with WooCommerce 4.4.1.
Forum: Plugins
In reply to: [Easy Timer] Show server timeTry to use the offset attribute:
[clock offset=1]
Forum: Plugins
In reply to: [Easy Timer] Show server timeRead this.
The time is displayed according to the time zone of your website. Set correctly your time zone via the WordPress Administration Panel if you have not done.
The offset attribute is the offset (in hours) to UTC time. You can specify any relative number for this attribute.
Forum: Plugins
In reply to: [Easy Timer] Can this plugin display years also?No, it can’t. I thought you wanted to do this.
Forum: Plugins
In reply to: [Easy Timer] Can this plugin display years also?Of course. Read the documentation.
Forum: Plugins
In reply to: [Easy Timer] Timer End timeNo
Forum: Plugins
In reply to: [Easy Timer] How to use this plugin in English in a France Language site?Modifiez également le fichier includes/lang-js.php.
Edit the includes/lang-js.php file too.
Forum: Plugins
In reply to: [Easy Timer] Count down repeatly weekly show content.[countdown date=2015/09/07-22//2015/09/07-23 period=7] Just [timer] before Monday 10pm![after] Hidden content[/countdown]
Forum: Plugins
In reply to: [Easy Timer] Parallel languages on 1 website?No. Contact another developer to do this work for you. Or use another plugin.
Forum: Plugins
In reply to: [Easy Timer] Parallel languages on 1 website?1. No
2. No. It was 4 years ago and I don’t have these versions anymore. Moreover, even if sill had them, they would be totally obsolete. Contact koostamas and expect that he will help you.Forum: Reviews
In reply to: [Easy Timer] Good but with bugsI just checked these shortcodes and they all work correctly. 2 possibilities:
- You don’t understand how these shortcodes are intended to work.
- There is a problem on your website.