Jump to content

Using Calculator to Populate Qty on Product Page

Recommended Posts

  • Replies 6
  • Views 1.5k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

This is very likely not possible, the quantity field won't be able to read the result of the calculator after loading.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

It may be possible.

 
This is not a solution and I don't know for sure if I can get all the way there. The code is not bi-directional. In other words changing the quantity does not update the slider. I need more info on how you intend to use this potential code.

Is there only going to be one product with the slider?

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
  • 3 weeks later...
On 10/17/2022 at 7:54 PM, creedon said:

Is there only going to be one product with the slider?

Thank you for the responses - Sorry I missed them until now!  

To answer @creedon, I would like to have the slider on two different products. 

I actually have a solution working right now with JSON but only on Desktops and Tablets - it does not work on mobile.  Calconic offered these two options as solutions:

Basically, the desktop/tablet website breakpoint and the mobile website breakpoint use separate quantity input fields by the same name. Value output apparently prioritizes the desktop/tablet website breakpoint quantity field.

You would need to either
a) use multi-output JSON and output the same value to both quantity fields, but both fields should have different names.

b) use the same quantity field for both website breakpoints.

Is there a way to 'override' the Quantity input name reference with unique names that can be referenced by the JSON?

Thanks for all the input 

Link to comment
  • 1 year later...
On 10/17/2022 at 7:54 PM, creedon said:

It may be possible.

 

 
This is not a solution and I don't know for sure if I can get all the way there. The code is not bi-directional. In other words changing the quantity does not update the slider. I need more info on how you intend to use this potential code.

Is there only going to be one product with the slider?

Hi there, Can I get the code to make this posible? no matter if is linear as u mention.

Link to comment
3 hours ago, alex320 said:

Can I get the code to make this posible?

No.

No solution was ever created so no code exists.

The video I provided was based on some minimal test code. I can't find the test code as the original SS site I tested on is no longer an SS site, which might clue me into how I went about it.

For us to provide a potential solution now, please post the URL for a page on your site where we can see your issue.

A link to the backend of the your site won’t work for us, i.e. a url that contains /config/.

Please set up a site-wide password, if your site is not public and you've not already done so.

Post the password here.

Adding a site-wide password does not allow anyone to alter your site. It only allows those with the password to see your site.

Please read the site-wide password and how to share a link documentation to understand how they work.

We can then take a look at your issue.

You may find How to post a forum question post useful.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
25 minutes ago, creedon said:

No.

No solution was ever created so no code exists.

The video I provided was based on some minimal test code. I can't find the test code as the original SS site I tested on is no longer an SS site, which might clue me into how I went about it.

For us to provide a potential solution now, please post the URL for a page on your site where we can see your issue.

A link to the backend of the your site won’t work for us, i.e. a url that contains /config/.

Please set up a site-wide password, if your site is not public and you've not already done so.

Post the password here.

Adding a site-wide password does not allow anyone to alter your site. It only allows those with the password to see your site.

Please read the site-wide password and how to share a link documentation to understand how they work.

We can then take a look at your issue.

You may find How to post a forum question post useful.

There it is the thing, https://www.novaswood.com/store/p/brazil-thin-6j7h7-w8l7m

Pass: Novas2023woodweb

As you've seen in the calculator, it determines the panels quantity needed for my project. I'd like the result of ('Quantity required (+ Wastage %) NUMBER') to be automatically displayed in the Quantity box up there, just like in your video.

Thanks!!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.