cart shows slug instead of useful text
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?
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.
- The topic ‘cart shows slug instead of useful text’ is closed to new replies.