ulihake
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce Poor Guys Swiss Knife] Checkbox fieldHello tzeldin88.
Thanks for your feedback. From version 1.8.1 onwards you can implement further customization for site specific needs with javascript.
WCPGSK has two methods to attach javascript:
1. You can edit with the WordPress editor for plugins a file with the name wcpgsk_user.js. There you can put your code. The drawback is that your changes will be lost when updating the plugin. For this reason there exists
2. A textarea within the checkout section where you can put your tested code and store it in the database. This code won’t be lost and will be loaded with the checkout form as well
You can make your checkbox required and at the same time you can achieve that the checkbox is not checked on load with a code similar to this:
jQuery(document).ready(function() { jQuery('#billing_yourcheckbox_field').find('input[name="billing_yourcheckbox"]').each(function() { jQuery(this).prop('checked', false); }); });With jQuery you can append your text also. I will implement a dedicated solution for this into the Rich Guys Swiss Knife but with these indications you can achieve this yourself.
Regards.
uh
Forum: Plugins
In reply to: [WooCommerce Poor Guys Swiss Knife] Dropdown list from APIThis won’t work:
<script type="text/javascript" src="http://klients.pastastacija.lv/api/terminals.js"></script>The code in wcpgsk_user.js has to be adapted to your specific situation. It’s essentially the same code you try to load with terminals.js and you should never load code twice.
I understand that it would be great for you to have the same id as expected in the external js file but this does not work with the internal processing of WooCommerce. Billing fields are billing_something ids and shipping fields are shipping_something ids.
These are the last hints for your problem.
uli
Forum: Plugins
In reply to: [WooCommerce Poor Guys Swiss Knife] Dropdown list from APIOne thing: You should not paste your code into the “options box”. The code has to be placed or inside the wcpgsk-user.js file or inside the textarea in the checkout section. And you have to adapt the code to meet the id of your field.
But once again, these are problems that are not related with my plugin. If you like to pay for this service you will find people that may help you with this. Maybe somebody reading this could offer you some dedicated help.
Regards.
uhHello Brendavo.
I understand that you need support for your specific problems. But these problems are really implementation problems of your and only your site. Think of asking people to help you out and to pay for that. You can find within the WordPress Forum dedicated channels for this.
Regards.
uhForum: Plugins
In reply to: [WooCommerce Poor Guys Swiss Knife] Dropdown list from APIHello Brendavo.
I have tested the solution I’ve offered to you and others as enhancement of the plugin. I used your!!! javascript code to do so. And it works. I’m not able to address such specific implementation problems. This is work of a programmer/consultant but it’s not in the scope of a free plugin to solve these site specific problems.
You stated that you’re building and running a website with heavy needs of customization. A plugin author is not a substitution for services you need to buy if necessary.
Sorry to be that clear, but I can’t dedicate my time on solving personal problems.
I hope you can understand this.
Regards.
uhupps… it was there… but not visible on screen directly…
Anyhow. Good luck with your website
And sorry, this is the code you need…
jQuery('#billing_testselect_field').find('input[name="billing_testselect"]').each(function() { jQuery(this).prop('checked', false); });the each part was missing…
Hope this helps you to understand how to manipulate your fields for your specific needs in the future.
uh
Hello Brendavo.
This is in fact not a bug, this is a specific implementation problem you have with a third party script that you like to combine with WCPGSK. If I’d start to give support for each and every implementation problem that people encounter I would not be able to do anything else… This is free software but this does not mean that I write code and scripts for your particular website.
You can however adapt the script I sent to you for your other problem. A bit of JQuery documentation and you will be able to set the state of all your radio buttons to unchecked. I include a last line of code for your particular website, but please understand that I cannot help you with these problems if they are not related to real bugs in WCPGSK.
jQuery('#billing_testselect_field').find('input[name="billing_testselect"]').each(function() { jQuery(this).prop('checked', false); });Regards.
uh
Forum: Plugins
In reply to: [WooCommerce Poor Guys Swiss Knife] Adding css class with jquery doesnt workHello Brendavo.
You have to encapsulate your script like this to assure that it runs when the document is completely available (ready):
jQuery(document).ready(function() { jQuery("#billing_pastastacija_field").addClass("secondxxx"); });I have tested this and this works.
Regards.
uhForum: Plugins
In reply to: [WooCommerce Poor Guys Swiss Knife] Adding custom class to fieldsThis was closed. If you have problems using the solution I implemented for these special use cases please open a new thread.
uh
Forum: Plugins
In reply to: [WooCommerce Poor Guys Swiss Knife] Select Options from xml, json, csvFound this open again. If you have problems with this, please open a new thread.
Thanks.
uhForum: Plugins
In reply to: [WooCommerce Poor Guys Swiss Knife] Brakes my-account/edit-address layoutA post scriptum on that: WooCommerce shows the my-account-page as well with form-row-wide, I believe… and I implemented this because somebody told me that the custom fields would not respect this behavior on the my-account-page. But as I told you, I may implement this as option…
uh
Forum: Plugins
In reply to: [WooCommerce Poor Guys Swiss Knife] Brakes my-account/edit-address layoutYeah, that’s true. As the my-account page splits handling of billing and shipping address forms I felt that the layout with form-row-wide is cleaner. If I get some more complaints about this, I may offer this as an optional behaviour.
uh
Forum: Plugins
In reply to: [WooCommerce Poor Guys Swiss Knife] Adding custom class to fieldsHello again.
You may solve this with the custom js you can add from version 1.8.1 onwards. A simple jquery script allows you to add a css class to your custom fields.
With reference to the function you mentioned: My plugin does not include a function with the name custom_override_checkout_fields nor does WooCommerce… The only thing I can offer you with the current update is the solution stated above.
Regards.
uhForum: Plugins
In reply to: [WooCommerce Poor Guys Swiss Knife] Breaks the "sold individually" functionI will publish an update today which addresses this problem. Sorry for this…
uh