このページのトップへ
Bulk Add to Cart

Bulk Add to Cart

Let customers add multiple items to their cart—all at once.

中級.png

上級

6K

出版された:

January 19, 2020

酒を楽しむ少女

によって

アンカー 1
開発者を雇う

説明例

In this example, a site visitor can design a charm bracelet with up to five charms. The bracelet and the charms are added to the cart at the same time.​

コード例

タブ1

.

タブ2

.

タブ3

.

このコードによる解決は複雑になる可能性がある。

どのように構築したか

Choosing the Bracelet and Charms


On the Charm Bracelet page, containers hold the elements that let visitors select a bracelet’s material and charms. These containers collapse or expand as visitors progress through the steps. Visitors can click on the heading text for any step to expand that step and collapse the others. Above these containers is the bracelet’s description, which is connected to the Description field in the Products collection.

 

After a visitor selects a bracelet material, the preview image on the left displays the color of that material. When the visitor clicks Next, the Choose charms container expands. A repeater in the container displays the available charms from the Products collection. When a visitor selects a charm, a black border appears around it and the charm is added to the preview image. After five charms are selected, an overlay covers the remaining charms so they can’t be selected.

 

If a visitor clicks on a charm they previously selected, the border disappears and the charm is removed from the preview image. If five charms were selected, then clicking one removes the overlay from the remaining charms, enabling their selection.

 

When a visitor clicks Finish, the Review custom bracelet section expands, displaying the selected material for the bracelet, the selected charms, and the total price.

 

Clicking Add to Cart adds the selected bracelet and charms to the shopping cart.


次のステップ


  1. この例をエディターで開き、テンプレートを操作してください。

  2. Publish the site and refresh your browser so the Stores collections appear in the Database.

  3. Learn how to work with examples in Velo.

使用したAPI

コード以外の例。

コード以外の例。

コード以外の例。

関連記事

開発者を雇う

Veloソリューションは強力なツールですが、自力で構築するのは困難です。経験豊富なVelo開発会社に構築をお任せください。

関連例

これは役に立ったか?

はい

|

いいえ

ご意見ありがとう!

カートに入れる ギャラリー

カートに入れる ギャラリー

Let customers add products to their cart—right from your product gallery.

中級.png

上級

Upsell Products

Upsell Products

Promote products based on items in your cart

中級.png

中級

Minimum Order Total for Shipping

Minimum Order Total for Shipping

Notify customers when they don’t reach the minimum total for shipping

中級.png

初心者

Delivery Time

Delivery Time

Let customers choose a custom delivery time

中級.png

上級

アンカー2
ページ下