isk2009
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Set product variation prices by user role IN BULK?Hi, D Smith,
Hm, would there be a way to assign a category to specific variations? I don’t immediately see one outside of categorizing the base product, but that idea would work if so.
And just for clarification, I’m selling usage licenses for music. The options available for each product in my store are license type (Basic, Premium, Exclusive, etc) and delivery format (WAV, mp3). The price changes depending on the combination of options selected, but those prices are the same for every product in the store. I also have elevated membership options linked to user roles that grant access to special perks like discounted prices on all variations. So, for example, if a free member can purchase a basic license with mp3 format for $25, a bronze member could purchase the same license and format for $15, and a silver member could purchase it for $5. And there would be a different pricing hierarchy for, say, premium licenses with WAV format, like $100 free-> $75 bronze-> $50 silver, and so on.
Forum: Plugins
In reply to: [WooCommerce] AJAX pagination on Woocommerce shop page: reloading assetsFigured it out.
Turns out I was missing some necessary assets. I just had to enqueue /wp-includes/js/wp-util.js in my functions file, as well as a cloudflare script at http://cdnjs.cloudflare.com/ajax/libs/lodash.js/0.10.0/lodash.min.js
Once I did that, the getScript code worked and the variation form started responding to input again. I just had to write some additional add/removeClass code before the getScript function is called that reverses any class changes that add-to-cart-variation.js implements on page load/input. That way the form gets set back to its initial state whenever an ajax call is made.