New Landing How can we help? Atelier Select Box Text for Variable Product

Viewing 3 posts - 1 through 3 (of 3 total)
  • Posted in: Atelier
  • #284380
    pixelcrash
    Member
    Post count: 1

    Hello,

    I am using a german translation of woocommerce and your Atelier Theme. I would like to replace the text, which shows up in the dropdown select boxes for variable products. Instead of “choose ….” I would like to use the title use for the variation – like “Choose your size” or “Choose Wood type” or “Choose Color”.

    I am having some products with 3 dropdowns and is not really smart to have 3 times standing there
    “Choose type” “Choose type” “Choose type”

    Where can I find this dropdown menu code? I would re-code it, if I would find it.

    Thanks

    #284402
    pixelcrash
    Member
    Post count: 1

    I did a little hack in the following file:

    wp-content/plugins/woocommerce/includes/wc-template-functions.php

    search for: “wc_dropdown_variation_attribute_options”

    I added following variable:

    $text_dd = "Wählen Sie: " . str_replace('Choose a', '', esc_html( $args['show_option_none']));

    and added it here:

    if ( $args['show_option_none'] ) {
    	$html .= '<option value="">' . $text_dd  . '</option>';
    }

    Is there a better option for this?

    #284458
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I am glad that you managed to resolve the issue.
    Thanks
    Mohammad

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register