• Resolved prodograw

    (@prodograw)


    since updating multiple checkbox group doesnt work.

    ive had to disable the plugin on one certain page of our site so it passes the multiple selected checkbox to the cart

    page below is the page it will not work on

    https://www.prodograw.com/product/sample-raw-dog-food-pack/

    i notice in your js you account for single radio items
    $variation_form.find( 'select[name^=attribute]' );

    but not for group checkbox

    please could you take a look

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter prodograw

    (@prodograw)

    the original link works now i have disable your plugin on that page

    you can test on this page

    https://www.prodograw.com/product/testing/

    Plugin Author Rishi Mehta

    (@rcreators)

    Hello,

    I check the testing link, there is some additional js code added in error function which is generating console error. Can you remove that first.

    Additionally, will you be able to send me admin access to [email protected] or give me details how you added checkbox variation to the product and i will create it on local and update plugin accordingly.

    Regards,
    Rishi Mehta

    Thread Starter prodograw

    (@prodograw)

    hi i have fixed it please can you update your code to below

    change this from line 90

    	if (attr.name !== 'add-to-cart')
    		data[attr.name] = attr.value;
    });

    to this below:

    	if (attr.name !== 'add-to-cart')
    	    if (attr.name.endsWith('[]')) {
    	        let name = attr.name.substring(0, attr.name.length - 2);
    	        if (!(name in data)) {
    	            data[name] = [];
    	        }
    	        data[name].push(attr.value);
    	    } else {
    	        data[attr.name] = attr.value;
    	    }
    });
    

    Thanks
    Mike

    Plugin Author Rishi Mehta

    (@rcreators)

    Hello,

    Sure. I will update this code and will add it in next release. Waiting for 2-3 weeks on inputs from other users if need and adjustment then can push all together.

    Regards,
    Rishi Mehta

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Checkbox Multiple Group’ is closed to new replies.