Forum


Calc Builder Support

Calc Builder support
Forums
Public write access is disabled. Please login

no result 08.09.2014 13:26

This is not working for me

http://www.myinternationalshopping.com/advice/calc

I am not getting a result!

Some of the documentation is wrong as well.

Re: no result 08.09.2014 13:32

Hello,

We checked your site and seems to be a javascript error in module "Email Newsletter":

Uncaught ReferenceError: form is not defined calc:756
(anonymous function) calc:756


Please first fixed javascript errors in your site and test it again.

Regards,
Moonsoft Team
www.moonsoft.es

Re: no result 08.09.2014 13:54

I've unpublished the email newsletter and still no result.

Re: no result 08.09.2014 14:00

Hello,

Your page throws a 500 error when trying to get calc results. This could be an error in code inside your calculator (or firewall, sef...). Please try to clear all inside 'Code' and test it again.

Regards,
Moonsoft Team
www.moonsoft.es

Re: no result 08.09.2014 14:11

it did something when I removed the code which is this:
$sum=($length*$width*$height)/$units;


have a look

Re: no result 08.09.2014 16:18

Hello,

We checked and seems to be ok. Only just add your own code and configure your calculator.

Regards,
Moonsoft Team
www.moonsoft.es

Re: no result 08.09.2014 16:25

I've done that and it's not working.

Re: no result 08.09.2014 16:29

Can I send you an export so you can see?

Re: no result 08.09.2014 16:32

Hi,
if your code doesn't work you will need to investigate where are you introducing the error. The line of code you sent has a right sintax, so you'll need to check if data used for calculations is also right. (For example, that you're not dividing by 0).

we suggest to print at the output the variables being used

##units##
##height##

..etc

, so you can see which values are you using and so you can point out the origin of the issue.

Regards
Moonsoft Team
www.moonsoft.es

Re: no result 08.09.2014 16:47

I've tried that.

I may need a refund.

Re: no result 08.09.2014 17:52

Hi,
did you tried and what did you get?

We just noticed you have created a strange layout, that could be the origin of the wrong calculations.


Seems like you introduced the fields inside a section? Sections are blocks of forms that user can duplicate, think this is not needed for your case. Inputs will be recovered in form of arrays and you are also getting a strange 'del' button at the top.

In this scenario, your inputs would be arrays, and the sintax:

$sum=($height[0]*$width[0])/$units[0];


Please remove the section, go to 'form layout' and create a new layout from scratch, its done automatically with the button '1 column layout'.


Then try :


$sum=$length*$with*$height;


to ensure inputs are recovered as expected, and your original expression:


$sum=($length*$width*$height)/$units;


Will be working if you set a numeric value for each option at 'units' field

Hope this helps,regards
Moonsoft Team
www.moonsoft.es

Re: no result 08.09.2014 18:06

It is very strange. What is the delete button? Is it not from calc builder?

Will try your suggestions

Re: no result 08.09.2014 18:10

Hi,
yes, the button is added by the calculator, because you filled the tab 'sections' at your calculator backed and added your fields 'inside'. If you remove the section and create a new layout you should not see any 'del' or 'add' button, they are only intended to add and remove form blocks.

Hope this helps, regards
Moonsoft Team
www.moonsoft.es

Re: no result 08.09.2014 18:23

OK, it works!

I think it was the section thing

Re: no result 08.09.2014 18:28

I will have more questions
Are you satisfied with our products/services/support?
Please help us to keep improving, add a review at  joomla extensions site and  magento connect

Our clients' feedback