dwhiteside86
Forum Replies Created
-
Forum: Plugins
In reply to: [JSON API] Woocommerce Product PriceTry looking at this:
It gets all custom fields including anything woocommerce related
https://wordpress.org/support/topic/fixed-get-all-custom-fields-the-right-way
My wishlist page contains:
[yith_wcwl_wishlist]
I get no PHP errors at all, it just displays the name of the wishlist and nothing else. If I use my pre existing customised wishlist.php template, the wishlist works but I get the following error in the console when trying to remove an item:
ReferenceError: remove_item_from_wishlist is not defined
Just got chance to rework on this again and struggling still – not really on the ajax part of my learning javascript yet!
I can get a console.log value to update when an item is added to wishlist using the following:
var currentValue = $(".loginwishlistwrapper .wishlist .wishlistcount").text(); var newValue = parseInt(currentValue) + 1; console.log(newValue);I am unsure how to retrive the current number of elements in the wishlist using ajax and updating the value by 1
Any more guidance would be greatly appreciated – If it can work I will be buying the premium version of this, as its a fantastic plugin!