Liquid, JavaScript, themes, sales channels
Hello,
I'm looking to create a custom calculator which would multiply the quantity by product price and display the total. I'm working on a store and can't seem to get the quantity to update but have got everything working otherwise!
I've got this far... using the following calculation formula but it isn't picking up the quantity as it increases.
Solved! Go to the solution
This is an accepted solution.
Hi @CreatieWilder,
Please follow the steps below:
- Step 1: Go to product-template.liquid file and add code here:
- Step 2: Go to theme.js file and add code:
Hope it is clear to you.
Hi @CreatieWilder,
Yes, it can only be added by JS, you cannot add liquid code for this.
Please send your site and if your site is password protected, please send me the password. I will check it.
Hi @CreatieWilder,
I have checked and your JS file is minify, can you send me staff account, I will help you to add it quickly
Hi @CreatieWilder,
I sent you a private message with email, when you are ready just send collaborators I will check it for you
This is an accepted solution.
Hi @CreatieWilder,
Please follow the steps below:
- Step 1: Go to product-template.liquid file and add code here:
- Step 2: Go to theme.js file and add code:
Hope it is clear to you.
Incredible thankyou so much this is perfect!!! I've been trying to solve this for weeks 😄
very helpful article but i am facing same issue with my website Female Delusion Calculator when i open this page we have show only source code web view cant show how to fix
@CreatieWilder wrote:
Hello,
I'm looking to create a custom calculator which would multiply the quantity by product price and display the total. I'm working on a store and can't seem to get the quantity to update but have got everything working otherwise!
I've got this far... using the following calculation formula but it isn't picking up the quantity as it increases.
{{ current_variant.price | times: 'we need the quantity variable in here' | divided_by: 100.00 }}It's the underlined section I can't seem to get working but it works with a flat number such as times 5 etc.
I've read setting up an event listener using JS may work for this but wondered if anyone knows the identifier to grab the live quantity as a user changes it.I have tried apps and they don't work.This is what I would like it to look like...
There are few apps like quiz which can fulfill your requirement. You can create quiz with different questions, customer can get products based on that.
you can also create custom app or customization in liquid.
With Guidelines you are able to create a series of questions and then associate tags with each answer. As a shopper goes through your product finder answering questions, we build a dynamic search query based on the selected answers/tags. i.e... Show all products that have Tag_A(From Q1) and Tag_B(From Q2) etc... The app is pretty flexible and can be customized to fit your needs. We also released a new feature that tracks sales directly attributed to someone going through your product finder/quiz. This way, you can clearly justify if shopify app is providing real tangible value to your bottom line.
As many do, shopify offer a free trial. Check us and if you need more help, please let me know.
User | RANK |
---|---|
38 | |
29 | |
13 | |
11 | |
8 |
Transform this holiday season into a shopping spree. Plus, learn how to effortlessly open ...
By Jasonh Dec 8, 2023Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023