WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[resolved] Woocommerce, variation dropdown (5 posts)

  1. Deelay2
    Member
    Posted 9 months ago #

    Hi,
    when I add variotions to my product, the standard-option say "choose an&hellip..." instead off "choose an option".
    Where in the code do I change this?

    If you guys also has a code for changing it to "choose an #attribute#" I say thanks too, hehe...

    http://wordpress.org/plugins/woocommerce/

    [Moderator Note: Bumping? After just an hour? Is that a joke? No bumping! If it's that urgent, consider hiring someone.]

  2. Chrome Orange
    Member
    Posted 9 months ago #

    Hi

    This doc shows you how to copy and modify the template files in an upgrade safe way

    http://docs.woothemes.com/document/template-structure/

    Once you understand that you will need to copy variable.php and create a coy in your theme.

    Look for this on line 24

    <option value=""><?php echo __( 'Choose an option', 'woocommerce' ) ?>&hellip;</option>

    and replace it with

    <option value=""><?php echo sprintf( __( 'Choose a %s', 'woocommerce' ), $woocommerce->attribute_label( $name ) ) ?>&hellip;</option>

    or you can just replace the 'Choose an Option' with the text of your choice

  3. Deelay2
    Member
    Posted 9 months ago #


  4. Deelay2
    Member
    Posted 9 months ago #

    Thanks :) That worked perfectly :D

  5. webmystery
    Member
    Posted 4 months ago #

    Thanks! Exactly what I needed.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.