Add information to my products preview

Solved

Add information to my products preview

PAUL8
Tourist
43 0 17

Hello, 
I want to add this effect: 

PAUL8_3-1727370432924.png

I'm esplaining: When you hover over the photos, you can see the remaining and sold sizes.
I use dawn theme, my website is womber.fr and password is PROPAGANDAAA

Thanks,

Cordially

 

Accepted Solutions (4)

BSS-TekLabs
Shopify Partner
2322 689 810

This is an accepted solution.

- Here is the solution for you @PAUL8 
- Please follow these steps:
1. Go to Online Store --> Theme --> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head> and press 'Save' to save it

<style>
.media--hover-effect:hover .hover-image {
  display: block;
}
.variant-list {
      display: ruby !important;
}

.variant-container {
  display: none !important;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  color: white;
  padding: 10px;
  list-style: none;
  z-index: 20;
}

.card-wrapper:hover .variant-container {
  display: block !important;
}

.variant-item {
  margin-bottom: 5px;
}

.status.in-stock {
  color: black;
}

.status.out-of-stock {
  color: black;
    text-decoration: line-through;
}
</style>

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

BSS-TekLabs
Shopify Partner
2322 689 810

This is an accepted solution.

And find file card-product.liquid and add this code before tag "<div class="card__content">"

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

BSS-TekLabs
Shopify Partner
2322 689 810

This is an accepted solution.

    <div class="variant-container">
    <div class="variant-list">
      {% for variant in card_product.variants %}
      <div class="variant-item{% if variant.inventory_quantity > 0 %} in-stock{% else %} out-of-stock{% endif %}">
        
        {% if variant.inventory_quantity > 0 %}
          <span class="status in-stock">{{ variant.title }}</span>
        {% else %}
          <span class="status out-of-stock">{{ variant.title }}</span>
        {% endif %}
      </div>
      {% endfor %}
    </div>
      </div>

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

BSS-TekLabs
Shopify Partner
2322 689 810

This is an accepted solution.

- Here is the result you will achieve:

BSSTekLabs_0-1727708713326.png

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

Replies 4 (4)

BSS-TekLabs
Shopify Partner
2322 689 810

This is an accepted solution.

- Here is the solution for you @PAUL8 
- Please follow these steps:
1. Go to Online Store --> Theme --> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head> and press 'Save' to save it

<style>
.media--hover-effect:hover .hover-image {
  display: block;
}
.variant-list {
      display: ruby !important;
}

.variant-container {
  display: none !important;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  color: white;
  padding: 10px;
  list-style: none;
  z-index: 20;
}

.card-wrapper:hover .variant-container {
  display: block !important;
}

.variant-item {
  margin-bottom: 5px;
}

.status.in-stock {
  color: black;
}

.status.out-of-stock {
  color: black;
    text-decoration: line-through;
}
</style>

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
BSS-TekLabs
Shopify Partner
2322 689 810

This is an accepted solution.

And find file card-product.liquid and add this code before tag "<div class="card__content">"

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
BSS-TekLabs
Shopify Partner
2322 689 810

This is an accepted solution.

    <div class="variant-container">
    <div class="variant-list">
      {% for variant in card_product.variants %}
      <div class="variant-item{% if variant.inventory_quantity > 0 %} in-stock{% else %} out-of-stock{% endif %}">
        
        {% if variant.inventory_quantity > 0 %}
          <span class="status in-stock">{{ variant.title }}</span>
        {% else %}
          <span class="status out-of-stock">{{ variant.title }}</span>
        {% endif %}
      </div>
      {% endfor %}
    </div>
      </div>

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
BSS-TekLabs
Shopify Partner
2322 689 810

This is an accepted solution.

- Here is the result you will achieve:

BSSTekLabs_0-1727708713326.png

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now