Shopify themes, liquid, logos, and UX
Hey, ive tried so many times to put the price in the add to cart button for mobile only but nothing seems to work! Does anyone happen to know how to do this? thanks in advance for helping me out! I will put a example down below!
TASTE THEME
LINK:https://e8aaa0-3.myshopify.com/password
PASSWORD: mohwhi
try to follow this
- Shopify admin, go to "Online Store" > "Themes."
- find for section product.liquid or product-template.liquid
- then find for "name="add" which is add to cart button
- then add price like this
<button type="submit" name="add" id="AddToCart" class="btn">
Add to Cart - {{ product.price | money }}
</button>
Note: here {{ product.price | money }} will used to add price in button
Hey, I don't have a product liquid I use the taste theme, can't this be done using css?
Hello @PRETTYFRIDAYS ,
Replace the below code in your "buy-button.liquid"
{{ 'products.product.add_to_cart' | t }} - {{ product.price | money }}
Hey, it works! But unfortunately on both desktop and mobile. Do you know how I can make it mobile only? Thanks!
I was looking for something like this but that would work on both single priced products and products with attributes. Any idea how to make it work? Thanks!
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024