Moonsoft Software Solutions

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

Started 9 Dec 2016 · 3 replies

  1. moon_1905
    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
  2. Moonsoft support
    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
  3. moon_1905
    Thank you for the fast answer.

    I will try it and give an answer...

    Best regards
  4. moon_1905
    Hi Moonsoft-Support,

    it works!

    Thank you very much for your support...

    Best regards

Still stuck?

Customers with an active license can open a support ticket.

Log in to open a ticket