• I’ve noticed that visitors are able to hit “Add to Cart” without touching the Input field to choose a price at all, and this automatically adds the product to cart for free.

    I’m fine with people getting it for free, so don’t want to set a minimum price, but feedback from testers has suggested that they don’t even notice the input field and just hit “Add to Cart” to try and pay… Which takes them to cart with a fixed O.OO price, where they can’t choose to pay. Which means that someone who would have paid me, misses how to and doesn’t!

    I would like to make the input field required, so that people have to input “0” if they want the product for free, and it makes them notice where to set a price if they would pay.

    If that’s not possible, how do I make the input field much more prominent at least?

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author WPClever

    (@wpclever)

    Hi @snapdragon777,

    Thanks for reporting this. I have written a notr to our developers so that they can check and fix this as soon as possible.

    This might take some time since we’re having wuitr hesvy workload currently.

    Best regards.

    I had the same problem but since I have a suggested price, I thought the suggested price should at least become the default for the name-your-price input.

    Solved it by editing wp-content/plugins/wpc-name-your-price/includes/wpc-woonp-core.php

    changing line 114
    from
    }
    to

    else {
    $value = $product->get_regular_price();
    }
    Thread Starter snapdragon777

    (@snapdragon777)

    @rafaelup That is also a good thought. I don’t like the idea of editing the plugin php, since surely I’ll have to remember to do it every time the plugin updates? But that could also be a good option for developers to include, especially if it can be enabled/disabled in settings.

    Suggested price won’t be for everyone – some of us have NO idea what to price our product at, and making any suggestion could skew user judgement. But that would be a great optional feature.

    Thread Starter snapdragon777

    (@snapdragon777)

    @wpclever I see that the suggested change from @rafaelup has made it into the current version! That’s pretty responsive for people with a heavy workload, well done! ??

    Could I just reiterate that it would be nice if this was optional, however? I don’t have a suggested price set, so this feature is using the “regular price” that WooCommerce requires in a product listing to give me a suggested price. But I haven’t chosen anywhere to have a suggested price for the Name Your Price area.

    This is far from the worst issue, but, especially since the text is tiny in the input field, I still worry that people will miss the input area. Only now they will get to the cart and go “Why is it trying to charge me $10?? Where do I set my price?” instead of “Oh well, it’s forcing me to have it for free!”

    I still think that making this field required, and more visually prominent, would be a good idea. If it is already filled in with a suggested price, you don’t want people to miss it in case they don’t agree with that price. If it isn’t (which it shouldn’t have to be, I don’t think, for truly user-guided pricing), then you also don’t want people to miss it, as per my original post.

    I don’t know how hard this would be to implement, but there’s my thoughts on the matter.

    Thanks for listening to commenters like us, though!

    @wpclever thanks for merging my proposal into the new version!
    @snapdragon777 thanks for your thoughts!

    I don’t have a suggested price set, so this feature is using the “regular price” that WooCommerce requires in a product listing to give me a suggested price.

    @snapdragon777 but then isn’t the real “bug” here that the whole name-your-price field is not showing up when you don’t have a regular price set? To me it doesn’t seem required by woocommerce but by the plugin ?!
    maybe @wpclever can clarify this. thanks!!

    • This reply was modified 4 years, 6 months ago by rafaelup.
    • This reply was modified 4 years, 6 months ago by rafaelup.
    • This reply was modified 4 years, 6 months ago by rafaelup.

    @snapdragon777
    I just realized that this check for “not empty” is even super easy nowadays, just needed to edit wp-content/plugins/wpc-name-your-price/includes/wpc-woonp-core.php

    adding required to line 154
    size="4" required />

    hope this can be included in the next version @wpclever , I think it should fit to all use cases ?!

    @snapdragon777

    You can add some custom css to your child theme to make the input field more prominent.

    This will get you started:

    .woonp label {
        font-weight: 700;
    }
    .woonp-input {
         display: block;
        font-size: 18px;
        font-weight: 700;
        color: #444;
        line-height: 1.3;
        padding: .6em 1em .6em .4em;
        box-sizing: border-box;
        margin: 0;
        border: 1px solid #aaa;
        background-color: #FFFF00;
    }

    Please @wpclever, can you add this to the next version? I don’t want to add it after every update, and I think it makes sense in all use cases, to not leave the name-your-prize field empty!

    adding required to line 154
    size="4" required />

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Can I make the input field required or more obvious?’ is closed to new replies.