Looks like there’s a bug in that big chunk of custom JavaScript starting at line 44 in the markup. Where did it come from? If the hired experts can’t debug it, then its a big ask for a forum question.
Maybe not too big a question as you are the only one to mention the javaScript bug. I have no idea about scripting java or otherwise. If you could shed some light on the javaScript bug that would be fantastic. By the way, how does one detect such a thing?
Thank you kindly,
I’m looking at this page:
http://n2n-hosting.com/shop/mchs-choir-album-songs/
Then I’m looking at the page source code (Chrome: control-u)
The Javascript runs from lines 44 to 247. This code handles the “Enter minimum or donate generously” feature. No matter what value I put in the field, I cannot add the item to the cart.
This feature and the JavaScript that makes it work is not standard WooCommerce functionality and I don’t think its coming form the theme. It looks like a custom development by someone, and its possibly unique.
To find the bug one would have to follow the pathways through the code, and maybe insert extra temporary code at various points to see if the variables are what they should be. The logic in the code is wrong somewhere. I’d say a day’s work to go through that, depending on skill level of course. The person who wrote it would be the best person to debug it, since he already understands how it is supposed to work.
You could post a job for someone to get it working:
http://jobs.wordpress.net/
However, I note you have already hired experts and its still not working.
The positive about WordPress is that its tried and tested, and benefits from the economies of a large user base. But once users start with custom developments, time and costs can mount up.
If you can find a plugin that does the job, it may be a more economical way forward, though compromises may be necessary. See if these are any good for your purpose:
http://codecanyon.net/item/woocommerce-pay-your-price/7000238
https://wordpress.org/plugins/shatner-name-your-own-price-for-woocommerce/
http://www.storeapps.org/support/documentation/offer-your-price/
You have been very kind and helpful. I will pass this info on to the plugin developer and see if they can fix it.
I have had several people try but none have said anything about this javaScript error. This makes me hopeful there may be a solution.
I will have a look at the “offer your price” plugin, i have already tried the “Shatner” and it did not work with variable products.
Thank you so much for your input.
If you’d like to take a swing at it, I’d gladly reciprocate!
Grateful for your response. Kindly,
***SOLVED***
few lines of code in plugin.
file :- payyourprice.php
line no. :- 404
Code Added :- do_action( ‘woocommerce_set_cart_cookies’, ‘set’);
in public static function single_product_price($cart_object) function fixed my issue.
Thank you for your feedback.
Kindly,