WordPress.org

Ready to get started?Download WordPress

Forums

woocommerce cart shows slug instead of useful text (3 posts)

  1. kittensforgood
    Member
    Posted 1 year ago #

    I'm trying to make a woocommerce site for the first time.

    The problem I am running into is that I want the user to be able to enter some unique text for the front of a T shirt. So they would need to write something like "Cats & Dogs" but in the cart and throughout the checkout process this would turn into "cats-dogs".

    As you can see, this is a major problem because, as the seller, I have the wrong information. How can I fix this please?

    Thank you.

    P.S. I edited variable.php to "hack" in the text field where the user can type with this code:

    <input type="text" id="<?php echo esc_attr( sanitize_title($name) ); ?>" value="Enter text here" maxlength="35" size="38" onkeyup="caps(this)"
    name="attribute_<?php echo sanitize_title($name); ?>"/>

    And then in the product I just type a specific phrase for the attribute and this box becomes enabled.

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    You need to post on the plugin's sub-forum here:

    http://wordpress.org/support/plugin/woocommerce

  3. kittensforgood
    Member
    Posted 1 year ago #

    Thank you WPyogi. I did not see that subforum. First timer here...

Topic Closed

This topic has been closed to new replies.

About this Topic