strangerstudios / sitewide-sales

Run Black Friday, Cyber Monday, or other flash sales on your WordPress-powered eCommerce or membership site with WooCommerce, Easy Digital Downloads, and Paid Memberships Pro.
https://sitewidesales.com
GNU General Public License v3.0
3 stars 6 forks source link

Striking prices for variations similar to how we do for simple products. #134

Closed ideadude closed 2 years ago

ideadude commented 2 years ago

All Submissions:

Changes proposed in this Pull Request:

Before this update, when you chose a variation from the dropdown on the frontend, you would see the variation price like: $10.00 $10.00. There was a strikethrough, but the sale price was not shown.

This update allows our strikethrough code to work on variations like it does on simple products (the variable products still show a range).

How to test the changes in this Pull Request:

  1. Create a variable product with a few variations.
  2. Set up a coupon and SWS that applies to that product.
  3. Visit the product on the frontend and choose a variation.

It should show the discounted price now.

Other information:

Changelog entry

BUG FIX: Now striking prices for variations similar to how we do for simple products.