Closed shyrgelber closed 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.
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"?
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.
@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:
WCS_ATT_Product::has_subscriptions( $product ) === true
;WCS_ATT_Product::get_subscription_scheme( $product ) === null
;WCS_ATT_Product::has_forced_subscription( $product ) === false
;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.
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!
@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.
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:
What I'd like it to look like: