Book a call

Fill out the form and we will call you back as soon as possible

Emergency situation

In case of emergencies or breakdowns, you can send an SMS to our emergency hotline

On-call phone (SMS only)

+45 29 70 15 95

Send an SMS with the following information:

  • Your name and webshop
  • Description of the problem
  • Your callback phone number

Notes: 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 basket at a time

Guide to implementing an 'add more to cart' feature, for example on landing pages or wholesale pages.

Reading time: approx. 1-2 minutes
Developer

You can let customers add multiple products to the cart at once. This is done by using an array in the form instead of the normal single product format.

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 should contain product_id and amount.

You can also add attribute_value_id for variants and comment for comments per product.

Do you need help? Contact us at support@shoporama.dk.