Answer the question
In order to leave comments, you need to log in
How to make a script with the choice of units of measurement and additional calculations in the Woocommerce product card?
Hello guys.
A very big question.
There is a shop selling rolled metal, it became necessary to make a script into a product card. And only for certain products.
For example, the product fittings. In the rebar product card, there should be a choice of unit of measure, as I understand it in the select tag, the client needs to choose which unit of measure he needs in tons or in m / p.
Further, based on this choice, a certain cost will be displayed to it.
For example: the price per ton is 30r, he enters the quantity of 2 tons, we are 30+30=60, the final amount. Sounds easy, but there's an ass. (sorry for the french).
And there is a commodity square, also as an example.
In it, the price goes for m / n, that is, there will no longer be a choice of a ton, but there should be a default m / p.
I am attaching screenshots:
Answer the question
In order to leave comments, you need to log in
Hello!
Have you tried the Woocommerce Measurement Price Calculator plugin? Looks like it has similar functionality.
Another option is to look for woocommerce price calculator || woocommerce cost calculator
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question