Magento
  • Personalization for Magento
  • Installing
  • Disconnecting
  • Uninstalling
  • Getting Started
  • Configuring
  • Guides
    • Varnish & Full-Page Caches
    • Advanced User Guide
    • Managing Blocks
    • Overriding or Extending Functionalities
      • Overriding Product Data
        • Excluding Products
        • Customising Pricing
        • Resizing Images
      • Overriding Customer Data
      • Overriding Line Item Data
    • Bulk Product Updates
    • Console Commands
  • Features
    • Variations (Configurable Products)
    • Add to Cart
    • Indexer
    • Customer Group Pricing
    • Supplier Cost & Inventory Level
    • Restore Cart Link
    • Ratings & Reviews
    • Multi Currency (Exchange Rates)
    • Marketing permission and GDPR compatibility
    • Catalog Price Rules
  • Integrations
    • Using Yotpo
    • Using Klarna
  • FAQ
  • Developing & Contributing
  • Visit Nosto
  • Issues
  • Releases
Powered by GitBook
On this page
  • What are variations?
  • What fields are used?
  • Can variations be added to cart directly?
  • Enabling / Disabling Variations
  • Performance

Was this helpful?

  1. Features

Variations (Configurable Products)

PreviousFeaturesNextAdd to Cart

Last updated 3 years ago

Was this helpful?

Nosto for Magento natively supports variations.

3.0.0

What are variations?

For example, you might sell a t-shirt with two options, such as size and color. The size option might have three option values: small, medium, or large. The color option might have two option values: blue or green. A variant from these options could be a small, blue t-shirt.

Once variations are enabled, you will be able to preview by navigating any product page and previewing it by appending nostodebug=true to the URLs query string.

What fields are used?

  • Availability: The availability of each variant is tracked individually while the availability of the whole products is defined by the cumulative availability of all variants. If all variants are out of stock, only then will the parent product be considered out of stock.

  • Prices: Prices are tagged on the variant level. If the variant doesn't have a customised price, the price and list price are that of the parent product.

  • Name: The name of the variant is the normally autogenerated by Magento and is what is used by Nosto. If the name is customised, then the customised name is automatically used.

  • Image: The image of the actual variant is used. If the variant has multiple images, the main image is used. At this point, variants cannot have multiple images

  • Identifier: The identifier of the variant is the internal Magento identifier of the product.

Can variations be added to cart directly?

The usual add-to-cart functionality provided by the extension has been amended to also support adding an individual variation to cart.

Nosto.addSkuToCart({productId: "<product-id>", skuId: "<variant-id>"});

The function takes an object with the first argument being the identifier of the parent product, while the second argument is the identifier of the actual variant being added to the cart.

Enabling / Disabling Variations

Variations (since 3.0.0) are enabled by default. You can toggle the variations by navigating to the advanced settings and toggling Enable Variations under the Feature Flags section.

Performance

Enabling variations will impact performance as more queries are executed against the database to load all variation data.

It is recommended that you use a production-grade full-page caching mechanism (FPC.) or enable Nosto indexer in your Magento.

Preview configurable products

→ Learn more about the

Variation Settings

→ Learn more about the

Add to Cart
Indexer