Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I installed uc_varprice, and it seems I can Edit -> Features and add the variable price feature. However, when I save it:
- I can still add the same feature over and over again, each time with different settings. This seems a malfunction.
- No data seems to be written into the uc_varprice_products table, which mystifies me.
- Worst of all, the product page simply displays the ordinary sell price. It's as if nothing happened.
Using ubercart-6.x-2.9.
Please let me know if I can provide any further data. Thank you!
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedI played with the settings a bit more, and got this price to show up. I changed the title to reflect this. Two changes:
1.) I added a default variable price to the product class. I haven't tested whether this was necessary (probably not), but I mention it in case #2 doesn't work. Incidentally, this default price showed up in the
uc_varprice_products
table, so it looks like I simply guessed wrong as to where this module stores individual product variable prices.2.) Enable selectable variable prices. Originally, I only wanted to have an arbitrary price, so I left
Enable selectable variable prices
unchecked. Mysteriously, my product now had no price at all. This time, I enabled the selectable variable price, and now I get both selectable variable prices and an arbitrary variable price.This could be some quirk on my system, but if the module only lets you have an arbitrary variable price if you have also enabled selectable variable prices, that seems like a bug.
Comment #1.0
Anonymous (not verified) CreditAttribution: Anonymous commentedClarified.