To explain my issue: I have about 120 digital products (fonts). Each of the products can be purchased for 3 license types, each of the license types has different factors based on the volume of usage. I could map this with product variations. But I would have over 4000 in total - a nightmare to create and maintain. On top of that, the product variations only differ in price, the rest stays the same.
My idea is to create only the 120 basic products in the backend. In the frontend one would select (Padloper-independent) the product, the license type and the license volume. This information would then be passed to a PHP file that adds the product to the cart, and uses a hook to calculate the price and change it accordingly.
I don’t need an add-to-cart form for this, but would rather do it like this:
$cart = $padloper->getCart();
$cart->addProduct($product);
Unfortunately, using this syntax doesn’t work. If anyone has any tips to point me in the right direction, I would be incredibly grateful.