Filter to adjust the price selector for archives
-
Hi there,
we develop the plugin Germanized for WooCommerce, which is very popular among German users. Germanized adds a price per unit to the product data and shows that price in loops/archives as well as on the single product page. This price per unit uses the
.price
class as well. Your plugin overrides every.price
instance it finds within the li-element on archive pages with the actual product price. That is not very nice ?? Either it should only override the first instance or check forspan.price
instead.Another option would be to provide a filter to exclude some elements from being replaced. You might pass that exclusion selector to your JS in
assets/js/swatches.js
updatePrice()
function.Best,
Dennis
- The topic ‘Filter to adjust the price selector for archives’ is closed to new replies.