Variant Description

Description

  • click on each variant dropdown option will show variant description
  • view demo 01 (variant Color) – pass: abc
  • view demo 02 (variant Size) – pass: abc

07.26c05v1 Variant Description

07.26c05v1 Variant Description

07.26c05v1 Variant Description

#1. Install Code

  • adding Team Section
  • adding Title/Description, title match with variant option name
  • adding Anchor Link to match with Variant Name
  • adding code

#1.1. First, you add a Team Section (choose Team > Choose Section with (i) icon) to Variant Product

07.26c03v1 Hover Link Change Background Image

#1.2. Hover on top right of section > Click EDIT CONTENT

07.26c03v1 Hover Link Change Background Image

#1.3. at Design > Choose Simple List

07.26c03v1 Hover Link Change Background Image

#1.4. at Elements > Enable Title, Body

07.26c05v1 Variant Description

#1.5. at Content > Add your title/body text.

07.26c05v1 Variant Description

  • Note: make sure Title same as Variant Option Name

07.26c05v1 Variant Description

07.26c05v1 Variant Description

#1.6. Hover on top right of section > Click EDIT SECTION

07.26c03v1 Hover Link Change Background Image

at Format > Anchor Link, enter word, use format: variant-description-VARIANTNAMEUSELOWERCASE

ex: in my case, variant name is Size, so we will use: variant-description-size

07.26c05v1 Variant Description

#1.7. Repeat similar #1.1 to #1.6 for other products. Here is an example with variant Color

We have 4 variant options: Blue, Red, Navy, Green

07.26c05v1 Variant Description

so Team List Section will have these texts

07.26c05v1 Variant Description

and anchor link will be: variant-description-color

07.26c05v1 Variant Description

#1.8. Click Gear icon on Store Page

07.26c05v1 Variant Description

Next, click Advanced > Page Header Code Injection

07.26c05v1 Variant Description

#1.9. Add this code to right box

<!-- 07.26c05v1 Variant Description -->
<script>
  window.VariantDescriptionConfig = {
    sectionIdPrefix: 'variant-description-',
    productDescriptionSelector: '.product-description',
    sourceTitleSelector: '.list-item-content__title',
    sourceDescriptionSelector: '.list-item-content__description'
  };
</script>
<script src="https://code.beaverhero.com/store/0726c05v1variantdescription.js"></script>
<style>body.sqs-edit-mode-active section[id*="variant-description"] {display:block!important;visibility:visible!important;}</style>

07.26c05v1 Variant Description

#2. Customize

nothing now

 

Buy me a coffee