Comments (15)
This issue has been mentioned on ClassicPress Forums. There might be relevant details there:
https://forums.classicpress.net/t/classiccommerce-missing-product-data-dropdown/3426/13
from classic-commerce.
Yes! Looking forward to having this fix.
If you need help testing, let me know.
from classic-commerce.
The Woo team did a good job with this fix, it should correctly determine whether to use the new WP 5.5+ behavior or the previous behavior (for WP <=5.4 and also ClassicPress). Needs testing but I wouldn't expect any issues with including this in Classic Commerce.
from classic-commerce.
I don't recall this ever being broken on WooCommerce in the last 7-8 years (thats how long I've used WC) and I've relied on the 'Virtual', 'Downloadable', and 'Software' checkboxes since day one. The Software checkbox is added with the (Paid) Software Add-On extension for license keys on products. If you need a copy of this plugin to test, let me know.
I'm not very involved on the actual issue other than knowing it "always worked". So it sort of baffles me it's not working now ๐คจ
from classic-commerce.
Unfortunately may not be a straightforward backport as it looks like Woo has made some other changes that are pre-requisites for including this fix, but we don't have those pre-requisite changes yet in CC.
from classic-commerce.
So it sort of baffles me it's not working now raised_eyebrow
WP 5.5 made a change which broke this behavior. WooCommerce 4.4.0 added a workaround.
from classic-commerce.
So it sort of baffles me it's not working now raised_eyebrow
WP 5.5 made a change which broke this behavior. WooCommerce 4.4.0 added a workaround.
But I'm pretty sure I started out on WC 3.x and I never noticed it broken ๐ฅณ
Unfortunately may not be a straightforward backport as it looks like Woo has made some other changes that are pre-requisites for including this fix, but we don't have those pre-requisite changes yet in CC.
Perhaps the fixes, or functions, or whatever that make this work could be included in the "Fake WooCommerce" plugin so only those who need it get it. (Or something along those lines) Since you may want to avoid bloat in the main project.
from classic-commerce.
I feel like we'd just end up chasing out tail on this. What happens if CC stops working with the next version of WP? Do we then have to look at fixing that issue as well, and adding in any other backports that may be needed for that fix?
If we are planning to always try to keep CC working with WP then I guess we should look at this. But if we accept the fact that CC is a CP-specific plugin then we shouldn't bother. Especially given this...
may not be a straightforward backport as it looks like Woo has made some other changes that are pre-requisites for including this fix
from classic-commerce.
@simplycomputing if you decide to fix bugs based on 'what ifs', then nothing ever gets done.
What I find stranger/more disturbing is that nobody seems to consider the WordPress side of things.
Imagine someone who likes WooCommerce but doesn't want the modern stupid WooCommerce... ClassicCommerce is then the answer, but apparently growing both the ClassicPress and ClassicCommerce platforms are a one sided deal with little focus other than "MUST GET AWAY FROM WORDPRESS". To some extent that's fine, but it will hinder growth and attractiveness to the masses immensely.
from classic-commerce.
if you decide to fix bugs based on 'what ifs', then nothing ever gets done.
Well, it's more based on "who do we have?". If it was a simple one-file fix (like the other PR I did) then I can muddle through that myself and test it. But when James said there were other related changes to unpick before getting this fix to work, then I am lost.
I would personally like to see CC continue working with WP, but I just don't know who is going to make that happen.
from classic-commerce.
I had a look at the WooCommerce PR for this fix. It involves editing 3 files.
- assets/css/admin.scss - we have admin.css so I guess we would need to work out what would be the matching change in our version of this file (?)
- assets/js/admin/meta-boxes-product.js - we do have this file and it looks like the change could be added (?)
- includes/admin/class-wc-admin.php - the change here is to a function we don't even have:
include_admin_body_class
. This was introduced in WC4.2.0. I have no idea how hard it would be to introduce this into CC.
from classic-commerce.
@simplycomputing Thanks for trying.
I find the WC code highly confusing and overly complex. So I'm not sure if I would be able to fix things.
However, seeing that the other checkboxes that go there, work. And in CC when used in ClassicPress it works. I don't think it's all that hard to extent/edit that code to have the missing checkboxes show up in WordPress as well. Since the code exists and 'sort of' works.
If the checkboxes work in the background (eg flip the switch in the database and see what happens), then it should be a simple CSS fix.
Regardless of the file, the code is somewhere in the older versions since it works when used in ClassicPress.
1-on-1 copying their fix is of-course most convenient/easy. But we're not always that lucky, hah.
from classic-commerce.
1-on-1 copying their fix is of-course most convenient/easy.
Yes, that's all I know how to do. :-) But I tried this last night and may have made some progress. I got this far:
Need to get some more eyes on this so I will do a PR and see what others think.
from classic-commerce.
@simplycomputing I'm happy to help test things, also other bugs and stuff like that.
Unfortunately, currently, I do not have time to actually sift through WC code for the most part.
Perhaps that'll change in the future, depending on how things develop in my life ๐ฅณ
So, if you need help testing let me know. And perhaps it's better to do this kind of thing via email or chat.
Then post the important bits and results on Github. Thoughts?
from classic-commerce.
I have just submitted a PR for this. It has some questions and needs more work, but it's a start. :-)
from classic-commerce.
Related Issues (20)
- Downloadable and virtual products support HOT 2
- Add link in settings page to relaunch ClassicCommerce wizard and/or button to automatically create the pages ClassicCommerce needs HOT 3
- PHP notice: Undefined index: _low_stock_amount
- Implement custom database tables (eg. for orders) HOT 2
- Problem in WC_AJAX::add_to_cart()
- Wrong WC_Data_Store in function wc_update_product_stock()
- Calling wp_die() in the AJAX handlers of WC_AJAX makes it difficult to reuse code.
- replace get_post_status( $product_id ) with $product->get_status() in WC_AJAX::add_to_cart()
- Constructing objects using "$some_object = new Some_Class()" makes subclassing difficult.
- Include an automated check of WC version compatibility in plugins HOT 2
- wc_maybe_adjust_line_item_product_stock() HOT 1
- After deleting an order item the product is not restocked
- Request for additional actions for function wc_update_product_stock() HOT 4
- Check security fixes applied to WC since 3.5.3 HOT 2
- Sale ends at 00:00 instead of 11:59 PM on set day HOT 1
- Do we change WC version number in CC PR? HOT 2
- Travis Build tests failing. Move to Github Actions HOT 1
- Custom settings sections don't works HOT 3
- is_api_request function for MWP Hubspot Integration (and others) plugin(s)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from classic-commerce.