Title: Totally broken again
Last modified: August 21, 2016

---

# Totally broken again

 *  Resolved [sparky672](https://wordpress.org/support/users/sparky672/)
 * (@sparky672)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/totally-broken-again/)
 * Updated to version 1.4 today.
 * Go to product and enter a price… now what? There is no “add to cart” button.
 * Also, need to have a minimum default price.
 * Thanks!
 * [http://wordpress.org/plugins/shatner-name-your-own-price-for-woocommerce/](http://wordpress.org/plugins/shatner-name-your-own-price-for-woocommerce/)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Thread Starter [sparky672](https://wordpress.org/support/users/sparky672/)
 * (@sparky672)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/totally-broken-again/#post-4556965)
 * If I toggle the “name your price” option off and back on, then the “add to cart”
   button appears. It also seems that a default price is required. WooCommerce will
   not create an “add to cart” button without a price it seems.
 *  Plugin Author [Sean Voss](https://wordpress.org/support/users/seanvoss/)
 * (@seanvoss)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/totally-broken-again/#post-4557021)
 * Ok will check it out this evening, I didn’t try it without a default price.
 *  Thread Starter [sparky672](https://wordpress.org/support/users/sparky672/)
 * (@sparky672)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/totally-broken-again/#post-4557023)
 * Not sure what’s going on here but I saw all kinds of weirdness since the upgrade.
 * If I put in a default price, then the product with the default price and a “add
   to cart” button show in the grid page.
 * If I leave out the default price, I cannot “add to cart” from the product page.
 * I’d like to prevent the user from entering any price lower than the default price
   if possible, while ALSO, preventing them from “adding to cart” from the grid 
   page.
 * In other words, I never want them to be able to just add the product to the cart
   without entering their own price, while also constraining them to a minimum amount.
 * Thank-you!
 *  Plugin Author [Sean Voss](https://wordpress.org/support/users/seanvoss/)
 * (@seanvoss)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/totally-broken-again/#post-4557060)
 * Second part about lower than the default makes sense as a feature request let
   me add that as an Admin field.
 * 1st part by default I override the grid view with my templates to remove the 
   add to cart button since it wouldn’t make sense to have all these forms on the
   page. In the Shatner Admin settings you can turn this off. I’m not sure what 
   exactly you have going on do you have a url I can look at?
 *  Thread Starter [sparky672](https://wordpress.org/support/users/sparky672/)
 * (@sparky672)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/totally-broken-again/#post-4557100)
 * Yes, I see, I forgot about the template since I’m only over-riding the `price.
   php` template.
 * However, after “enabling” your default templates, ALL of the “add to cart” buttons
   from the grid page go missing. We need to just disable for the products using“
   Name Your Own Price”.
 * May I suggest that we totally break away from the need for these templates? I
   see you tried to inject jQuery code into the page from your plugin PHP but are
   not using that function because maybe it didn’t work. (_jQuery needs to be loaded
   when the page loads or it does nothing_).
 * Can’t you use `wp_enqueue_script` from the plugin itself to load the jQuery on
   the product and grid page instead? Then it won’t matter what’s going on with 
   the theme or template. Something like this?
 * `wp_enqueue_script( 'nameyourprice_js', $plugin-base . '/shatner-name-your-own-
   price-for-woocommerce/js/jquery.nameyourprice.js', array( 'jquery' ) );`
 * See this for the best way to retrieve your plugin base path:
 * [http://codex.wordpress.org/Determining_Plugin_and_Content_Directories](http://codex.wordpress.org/Determining_Plugin_and_Content_Directories)
 * Then you’ll need to alter your jQuery to manipulate the DOM as needed…
 *  – remove/manipulate any default form parts
    – add “name your own price” input
   box with a unique `id` – upon submit, copy the value to a hidden input appended
   to the form as we’re already doing
 * ——–
 * One final note: can you give the Admin a setting to make the input label anything
   he wants? “Name Your Price” is not a one size fits all label. Many of us would
   need to make it say “Enter A Donation” or something like that.
 * Thank-you!
 *  Thread Starter [sparky672](https://wordpress.org/support/users/sparky672/)
 * (@sparky672)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/totally-broken-again/#post-4557212)
 * Any word on the status of these fixes/updates, etc?
 * Thank-you!
 *  Plugin Author [Sean Voss](https://wordpress.org/support/users/seanvoss/)
 * (@seanvoss)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/totally-broken-again/#post-4557235)
 * Hey Sparky,
 * Working on this plugin today, see what I can come up with.
 *  Plugin Author [Sean Voss](https://wordpress.org/support/users/seanvoss/)
 * (@seanvoss)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/totally-broken-again/#post-4557237)
 * Alright Sparky, download 1.5 should have a whole basket of fixes.
 *  Thread Starter [sparky672](https://wordpress.org/support/users/sparky672/)
 * (@sparky672)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/totally-broken-again/#post-4557244)
 * Wow… fantastic… it’s a quantum leap in the right direction.
 * Thank-you!
 *  Thread Starter [sparky672](https://wordpress.org/support/users/sparky672/)
 * (@sparky672)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/totally-broken-again/#post-4557254)
 * Just got burned by the “Shatner- make everything in the cart free” bug. I see
   you fixed it in 1.6.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Totally broken again’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/shatner-name-your-own-price-for-woocommerce.
   svg)
 * [Shatner - Name your Own Price Integration for WooCommerce](https://wordpress.org/plugins/shatner-name-your-own-price-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shatner-name-your-own-price-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shatner-name-your-own-price-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/shatner-name-your-own-price-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shatner-name-your-own-price-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shatner-name-your-own-price-for-woocommerce/reviews/)

## Tags

 * [missing button](https://wordpress.org/support/topic-tag/missing-button/)

 * 10 replies
 * 2 participants
 * Last reply from: [sparky672](https://wordpress.org/support/users/sparky672/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/totally-broken-again/#post-4557254)
 * Status: resolved