Forum


Calc Builder Support

Calc Builder support
Forums
No se permite escribir sin estar logado. Por favor, login

In Shopping Cart version, no Add to Cart if result is 0 31.12.2014 04:12

I would like to hide the Add to Cart button is the calculator returns no value.

Re: In Shopping Cart version, no Add to Cart if result is 0 31.12.2014 14:00

Hi,
you would need to hide/show the button using javascript at 'after execution' tab. In order to hide buttons

CB("[id*=cb_result_hikalink]").hide();

for hikashop button, and

CB("[id*=cb_result_vmlink]").hide();

for virtuemart button.

After that, you can use your condition to show the button only if needed. If you have your price at the code at the variable $price, for ex, you can output it inside a hidden input at the calculator ouput, for ex:

input type="hidden" id="myresult" value="##price##"

and add to the javascript tab the condition to show, something like:

if(CB("#myresult").val()!="0"){

CB("[id*=cb_result_hikalink]").show(); //for hika
CB("[id*=cb_result_vmlink]").show(); //for virtue

}


Please place a ticket at the helpdesk if you need more help with this, we can share there html code which is not allowed at the forum.


Thanks, regards
Moonsoft Team
www.moonsoft.es
Are you satisfied with our products/services/support?
Please help us to keep improving, add a review at  joomla extensions site and  magento connect

Lo que nuestros clientes opinan de nosotros