Forum Replies Created

Viewing 15 replies - 421 through 435 (of 530 total)
  • Plugin Author ulihake

    (@ulih)

    Hello 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

    Plugin Author ulihake

    (@ulih)

    This 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

    Plugin Author ulihake

    (@ulih)

    One 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.
    uh

    Plugin Author ulihake

    (@ulih)

    Hello 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.
    uh

    Plugin Author ulihake

    (@ulih)

    Hello 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.
    uh

    Plugin Author ulihake

    (@ulih)

    upps… it was there… but not visible on screen directly…

    Anyhow. Good luck with your website

    Plugin Author ulihake

    (@ulih)

    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

    Plugin Author ulihake

    (@ulih)

    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

    Plugin Author ulihake

    (@ulih)

    Hello 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.
    uh

    Plugin Author ulihake

    (@ulih)

    This was closed. If you have problems using the solution I implemented for these special use cases please open a new thread.

    uh

    Plugin Author ulihake

    (@ulih)

    Found this open again. If you have problems with this, please open a new thread.
    Thanks.
    uh

    Plugin Author ulihake

    (@ulih)

    A 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

    Plugin Author ulihake

    (@ulih)

    Yeah, 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

    Plugin Author ulihake

    (@ulih)

    Hello 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.
    uh

    Plugin Author ulihake

    (@ulih)

    I will publish an update today which addresses this problem. Sorry for this…

    uh

Viewing 15 replies - 421 through 435 (of 530 total)