somewherewarm / woocommerce-subscribe-all-the-things

Experimental mini-extension for WooCommerce Subscriptions that explored the possibility of adding subscription plans to non-subscription product types. Now available on WooCommerce.com as "All Products For WooCommerce Subscriptions".
https://woocommerce.com/products/all-products-for-woocommerce-subscriptions/?aff=46147&cid=5699243
152 stars 51 forks source link

Unable to apply useful labels for subscription options #139

Closed shyrgelber closed 7 years ago

shyrgelber commented 7 years ago

Hi there, I have downloaded this plugin though it seems that I can't edit the labels so that it makes sense on the front end for the customer. I played around in inspector - is it possible to edit the labels somewhere so it looks like my screenshot? Thank you! Here is my page where issue is: https://www.fortythieves.co.nz/product/cacao-hazelnut-with-toasted-coconut/

What it currently looks like:

screen shot 2017-06-21 at 10 37 36 am

What I'd like it to look like:

screen shot 2017-06-21 at 10 37 12 am
seb86 commented 7 years ago

@shyrgelber I suggest you install version 2.0 there is a new branch for it. The plugin is currently being reviewed before merging into the master branch ready for a new release.

shyrgelber commented 7 years ago

Oh great - have done that and the "array" labels are fixed. Thank you! Any chance I can change the option "none" to "one time purchase"?

shyrgelber commented 7 years ago

I managed to fix that one too. Final question - how do I remove "subscription plans starting at $13.99 / month for 6 months" I am happy to simply have the 'one time purchase' price.

screen shot 2017-06-21 at 3 49 41 pm screen shot 2017-06-21 at 3 49 31 pm
manospsyx commented 7 years ago

@shyrgelber You'll need to write some custom code to do this.

In SATT v2, a price string like this will be generated when no subscription scheme is set on the object -- when WCS_ATT_Product::get_subscription_scheme( $product ) returns null.

What you need is to hook into woocommerce_get_price_html (possibly conditionally, in the single-product summary) and if the product displayed:

then return the price that corresponds to the "one-time" state: WCS_ATT_Product::get_price_html( $product, false ).

Note that false here refers to the "one-time" state.

If you need help writing that code, you could check to see if @seb86 could put some time aside to help you out.

shyrgelber commented 7 years ago

Thanks very much @franticpsyx unfortunately I'm not a developer and have tried to follow your instructions but haven't quite figured out how to fix it. @seb86 if you do have a moment to help me, that would be really fantastic. Thank you!

seb86 commented 7 years ago

@shyrgelber Can you kindly please contact me via email to continue as this is not an issue with the plugin but a customisation and only issues should be commented here. Thank you.