Home Forums Free Themes Easy Commerce Call-to-Action button

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #80200
    Erum Shaheen
    Participant

    Please advise how can I change the “wordings” of a call-to-action button on shop page. As it shows “Select Options” however I want it as “Shop now”. Please advise for it.

    #80223
    wensolutions
    Keymaster

    Hello @erum-shaheen,

    Actually, we are quite clear which section you are referring to so can you please provide the screenshot marking the text so that we can help you further.

    Thank you.

    regards!!

    #80653
    Erum Shaheen
    Participant

    Hi,

    Please see attached pic.

    #80720
    wensolutions
    Keymaster

    Hello @erum-shaheen,

    The “Select Options” text in the add to cart button is actually added by woocommerce plugin itself in case of the variable product ( with multiple options ) and is not controlled by the theme.

    However, if you wish to change the text, you can add in the following code in your child theme’s functions.php file to set your desired text:

    add_filter( 'woocommerce_product_add_to_cart_text', woocommerce_var_pricing_options_add_to_crt_txt, 10 );
    
    function woocommerce_var_pricing_options_add_to_crt_txt( $text ) {
    	global $product;
    	if ( $product->is_type( 'variable' ) ) {
    		$text = $product->is_purchasable() ? __( 'Custom options text', 'woocommerce' ) : __( 'Read more', 'woocommerce' );
    	}
    	return $text;
    }

    You can change the “Custom options text” and “Read more” texts as per your requirements.

    Hope this helps,

    Best Regards !!

    #81304
    Erum Shaheen
    Participant

    Hi, I want the text as “Shop Now” instead of “Select Option”. In your given code I didn’t See wordings “Shop Now”. Please advise.

    Further, also send send me screen shots as how to add the Code in website.

    #81400
    wensolutions
    Keymaster

    Hello @erum-shaheen,

    To add the custom code you need to go through the child theme.

    To know how to create and activate the child theme please follow below given link:

    https://wptravel.io/how-to-create-a-child-theme/

    After activating the child theme in your child theme add below given code:

    add_filter( 'woocommerce_product_add_to_cart_text', woocommerce_var_pricing_options_add_to_crt_txt, 10 );
    
    function woocommerce_var_pricing_options_add_to_crt_txt( $text ) {
    	global $product;
    	if ( $product->is_type( 'variable' ) ) {
    		$text = $product->is_purchasable() ? __( 'Shop Now', 'woocommerce' ) : __( 'Read more', 'woocommerce' );
    	}
    	return $text;
    }

    Hope this helps.

    Let us know if you have any confusion further.

    Thank you.

    Regards!!

    #81626
    Erum Shaheen
    Participant

    Thanks a lot. Now it looks as I want.

    #81633
    wensolutions
    Keymaster

    Hello @erum-shaheen,

    Glad to help you.

    Let us know if you have any issues further.

    Thank you.

    Regards!!

    #81677
    Erum Shaheen
    Participant

    Please advise How can I add an image of Size chart here. I want if visitor put cursor on Tab of “Size Chart” it shows them an image that include the details of sizes.

    Add Size Chart

    Further, I want to remove “Underline” for every Heading and Gap between “Side Bar” and “Main Bar”.

    Your help will be highly appreciated.

    Thanks

    #81686
    wensolutions
    Keymaster

    Hello @erum-shaheen,

    Currently, the feature you are looking for is not available in the theme.

    If you want to exactly display as you described then you can hire a professional developer.

    To hire a developer please refer to below given link:

    http://themepalace.com/hire-a-customizer

    Thank you.

    Regards!!

    #98457
    Erum Shaheen
    Participant

    Hi Wen,

    In reply 81400, you advised me how to change wording from Select Option to “Shop Now” I did it and it was successfully changed. But now when I add any product, it is coming with “Selecct Option”, however I need it to show “Shop Now”.

    In back end, I checked function.PHP file in Child theme and all the words are correctly placed there like what you advised in reply # 81400.

    Please advise to resolve the issue asap.

    Thanks

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.