Emergency

In urgent situations or outages, you can send a text message to our emergency line

Emergency line (text message only)

+45 29 70 15 95

Send a text message with the following information:

  • Your name and webshop
  • A description of the problem

Note: This service is only for critical situations where your webshop is down or has serious problems. For regular support, please use our normal support channels.

Add multiple products to the cart at once

A guide to building an add-multiple-to-cart feature, for example on landing pages or wholesale pages.

Reading time: about 1-2 minutes
Developer

You can let customers add multiple products to the cart at once. You do this by using an array in the form instead of the usual single-product format.

The Code editor in the Shoporama admin with the files of the MBN-Delaware theme in the left panel and the HTML code for after_purchase.html open for editing on the right.
In the Code editor under Design, you choose a theme file in the left panel and edit the HTML code directly. This is where you insert the form that adds multiple products to the cart at once.

Code example from a landing page

<form action="" method="post">
  <{section name="i" loop=$products}>
    <h3><{$products[i]->getName()|escape}></h3>

    <input type="hidden"
      name="add_to_basket[<{$smarty.section.i.index}>][product_id]"
      value="<{$products[i]->getProductId()}>"/>

    <input type="number"
      name="add_to_basket[<{$smarty.section.i.index}>][amount]"
      value="0" min="0"/>
  <{/section}>

  <input type="submit" value="Add to cart"/>
</form>

The key is to use add_to_basket as an array with an index for each product. Each element must contain product_id and amount.

You can also add attributes for variants and comment for a comment on each product.

Need help? Contact us at support@shoporama.dk.