Forum

Thread tagged as: Addons, Suggestions, Shop

Alerts for unset prices in Shop

Hi,

We've recently had an issue where a client has forgotten to set the sale prices on variants leading to one of their customers getting an order nearly entirely for free. While this is human error I think it would be better if there were some sanity checks when updating products to alert clients they may have missed information or accidentally configured product variants incorrectly.

In this instance the client assumed setting the master sale price would update all variants (am I right in thinking this is only the case if variants haven't had individual prices set?), an alert when saving with 'Use sale price' if there is no sale value on the master or variant products would help to prevent this.

Many thanks.

James Wigger

James Wigger 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Why not make the field required?

At the time of populating the content the client had no sale prices, and still doesn't for many of the products. The required attribute would work if it was conditional on the 'Use sale price' checkbox being active. The required attribute would also not catch missing sale price values on variants when saving the main product form.

Drew McLellan

Drew McLellan 2638 points
Perch Support

The other thing you can do is check in your template that the price is set before displaying the add to cart button.