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/
-
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.
Ok will check it out this evening, I didn’t try it without a default price.
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!
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?
Yes, I see, I forgot about the template since I’m only over-riding the
price.phptemplate.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_scriptfrom 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
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 uniqueid
– 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!
Any word on the status of these fixes/updates, etc?
Thank-you!
Hey Sparky,
Working on this plugin today, see what I can come up with.
Alright Sparky, download 1.5 should have a whole basket of fixes.
Wow… fantastic… it’s a quantum leap in the right direction.
Thank-you!
Just got burned by the “Shatner- make everything in the cart free” bug. I see you fixed it in 1.6.
The topic ‘Totally broken again’ is closed to new replies.