Sticky Add To Cart
The sticky add to cart is made to make it easier for a potential buyer to focus on the product description without losing sight of the buy button.
This is not the original Shopify theme option. It is made in many themes.
Advantages of our sticky add to cart:
- Support adding subscription to the cart.
- Support adding additional product fields to the cart(additional product fields are used to create more complex configurable products that have more than three options, herein Product / Additional Product Fields we have described in detail how to use our self-written additional fields generator for Lumia theme).
- The main variant options selector is fully synchronized symmetrically with the options in the sticky add to cart. This means that if you chose red color and XS size, then exactly the same size and color will be selected in the sticky add to cart, the product photo will be changed both there and there. It works in one direction and the other.
- Product variant options as pills, default dropdowns or information block (when there are no product variants).
- Asynchronous block - 100% passes page speed insight metrics.
The desktop and mobile versions have an interface for closing the sticky add to cart if it annoys or blocks the desired content. The user can easily do this.
Desktop view
Pill product options default
Enabled by default: Yes
Visibility: Product page desktop
Steps to enable / disable
- From your Shopify admin, go to Online Store > Themes.
- Find the Lumia theme that you want to edit, and then click Customize.
- Click Theme settings.
- Click Product page.
- To enable sticky add to cart, check the Enable sticky add to cart checkbox.
To disable sticky add to cart, uncheck the Enable sticky add to cart checkbox. - Open the drop-down Sticky type and select Pills.
- Click Save.
- [Optional] Upload pics as described here.in Product Page / Product Options / Pics
- [Optional] Upload photos as described here.in Product Page / Product Options / Variant's featured image
Dropdown product options
Enabled by default: No / Auto (auto means that if the product has many options, then the dropdown mode will be forced)
Visibility: Product page desktop
// Below is a theme LIQUID code for those who want to re-customize the AUTO mode logic
// Path of file snippets/variant_picker.liquid
// ...
if product.options.size == 1 and product.variants.size > 10
assign picker_type = 'dropdown'
elsif product.options.size == 2 and product.variants.size > 36
assign picker_type = 'dropdown'
elsif product.options.size == 3 and product.variants.size > 100 or layout == 'product-sticky'
assign picker_type = 'dropdown'
endif
// ...
Steps to enable / disable
- From your Shopify admin, go to Online Store > Themes.
- Find the Lumia theme that you want to edit, and then click Customize.
- Click Theme settings.
- Click Product page.
- To enable sticky add to cart, check the Enable sticky add to cart checkbox.
To disable sticky add to cart, uncheck the Enable sticky add to cart checkbox. - Open the drop-down Sticky type and select the Dropdown.
- Click Save.
No product options
Enabled by default: Yes
Visibility: Product page desktop
Steps to enable / disable
Automatically turns on if the product has no options.
- From your Shopify admin, go to Online Store > Themes.
- Find the Lumia theme that you want to edit, and then click Customize.
- Click Theme settings.
- Click Product page.
- To enable sticky add to cart, check the Enable sticky add to cart checkbox.
To disable sticky add to cart, uncheck the Enable sticky add to cart checkbox. - Click Save.
Mobile view
Enabled by default: Yes
Visibility: Product page mobile
Steps to enable / disable
- From your Shopify admin, go to Online Store > Themes.
- Find the Lumia theme that you want to edit, and then click Customize.
- Click Theme settings.
- Click Product page.
- To enable sticky add to cart, check the Enable sticky add to cart checkbox.
To disable sticky add to cart, uncheck the Enable sticky add to cart checkbox. - Click Save.
Admin interface
Option Name | Type | Values | Default | Description |
---|---|---|---|---|
Enable sticky add to cart | Checkbox | • True • False | True | Enables sticky add to cart on the product page |
Sticky type | Dropdown | •Pills •Dropdown | Pills | Storefront view of the options selector |
Use pics | Checkbox | • True • False | True | Allows to use pics from Settings / Files for sticky type Pills |
Use featured variants images for the 'Color' option | Checkbox | • True • False | True | Allows to use variant's featured images for the sticky type Pills |
Width of the 'pics' or 'variant images' | Range | 22-30 | 22 | Swatches width in px for the sticky type Pills |
Icon 1 Section Title | Text | FREE SHIPPING | Text in left block for the sticky add to cart No product options | |
Icon 1 Section Preset Icon | Dropdown | List of available icons | truck | Left icon for the sticky add to cart No product options |
Icon 2 Section Title | Text | FREE RETURNS | Text in left block for the sticky add to cart No product options | |
Icon 2 Section Preset Icon | List of available icons | return | Left icon for the sticky add to cart No product options | |
Icon 3 Section Title | Text | SUPPORT<br>24/7 | Text in left block for the sticky add to cart No product options | |
Icon 3 Section Preset Icon | List of available icons | support | Left icon for the sticky add to cart No product options |