Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Also update the cart and TY page message #1

Open
pdobrescu opened this issue Jul 12, 2016 · 9 comments
Open

Also update the cart and TY page message #1

pdobrescu opened this issue Jul 12, 2016 · 9 comments

Comments

@pdobrescu
Copy link

Firstly thanks for this great plugin! I was searching for something like this, but couldn't find it :)

I have one suggestion: it would be great if the plugin also updated the message that shows up in the cart and on the thank you page, because it currently shows Available for backorder in the cart and Added on backorder on the thank you page, which might be a bit misleading/confusing for the customers.

What do you think?

@anttiviljami
Copy link
Owner

Yes, definitely. Did you do the research to see if there are filters for that too in WooCommerce / your theme ?

@pdobrescu
Copy link
Author

Wow, that was a fast reply :-D

Well, it's not out of the box, but it might be doable. The actual message in the cart gets displayed here:

https://github.com/woothemes/woocommerce/blob/master/templates/cart/cart.php#L92

There are some filters before, but I'm not sure if you can properly adjust the message. Maybe you can just add your information. Otherwise I can easily do this from my cart template I guess.

As for the TY page, it loads the order-details.php template and most probably you can hook up here:

https://github.com/woothemes/woocommerce/blob/master/templates/order/order-details.php#L39

Thanks again!

@anttiviljami
Copy link
Owner

Hmm, looks like this is more of an issue with WooCommerce not being consistent with how the availability / backorder notification gets shown across the templates.

Looking at the links you provided, it's not immediately clear to me how you would efficiently filter the availability text at either template. There seems to be some logic involved there with the backorders that I'm not sure on how they should be taken to accont.

Let me know how you would like to proceed with this ! I'd be more than willing to take suggestions on this.

@BurlesonBrad
Copy link

@pdobrescu
Are you wanting to change the actual text of Available for backorder?
Wanting to make it your own custom text Universally?
(implying a /admin text field needs to be added so that a store owner could change it on the backend)
Wanting to make it your own custom text on a Per-Product basis?
(implying a /admin text field needs to be added so that a store owner could change it on the backend)

Dude with a little bit of work, @anttiviljami, you could totally take this plugin to the market and have people eating outta your hands 💰 💰 💰 💰 💰
custom-availability-options

Just a concept 😉

@pdobrescu
Copy link
Author

@BurlesonBrad just changing the text is pretty easy, that's not my point. I'm rather thinking about a Per-Product approach and your concept looks pretty neat. In a first phase it could be even easier than that, with just some check boxes with the places/templates where to amend and/or add the custom text.

@anttiviljami Indeed WooCommerce has become pretty huge and consistency is hard to keep at this level. On the other hand their developers are pretty responsive and requested filters/hooks are usually added. It definitely requires a deeper dive in the code for a proper solution. I'll try to get my hands a bit dirty sometime next week and see what comes out of it.

@pdobrescu
Copy link
Author

@anttiviljami following the response from the WooCommerce team, a PR with the filters you need to properly making it work would be the way forward for solving this issue. More details here:

woocommerce/woocommerce#11505

Would that be something doable form your side?

@anttiviljami
Copy link
Owner

@pdobrescu Thanks for your work!

Yeah sure I can do that. I don't however have a use case for this right now, so it will probably have wait for my next project where I can bill a client for the work.

Ofc. anyone is free to implement this feature if they need it for their own project and I'll happily merge it. :)

@raykai
Copy link

raykai commented Feb 22, 2017

i would love to have this option too!

@raykai
Copy link

raykai commented Feb 22, 2017

if you need $ to continue the work on this plugin you chould add this plugin on codecanyon https://codecanyon.net could get payed to continue to work on it with pro version that could have more options as long as its not 60$ and keep the free version on WP plugin list

anttiviljami pushed a commit that referenced this issue Nov 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants