FoxyCart / foxyshop

FoxyShop - WordPress plugin for FoxyCart
GNU General Public License v2.0
10 stars 8 forks source link

Don't output product variations if the `v:` modifier is blank #89

Closed adamjudd closed 1 year ago

adamjudd commented 1 year ago

If setting the value of a product option modifier to empty (using the custom v: option modifier in FoxyShop), outputting the option modifiers was causing issues when doing so on a custom product attribute that has a name of sub_frequency.

This change removes the v: modifier from the option modifiers output to the page when it's present, but also doesn't output any modifiers if the alternate value is set to blank (like {v:}).