# Tapcart blocks

> Bundle sets and gift choice in a Tapcart mobile app.

Source: https://www.luxesets.com/docs/tapcart

## The blocks

**Luxe Set Builder** and **Luxe Rewards Bar** for Tapcart App Studio. Both end in Shopify checkout, where Luxe prices every set as on the web.

> Built and tested against Luxe's real endpoint and a mock of Tapcart's runtime; not yet run in a live Tapcart app.

## Settings

| Block            | Settings                                                                                                                                 |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| Luxe Set Builder | Luxe address (required), Bundle set id, Collection handle, Variant id format (Shopify GID (default) or Numeric id), Accent colour, Words |
| Luxe Rewards Bar | Luxe address (required; the bar renders nothing without it), Variant id format, Accent colour, Words                                     |

## Install

You need Tapcart's Enterprise plan (App Studio custom blocks) and Tapcart CLI 2.x; on the Luxe side, Mobile apps is available on every plan. Turn on **Serve bundle sets to mobile apps** in Settings > Data and integrations > Mobile apps in Luxe and copy the Luxe address; before launch, while the store has a password, also turn on **Serve while your store is password protected**. Then, with Tapcart CLI 2.x:

```sh title="Terminal"
npm install -g @tapcart/tapcart-cli
tapcart auth login
tapcart project create -a <your Tapcart app id> -p luxe-blocks
cd luxe-blocks
tapcart block create LuxeSetBuilder
tapcart block create LuxeRewardsBar
# copy code.jsx and manifest.json for each block from Luxe
# (keep the CLI's config.json and manifestConfig.json)
tapcart dev block LuxeSetBuilder
tapcart block push LuxeSetBuilder --live
tapcart block push LuxeRewardsBar --live
```

Luxe sends the block files on request: email <developers@luxesets.com>.

## Not yet in the app

- Edit set, Complete my set, picker filters, share links, the tier progress bar and upsells
- Subscriptions: the blocks sell every set one-time, and show a Subscription only set as available on the online store ([Subscription sets](https://www.luxesets.com/docs/subscription-sets#channels))
- Prices in another currency: the builder reads "Set price shown at checkout" and the Rewards Bar hides itself
- Influenced revenue (the blocks write no `_luxe_touch`), B2B buyers, and Collection sets over 250 products (the builder lists the first 250)
