How to add "you added this" bellow the product in the collection SHOPIFY

Ali Zein

I'm sorry for this simple quistion but I really got a headache !

I need to add "You added this item" text bellow the product After adding to cart.

for example: I have a list of fruits .. when the client add 5 kilos from apple then back to the home page to check the other fruits .. He notice that he bought the apple product by adding "You added this item" text bellow the price. enter image description here

thanks

Vladimir

Place the following code in a place where the product object is available on the homepage (or anywhere else).

{%- assign productCartItems = cart.items | where: "product_id", product.id | size -%}
{%- if productCartItems > 0 -%}
  You added this item
{%- endif -%}

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Shopify: Remove product from collection via API call

Add product in cart by using Shopify

How can I add shadow on UIView, if there is another UIView bellow

How to bundle product in shopify?

How to display shopify secure logo on product pages?

Displaying the current collection on a product info page (shopify liquid)

How to update product options in product variant in Shopify?

Shopify, displaying price of first in stock product variant on Collection page

How to determine if a product is part of a hidden collection in Shopify liquid templates?

Shopify Multiple Product options, add event to generated dropdown options

Shopify - How to exclude a collection in paginate?

How to get the URL for any product in Shopify Shop given that its pattern varies if it belongs to a collection?

Add multiple varient options in shopify product

How to add product reference in product?

Shopify theme how to check product description text

In Shopify add a product via SKU rather than Variant ID

How can I add a check to see if a collection on Shopify is available / published?

How to get Shopify order data to product page

How can I add product to shopify store from another website?

Shopify - How can I match the display order of tags to product display order in a collection?

Can a Shopify Public App extend the "Add/Edit Product" page?

How to add a credit card logo in the product page of a Shopify site

How to add an add to cart button on products displayed on product recommendation section in shopify?

How can i add Order Estimator to Shopify product details page

How to add more padding bellow a TextView when the keyboard is shown

How can I add a footer or any other content bellow a video that takes up 100% of the screen's height?

On Shopify, check if a given product is not on any collection

Shopify - Add Number (1,2,3) before Product in Collection

Add add to cart and button variant selector in collection page - Shopify