We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 48380
    • 4 Posts
    Hi! I'm making a shop on MODx Revo, and using Shopkeeper. I have a task to make a product to have a set of parameters, and a price calculated depending on parameter values, picked up by the shopper on the product page. For example, there is a "Screw" product, which has two parameters - thickness (mm) and length (mm). So, there is a set of parameters: (Price is in rubles, so don't be surprised about the numbers smiley)
    Thickness=6, Length=20 => Price=25
    Thickness=6, Length=22 => Price=27
    Thickness=8, Length=20 => Price=30
    Thickness=8, Length=22 => Price=33
    And so on. In other words, it should be able to set a separate price for each combination of parameters, which the user can pick up on the product page. So, the questions are:
    1. Am I right that there should be used a param-edit TV input type for that task?
    2. As I have understood, the 1st column in param-edit columns setting, - it should be unique for each row? Because if not, it behaves like there is a bug, - when I add the same value, it erases the previous record with the same 1st column value). And is that a reason, why the default two columns are "Name" and "Price", and they should be preserved?
    3. So, my final columns setting should look like: Name, Thickness, Length, Price
    4. How does Shopkeeper find out that the product price column should be a "Price" ? Is it taken from Shopkeeper system setting "Price TV" ?

    Sorry, maybe some of my questions are wrong, the matter is I still didn't try to output the fields on the product page, perhaps when I do, it should make some things more clear, but I'm too confused already to proceed further. Also, I didn't find any detailed documentation on the param-edit.