WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce Customizer
[resolved] Additional setting request (7 posts)

  1. Tevya
    Member
    Posted 10 months ago #

    This plugin is great! I've always thought it silly to have to add all those code snippets to each site's theme to set it the way you want. This plugin is the perfect solution.

    I just have one more that I think would be nice to have, it's the default image placeholder: http://docs.woothemes.com/document/change-the-placeholder-image/

    We wrote a little plugin that just has a field for the URL of the image. But having 1 plugin instead of 2 is better. If you'd like the code from our plugin, to potentially add to your plugin here, let me know and I'd be happy to send it over. Thanks.

    http://wordpress.org/plugins/woocommerce-customizer/

  2. Max Rice
    Member
    Plugin Author

    Posted 10 months ago #

    Hey that does sound pretty cool -- can you open an issue and add the code (or a pull request would be really awesome) on our github repo? thanks!

  3. Tevya
    Member
    Posted 10 months ago #

  4. Tevya
    Member
    Posted 10 months ago #

    I don't know if you want me to post more suggestions as issues on Git, or suggest them here first. But another common thing that needs to be changed is the "Sort Code" for the Bacs (bank transfer) checkout. In the US we call it a "Routing Number", in Australia they call it a "BSB" or "BSB Code".

    I found this code that will change it:

    function wpse_77783_woo_bacs_ibn($translation, $text, $domain) {
        if ($domain == 'woocommerce') {
            switch ($text) {
                case 'Sort Code':
                    $translation = 'BSB';
                    break;
            }
        }
        return $translation;
    }
    add_filter('gettext', 'wpse_77783_woo_bacs_ibn', 10, 3);

    From this thread: http://wordpress.org/support/topic/change-sort-code-to-bsb-for-bacs-payment-method?replies=14#post-4314024

    It would be nice to have a field where you can type whatever you want, and have it substitute it. Or have a drop-down of common alternatives like those I listed, plus maybe a few others.

  5. Max Rice
    Member
    Plugin Author

    Posted 10 months ago #

    thanks for posting on github, and yeah any future requests or issues is best on github as well, it's easier to manage them there.

    as for this request, it's probably not a good fit for the customizer because it relies on the gettext filter, which isn't a WooCommerce-related filter and really should only be used when there's no other good way to change the content. I'd add an issue to the WooCommerce github repo to ask them to consider adding a specific filter for this instead :)

  6. Tevya
    Member
    Posted 10 months ago #

    K. Good idea.

  7. Tevya
    Member
    Posted 10 months ago #

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.