Answer the question
In order to leave comments, you need to log in
Is it possible to implement a dynamic product price depending on the width and height on opencart?
I would like to make an online store of stickers, where we set the initial length and width in centimeters
and make manual input of a non-standard size, which increases or decreases the price of the sticker.
For example, there is a sticker 20 by 10 cm, it costs 50 rubles.
A person can write 30 cm wide, the height of 15 cm is immediately set automatically and the price becomes 75 rubles
, etc.
How to implement it? Maybe some plugins? You won't get that many options...
Answer the question
In order to leave comments, you need to log in
Why doesn't the option with options work? that's basically what they're designed for.
To implement automatic width switching, use the "related options" module.
If there are just too many of them, then refine the options mechanism. If there are thousands of them, then make pagination in the options controller to make it comfortable to work with them.
I did similar things, but I didn’t really use this module of related options, I wrote my own solutions. But in your case, it can help. It is clear that there will be many options. But even if you write your own mechanism for such a "price-size", then there will be many of these price-sizes for each product. That is, the benefit from writing your own version is small.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question