• New installation of version 1.6 of the plugin on WP 3.8.1, WooCommerce 2.1.5. Plugin settings: Enable Shatner templates.

    If there is no regular price set for a “name your own price” item, then there is no “Add to Cart” button shown on the product page or the category page.

    If there is a regular price set, there is an “Add to Cart” button, but it ignores the price entered and uses the regular price when adding the item to the cart.

    In other words, it doesn’t work right either way.

    Please advise. Thanks!

    https://www.ads-software.com/plugins/shatner-name-your-own-price-for-woocommerce/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter solarcat

    (@solarcat)

    Following up. The above is not an accurate diagnosis. Sorry.

    If I set the regular price to zero, then the “Add to Cart” button shows up. That’s okay so far.

    When I add an item, it does show up correctly in the full cart, with the specified price. That part is fine.

    Where it all goes wrong is in the Cart sidebar widget, which works off the mini-cart template. In the widget, it shows the regular price of zero rather than the specified price. And the widget’s subtotal is wildly off-base, totally wrong. I can’t even figure out how it’s getting that subtotal.

    Is the plugin designed to work in the mini-cart? Or am I going to have to remove that widget until a new release does?

    Thanks!

    Thread Starter solarcat

    (@solarcat)

    Bump. Is there no support for this plugin?

    Plugin Author Sean Voss

    (@seanvoss)

    Hey Solarcat,

    What is mini-cart? Is that a plugin or a new feature of woocommerce?

    Thread Starter solarcat

    (@solarcat)

    Hi, Sean. Thanks for responding.

    The mini-cart is the template used in standard WooCommerce to display the “WooCommerce Cart” widget (/wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-cart.php). It’s found in the /wp-content/plugins/woocommerce/templates/cart/ folder as mini-cart.php.

    I’ve since discoverd that a similar problem exists with the “WooCommerce Rently Viewed” widget (/wp-content/plugins/woocommerce/includes/widgets/class-wc-recently-viewed-widget.php). When the “Recently Viewed” widget is displayed to a user who has recently viewed a product configured as name-your-own-price with regular price zero, the widget shows the word “Free!” This is confusing. It would be better if no price (blank) were displayed when the product is configured as name-your-own-price.

    Of the two problems, the one with the Cart widget is more serious since it results in crazy-looking arithmetic. In the simplest case of adding one name-your-own-price product to the cart, it shows the product detail as “1 x $0.00” and the subtotal as $10.00 (or whatever price the user has named).

    I got a solution.
    First of all to author, regardless of little glitches we have here with this plugin, thank you. I’m using this plugin for donation portion of charity website and it saved me $40 the other woo premium theme wanted to charge.

    Anyway, what I have realized is that in order for this to work, you HAVE to designate suggested price.

    On product backend
    Regular Price ($) (YOU MUST INPUT VALUE HERE)
    Sale Price ($) (OR HERE)
    Name your own price
    yes
    no
    Enforce minimum price (Regular Price)
    yes
    no

    And Enforce minimum price can be no but you MUST input regular price for this to work. Once you do that, it will work.

    Small issues:
    1. if you use cart widget on side like I am, it will not show correct amount there. BUT once you go to checkout, correct number is there.

    2. If you want to do a $10 donation + $20 donation, that will not work. It’ll override first cart item to second one. Not that anyone would do this but I’m just saying that it doesn’t work if someone tried that.

    I do wonder if I have multiple of ‘name price products’ in same cart. I don’t need to worry about that yet but something that I’ll look out for.

    Anyways, I hope this helps!

    Just saw that you did figure it out too… lol well, I didn’t read everything… lol but yea.. widebar widget does have issue… I think I’m going to ignore it for now though…

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘No "Add to Cart" button OR no price change’ is closed to new replies.