How to create a order form

For this you need to use the droplet

This droplet has 4 possible parameters. The first 2 of them are mandatory.

  • Parameter 1: a=article title
  • Parameter 2: p=price
  • Parameter 3: n=amount
  • Parameter 4: T=title of button

Example:

 

Howto show the current cart

For this you can add the droplet in your template or on any shopping page.

 

Adding the cart to miniform

Add a block to your miniform form. In this website it is done like this:

<input name="mf_r_order" type="hidden" value="{ORDER}" />
<div class="full">
  <label style="width:100%" for="order"><span>Your Order</span>
    <pre style="font: inherit; background: #eee; border-left: 10px solid #ddd; border-radius: 10px; padding:10px; margin: 10px 0;">{ORDER}</pre>
  </label>
</div>

In the languagefile the fieldname (mf_r_order) is defined, as well as the location of the form.

$minicart['formlink']     = WB_URL."/checkout-form/";
$minicart['formfield'] = 'mf_r_order';

Also defined here is the tax percentage and if prices are including or excluding tax.

$minicart['taxpercentage'] = 21;
$minicart['taxincluded'] = true;