• Resolved hinatashin0604

    (@hinatashin0604)


    Hello,

    I would like to say thank you for your answer with my last inquiry.

    This time I’d like to ask of how to change the “Request Quote” button text to change.

    I’ve already changed it in the quotes-commerce.php but for some reason it’s just not reflecting.

    I’ve also added the following in my functions.php

    
    function woo_custom_order_button_text() {
        return __( 'Submit Order', 'woocommerce' ); 
    }
    
     /**
             * Modify the Add to Cart button text based on settings.
             * @since 1.0
             */
            function qwc_change_button_text() {
                
                global $post;
                $post_id = $post->ID;
                // check if setting is enabled
                $enable_quote = product_quote_enabled( $post_id );
                
                if ( $enable_quote ) {
                    $cart_text = __( 'Submit Order', 'quote-wc' );
                } else {
                    $cart_text = __( 'Add to Cart', 'quote-wc' );
                }
                
                return $cart_text;
            }
    

    The woocommerce one did change, but it’s still on Request Quote… Is there any other way to override the text?

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author pinal.shah

    (@pinalshah)

    Hi @hinatashin0604,

    I presume you want to change the button text for the ‘Add to Cart’ button from ‘Request Quote’ to ‘Submit Order’ on the WooCommerce Shop and Product pages.

    You’ve not mentioned the filter to which these functions have been attached to in the functions.php file. So, I’m unsure what might be going wrong here.

    Alternatively, I’ve shared a snippet here which helps achieve the same.

    https://wordpress.org/support/topic/change-button-text-to-add-to-quote

    I hope it helps. Please let me know if you have any further queries.

    Thanks,
    Pinal

    Thread Starter hinatashin0604

    (@hinatashin0604)

    Hello, thank you for your response.

    I’ve also checked that thread out and tried it, but unfortunately, the “Request Quote” is still the same.

    I even went as far as change it directly in quotes-woocommerce.php but it’s still the same.
    as you can view in this image

    Plugin Author pinal.shah

    (@pinalshah)

    That’s very strange. I apologize I do not have a lot of time at my hands right now to look at this, but I’ll try looking at it tomorrow and get back to you.

    I hope that’s fine.

    Pinal

    P.S. Maybe I’ll add the button text as a setting to make things easier.

    Thread Starter hinatashin0604

    (@hinatashin0604)

    That’s totally alright. I’ll be waiting for a response! Thank you!

    Plugin Author pinal.shah

    (@pinalshah)

    Hi @hinatashin0604,

    I’ve added a new setting in the plugin which allows the ability to modify the Add to Cart button text from ‘Request Quote’ to the admin’s choice for products that have quotes enabled.

    The code is currently present in a branch on Github.

    https://github.com/pinalj/quotes-for-woocommerce/tree/settings-changes

    Please download the plugin copy from the branch above and replace the existing plugin copy with the downloaded copy via FTP. The setting is present in Quotes->Settings. It should allow you to change the button text as desired.

    I hope this helps. The feature will be released in the next update.

    Thanks,
    Pinal

    Thread Starter hinatashin0604

    (@hinatashin0604)

    Hello,

    Thank you very much for your update. I tried out the branch you told me to download and update, unfortunately, the text still hasn’t changed…

    Plugin Author pinal.shah

    (@pinalshah)

    Hi @hinatashin0604,

    After replacing the plugin folder with the downloaded copy, can you please let me know if you are able to save the button text as desired in Quotes->Settings->Shop & Product Page Settings->Add to Cart button text?

    If yes, then the changes should be reflected on the Shop & Product pages for products that have quotes enabled.

    I’ve tested the Github branch copy on my local and I was unable to replicate the issue. The text was modified as it should.

    If things do not work as needed, request you to kindly share the WordPress admin access details and the FTP access details to your site on pinalj1612 at gmail dot com, so I can look into the issue.

    Thanks,
    Pinal

    Thread Starter hinatashin0604

    (@hinatashin0604)

    Hello Pinal,

    As you can see in the link below, the custom name properly saved but the one in the site hasn’t reflected at all.
    https://www.dropbox.com/s/uxat1efy80ubrm0/2019-04-27%2021_27_33-Window.png?dl=0

    I’ve also removed the functions.php override that I added in the past to make sure there are no conflicts. Unfortunately, I only have access to the site’s online file manager through the hosting’s control panel and cannot provide an FTP access, but I can certainly give you admin access if that is alright.

    Plugin Author pinal.shah

    (@pinalshah)

    Hi @hinatashin0604,

    Yes, the override in the functions.php will have to be removed. Please provide the WP admin access. I’ll check and let you know what I can find in there.

    Also, can you please let me know if the issue persists when only WooCommerce and the Quotes plugin are active.

    Thanks,
    Pinal

    Thread Starter hinatashin0604

    (@hinatashin0604)

    Hello @pinalshah

    Thank you for your response. I’ve sent you an email.

    I also tried the Woocommerce and quotes plugin only but still didn’t work.

    I could not get it to work and i haven’t made any change earlier to change text either!

    Anyway this plugin is really useful and will be perfect when this function is working!

    *Edit: Missed it was two files to update, now this plugin is perfect!

    • This reply was modified 7 years, 1 month ago by gosta.
    Plugin Author pinal.shah

    (@pinalshah)

    Hi @gosta,

    I’m glad to know you like the plugin. It would help me immensely if you would be so kind as to consider leaving a review for it.

    Thanks,
    Pinal

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Change “Request Quote” Text to “Submit Order”’ is closed to new replies.