• Resolved drdraniel

    (@drdraniel)


    This Plugin is awesome and exactly what I was searching for.
    Just one quick questions/request: how can I change the wording of the buttons and text?
    Instead of “Add to Cart” I would like to change the button wording into: “Add to quote request” but in German, as my Website is in German.

    Also I was wondering why the “Add to Cart” button in the products list under each product disappears as soon as I activate the plugin? I would be great if the button could stay there with a new wording and a field to enter the amount. Means that the customer can add products to the cart without going to the product details page, as it works without the activating your plugin.

    thanks,
    daniel

    https://www.ads-software.com/plugins/woo-rfq-for-woocommerce/

Viewing 15 replies - 1 through 15 (of 24 total)
  • Plugin Author Neah Plugins

    (@gplsaver)

    Hi drdraneil,

    Thanks for the feedback.

    First for a quick fix for your “add to cart”:

    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 ??

    Second for your “Add to cart” missing when plugin is activated. I think this is a bug that should be fixed as soon as i release the bug fix today. I think this is due to ninja form and ninja form popup not being installed. This was not intended as a feature. Let me know what happens after the bug fix/ installing ninja and ninja modal plugins

    Thanks for helping make this better.

    Plugin Author Neah Plugins

    (@gplsaver)

    “adicionar ao or?amento” is just an example. you would use seomthing like “In den Warenkorb legen” ?
    I don’t know. My wife speaks some German but she is at work right now.

    Thread Starter drdraniel

    (@drdraniel)

    Wow awesome!

    The “add to cart” button now appears with activated plugin. Just the behavior is different:
    Plugin Deactivated: after clicking the button the user stays on the page – which is what I want, so they can put more products, which are liste on the page, into the cart.
    Plugin Activated: after clicking the button, the user is redirected to the check-out with just the product in it he choose.

    In terms of wording. I would like to also change the wording for the other buttons, for example in the cart view and the checkout (which are in English when plugin is activated):
    – PROCEED TO REQUEST A QUOTE (cart)
    – Please submit your quote request (checkout)

    Also on the success page I recognized your plugin is switching some originally German texts into English:

    “Thank you. Your order has been received.
    ORDER NUMBER:
    656
    DATE:
    Februar 20, 2016
    TOTAL:
    0,00€”

    Btw. shouldn’t it be called “Thank you. Your quote request has been received” ?

    Oh and I’m happy to do a German translation of your plugin for you! ??

    Plugin Author Neah Plugins

    (@gplsaver)

    drdraniel,

    Check this on your WooCommerce Settings:

    in Product Tab -> Display

    Add to cart behaviour
    Redirect to the cart page after successful addition
    Enable AJAX add to cart buttons on archives

    The Ajax option should be checked.

    Thanks for the suggestion for translation. Once this is stabilized with the coming features that would be great!!!:)

    Thread Starter drdraniel

    (@drdraniel)

    Hi gplsaver,

    it’s both reconfigured correctly; Ajax on; no redirect after adding to cart.
    With your plugin deactivated the behavior is correct.

    Cheers

    Plugin Author Neah Plugins

    (@gplsaver)

    great!

    Thread Starter drdraniel

    (@drdraniel)

    ah not great – because with the plugin activated the behavior is wrong and does not apply to the configuration I made in woo-commerce :/

    Plugin Author Neah Plugins

    (@gplsaver)

    sorry i read that wrong.

    Plugin Author Neah Plugins

    (@gplsaver)

    i will try to reproduce this on my site. It does not behave that way so far me.

    Plugin Author Neah Plugins

    (@gplsaver)

    in 1.3.1 you can change the wording further by adding this to functions.php

    //your own proceed to checkout text
    add_filter('gpls_woo_rfq_proceed_to_checkout','gpls_woo_rfq_proceed_to_checkout',10,1);
    
    function gpls_woo_rfq_proceed_to_checkout($proceed_to_checkout){
    
    	$proceed_to_checkout = "your own proceed to checkout text";
    	return $proceed_to_checkout;
    }
    
    // when you have a RFQ checkout setting
    add_filter('gpls_woo_rfq_rfq_submit_your_order_text','gpls_woo_rfq_rfq_submit_your_order_text',10,1);
    
    function gpls_woo_rfq_rfq_submit_your_order_text($order_button_text){
    
    	$order_button_text = "your own submit QUOTE text ";
    	return $order_button_text;
    }
    
    // when you have a normal checkout setting
    add_filter('gpls_woo_rfq_checkout_submit_your_order_text','gpls_woo_rfq_checkout_submit_your_order_text',10,1);
    
    function gpls_woo_rfq_checkout_submit_your_order_text($order_button_text){
    
    	$order_button_text = "your own submit ORDER text ";
    	return $order_button_text;
    }

    Still a couple of issues pending

    Plugin Author Neah Plugins

    (@gplsaver)

    drdraniel,
    Thanks again for finding these bugs. They should be fixed in 1.3.2
    Thanks again for taking the time to leave feedback.

    Thread Starter drdraniel

    (@drdraniel)

    Hi gplsaver, I was off for some days but now back working.
    The wording changes work perfectly – thanks a lot!
    I could figure out, that the AJAX problem disappears when I deactivate this plugin: https://www.ads-software.com/plugins/bootstrap-one-page-woocommerce-checkout/

    Cheers

    Plugin Author Neah Plugins

    (@gplsaver)

    This is good news. Thanks for the info.

    Thread Starter drdraniel

    (@drdraniel)

    Oh I think I just found one small bug with the AJAX function.
    When RFQ is activated and I click on the button it reloads the website and add the product to the cart, but there is no notification or something:
    https://event-innovate.de/einlass-management/einlass-hardware/

    When I reactivate RFQ and click on the button it adds a check to the button and add link to the cart below the button:
    https://dl.dropboxusercontent.com/u/9028267/rfq_deactivated.jpg

    Cheers

    Plugin Author Neah Plugins

    (@gplsaver)

    Thanks for sharing the screens. I see the problem it is creating on your end. It is short-cutting the “added to cart” message for some reason. It is not doing it on mine. probably a combination of plugin and theme issue. for the time being try this by adding it to the bottom of your functions.php in your main theme directory:

    //product section
    /**
     * Change the add to cart text on single product pages
     */
    //add_filter( 'woocommerce_product_single_add_to_cart_text', 'gpls_woo_rfq_cart_button_text' );
    
    function gpls_woo_rfq_cart_button_text() {
    
    	global $woocommerce;
    
    	foreach($woocommerce->cart->get_cart() as $cart_item_key => $values ) {
    		$_product = $values['data'];
    
    		if( get_the_ID() == $_product->id ) {
    			return __('Already in cart - Add Again?', 'woocommerce');
    		}
    	}
    
    	//return __('Add to cart', 'woocommerce');
    }
    
    /**
     * Change the add to cart text on product archives
     */
    //add_filter( 'add_to_cart_text', 'woo_add_to_cart_text_custom_cart_button_text' );
    
    function woo_add_to_cart_text_custom_cart_button_text() {
    
    	global $woocommerce;
    
    	foreach($woocommerce->cart->get_cart() as $cart_item_key => $values ) {
    		$_product = $values['data'];
    
    		if( get_the_ID() == $_product->id ) {
    			return __('Already in cart - Add Again?', 'woocommerce');
    		}
    	}
    
    	//return __('Add to cart', 'woocommerce');
    }
    
    //add_filter( 'woocommerce_product_add_to_cart_text', 'woo_archive_custom_cart_button_text' );
    
    function woo_archive_custom_cart_button_text() {
    
    	global $woocommerce;
    
    	foreach($woocommerce->cart->get_cart() as $cart_item_key => $values ) {
    		$_product = $values['data'];
    
    		if( get_the_ID() == $_product->id ) {
    			return __('Already in cart', 'woocommerce');
    		}
    	}
    
    	//return __('Add to cart', 'woocommerce');
    }
Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘Change Wording’ is closed to new replies.