Replace place_order text button
-
Hi! First, I have to say that this plugin saved my life. I tried so many others but any of them worked. Thank you! Thank you so much.
Now I need to ask if there is a way to chande the button “Please, submit you quote request” in the checkout. I am from Brasil and I need to put “Solicitar orçamento” instead.
Another question: is there a way to change “add to cart” to “add to quote/request a quote” (just to know, because I would have to change to “adicionar ao orçamento”One more time: thank you!
-
Hi yasmimdoss,
I am glad this is of help to you. We intend to keep developing this plugin and are very committed to it . I have added both of these to our feature to do list. We are actively developing so it should be in a couple of weeks . Thank you.
yasmimdoss,
for the time being you can change your titles as follows:
add this to your functions.php in your theme directory:
add_filter('gpls_woo_rfq_single_add_to_cart_text','gpls_woo_rfq_change_single_add_to_cart',10,1); add_filter('woocommerce_product_add_to_cart_text','gpls_woo_rfq_add_to_cart',10); function gpls_woo_rfq_add_to_cart(){ return "adicionar ao orçamento"; } function pls_woo_rfq_change_single_add_to_cart($gplswrfq_button_text){ return "adicionar ao orçamento"; }Also add this to style.css in your theme directory
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button { white-space: normal !important; }We will move these features in the settings, but if you can use this code you will have an immediate fix 🙂
“Hi! Let me ask: when I am at checkout it shows the price. Only there. In the cart. Should I do something to not show the price there? “
is this still a problem?
Hi, thank you so much for your attention.
Yes, it is still a problem. At the cart the price still shows up.there is another thing happening, when the plugin is active, the button “buy” appears in my product images on homepage. When I put the plugin off it doesnt show anymore. Do you know what it could be?
1-In Woo-RFQ is show prices checked or not checked?
2-Is your check out option “normal checkout” or RFQ?
3- Do you have templates in your theme directory under woocommerce that are the same name as the files in the woocommerce directory in woo-rfq?
1- No, it isn’t. The only option checked is “Hide prices from visitor. It overrides the previous option only for visitors who are not logged in”
2- Its RFQ.
3- I’m sorry I didn’t get this question. I have two themes in the directory (noren & noren_), this could be a problem?“3- I’m sorry I didn’t get this question. I have two themes in the directory (noren & noren_), this could be a problem? “
Not necessarily,
1-Check which one is your active theme.I think something in your theme/woocommerce directory is modifying the behavior of plugin in regards to prices still showing
Try this:
FIRST BACKUP EVERYTHINGThen read this
TemplatesWoo-RFQ overrides the normal WooCommerce templates located in the “woo-rfq-for-commerce/woocommerce”. You can override the templates by copying them to “your_theme_directory/woocommerce”. If you already have other templates in “your_theme_directory/woocommerce”, you would need to remove them and replace them with Woo-RFQ template files. You can modify the template files in your own “your_theme_directory/woocommerce” directory.
As a test, see if there are overlapping template files and if so remove them from your theme woocommerce directory. keep track of what you are removing so you can put them back.
PLEASE BACKUP EVERYTHING FIRST.
You can put your files back after your test.
I mean overlapping templates that have the same name in
“woo-rfq-for-commerce/woocommerce” and “your_theme_directory/woocommerce”.Files that don’t have the same name don’t have to change.
OR
you could have another plugin that is interfering. As a test check if there are any plugin that have to do with price or cart and inactivate and test. I would probably do this first before the theme template check. Sorry, i should have suggested this one first.Hi, no problems, I only saw it now, so I inactivate all of plugins that have to do with price and the price is still showing in the cart.
Well, I’m sorry but could you tell me what should I do here:Woo-RFQ overrides the normal WooCommerce templates located in the “woo-rfq-for-commerce/woocommerce”. You can override the templates by copying them to “your_theme_directory/woocommerce”. If you already have other templates in “your_theme_directory/woocommerce”, you would need to remove them and replace them with Woo-RFQ template files. You can modify the template files in your own “your_theme_directory/woocommerce” directory.
As a test, see if there are overlapping template files and if so remove them from your theme woocommerce directory. keep track of what you are removing so you can put them back.
I have made the backup and I did go to my files on hostgator I just don’t know what to do next.
If you would like to see, please check http://www.personalizadora.com.br, when you add something to cart, there the price shows up.So, let me just add some information:
I have installed the ninja forms and select one in woo rfq configurations. But at the checkout, it doesn’t appear.
I think I might be doing something wrong. Any idea what could it be?Hi!
I think I understand my last post. It appears on the single product page, not at the checkout. Just ignore my last post.add this to your functions.php in your theme directory:
add_filter(‘gpls_woo_rfq_single_add_to_cart_text’,’gpls_woo_rfq_change_single_add_to_cart’,10,1);
add_filter(‘woocommerce_product_add_to_cart_text’,’gpls_woo_rfq_add_to_cart’,10);
function gpls_woo_rfq_add_to_cart(){
return “adicionar ao orçamento”;
}
function pls_woo_rfq_change_single_add_to_cart($gplswrfq_button_text){return “adicionar ao orçamento”;
}Also add this to style.css in your theme directory
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
white-space: normal !important;
}.shoping-cart-widget p.total .amount, .widget_shopping_cart p.total .amount {
display: none;
}Thank you!!! It worked!
What about the “Please, submit your quote request” button at the checkout?
Do you know how to change it?
The topic ‘Replace place_order text button’ is closed to new replies.