• Resolved Bonesy88

    (@bonesy88)


    Hello,

    I’ve done a bunch of testing with the button shortcodes and I like the look of the [button=”buy-from-rounded”] parameter.. however is it possible to change the text to “View Product” instead of “Buy from Amazon”?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @bonesy88,
    Currently, the only way to do it is via a filter. You would need to add the following code to your theme functions.php file (you should do this in a child theme if at all possible or it will be lost if you update). Add it after the opening <?php tag in the file:

    add_filter('amazon-add-new-button-array', 'my_custom_button_filter', 15);
    function my_custom_button_filter( $buttons ){
    	$buttons["buy-from-rounded"]["text"] ='View Product';
    	$buttons["buy-from-rounded"]['dropdown_title'] = 'View Product - Dk Gray Rounded';
    	return $buttons;
    }

    That will change your button to what you want it to be. If you have a problem or do not know how to add it to your theme, let me know and I can provide you a simple add-on plugin that you can install that will do this for you.

    We plan to add a more simple way to do this in the future, but for now it is the only way.

    Regards,
    Don

    Thread Starter Bonesy88

    (@bonesy88)

    Thank you Don. Could you please provide the name of the add-on plugin that you recommend?

    Sure @bonesy88
    I made one for you just now. You can download it here:
    https://www.fischercreativemedia.com/current-downloads/appip-addon-bonesy.zip

    Download the file, then go to your admin and click to add a new plugin. Click the Upload Plugin and upload the zip file. Then just install and activate. It will then replace the button text for the ‘buy-from-rounded’ button. To go back to the regular button text, just deactivate the plugin.

    Regards,
    Don

    Thread Starter Bonesy88

    (@bonesy88)

    Wow, thanks so much! The update worked like a charm! This case can now be closed ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change button text to “View Product”’ is closed to new replies.