Forum Replies Created
-
AuthorPosts
-
May 7, 2019 at 5:57 pm in reply to: stars & number of reviews below title – single product page using adv editor #1098149
Thanks Jordan – woo action hooks page examples was not found… Would love to take a look. I added the function and an extra echo to see where it is placed but although it didnt break my page I can’t see that it is working.
Maybe because I am using advanced editor so loop is not being called? Can this hook into the Plugin additions for ALB?
Below is revised code and link to page (changed a couple of apostrophes to quotes in function)…
Moving the script is a good idea I will look at that – THANKS
Great all seems to be working now. THANKS SO MUCH. One more question. Will I need to update this with an Enfold theme update or is there a way to make this permanent?
I’m on my way out the door so am going to give you access.
THANK YOU!
I also tried to comment out the actual call to the function but still showing + / – and did the same for both woocommerce-mod-v26.js and woocommerce-mod.js so now what?
Thanks for your help!
I commented out this line but did not seem to make a difference?
Thanks for this – is there a way to do it through a child theme?
Could really use some help with this!
Here is what plugin developer says:
———————————–
Thank you for getting in touch. Mix and Match has never had plus/minus buttons for setting the quantity configuration. By default, it uses a simple number input that works pretty universally. The plus/minus buttons are typically added by themes, though it’s possible they are also coming from another plugin. You can confirm this by switching to a default theme and re-testing the Mix and Match product. With so many themes available, there’s no way for me to account for it in the plugin and so the onus is on the users of those themes to make them compatible with MNM.The Mix and Match script listens for a change event on the child quantity inputs. jQuery’s change event is only triggered by a manual browser event, and not the programmatic changes causes by clicking the plus and minus buttons. So the solution is to chain a .change() event after the value has been set by whatever “click” script is used by your theme. The tricky part is finding the relevant section of the code.
As a generic example it may look something like this, look especially closely at the 2nd to last line
$(‘.quantity’).on(‘click’, ‘.plus’, function(e) {
$input = $(this).prev(‘input.qty’);
var val = parseInt($input.val());
var step = $input.attr(‘step’);
step = ‘undefined’ !== typeof(step) ? parseInt(step) : 1;
$input.val( val + step ).change(); // this is the .change() that need to be added!
});The theme developer may know better where this is coming from. I was unable to find it in a brief survey of your source code.
———————————–
Please let me know what you can do to help get this working!April 19, 2019 at 2:44 pm in reply to: Main product Image does not change with Variation selection? #1092689Figured out I had to switch to regular gallery in order for it to work.
That worked. Would I also just be able to put [code] [/code] shortcode around it so that I could keep it in text block?
-
AuthorPosts