#119 – Price is not changing

Posted in ‘Easycheckbox’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
 Hello.

I have a base price, and other 2 incremental prices.

  • Standard
    Deluxe
    Premium


I marked Deluxe as checked, but it is showing the Standard price as you can see here

Should I set something different?

Thanks
Eliel
Hi Eliel,

it seems that VM doesn't refresh product price onready anymore, so it's needed to be done manually. Really strange why VM stopped doing this, but ok.

Just add this code inside your plugins/vmcustom/easycheckbox/easycheckbox.php

find function setCheckboxJavascript () {

and after

function hideCheckboxImage (checkbox) {
var form = jQuery(checkbox).closest("form");
jQuery(form).find("#checkbox-pop-up").hide();
}

add

jQuery(document).ready(function() {
jQuery("form.product").each(function() {
var form = jQuery(this);
var id = jQuery(form).find("input[name=\'virtuemart_product_i[]\']").val();
Virtuemart.setproducttype(form, id);});
});

This should do the job.

I'll add this in new release.

Best Regards,
Maja
maja_mlinar
Thank you, it worked
Eliel

About the author

Who‘s behind this

Demo

Maja Mozina Mlinar

founder
Demo

Sandi Mlinar

procurator

info@sm-planet.net

Skype: maja.mozina1