CalcBuilder Forum

How can I show variables in the shopping cart of virtuemart?

User moon_1905 2016-12-09 17:04:17

Dear Moonsoft-Supporters!

I have a question regarding the variables at the input mask.

How can I show variables in the shopping cart of virtuemart?

Example:

a + b = c (Result will show in the shopping cart)

But I would like to show the input a + b also in the basket!

How can I do this?

Thanks in advance for the reply

Best regards

Moonsoft support 2016-12-11 17:22:36

Hi,
you can pass information to your product including all needed data at the product description. We assume you have configured your link with VM using the price result at your code section:

$vm_price_X=$result;

//Being 'X' your own template product ID

You can include additional information at the product desc this way:


$vm_desc_X="Your description. Input 1 entered:".$input1. " Input 2 entered:".$input2;

Of course replacing $input1 and $input2 for your own input fields. For most VM templates, you could even include some html tags (like br) in order to make a more readable layout.

Please let us know if you need further help with this.

Regards

User moon_1905 2016-12-12 12:36:28

Thank you for the fast answer.

I will try it and give an answer...

Best regards

User moon_1905 2016-12-15 16:49:52

Hi Moonsoft-Support,

it works!

Thank you very much for your support...

Best regards

...
Support/development 10 hours

Get a bigger amount of hours for more complex tasks and get a 10% discount

Buy now!
...
Support/development

Perfect for small code changes or to correct any bug at your site

Buy now!