Closed ghost closed 2 years ago
This pull request has been mentioned on ClassicPress Forums. There might be relevant details there:
https://forums.classicpress.net/t/classiccommerce-missing-product-data-dropdown/3426/24
Would you mind pulling this down and testing @simplycomputing ?
Will do (once I work out how to do that).
Will do (once I work out how to do that).
Using your git tool, go checkout to this branch if you still have it on local. Then pull from upstream.
Yes! Looks good. All the dropdown options work and it is in the right place. Nice job!
.
This pull request has been mentioned on ClassicPress Forums. There might be relevant details there:
https://forums.classicpress.net/t/classiccommerce-v2/4860/33
All Submissions:
Changes proposed in this Pull Request:
When Classic Commerce is used on WordPress 5.5+ the product type dropdown is missing. This is a known issue and was fixed in WooCommerce 4.3.2. There has been interest shown by some users in testing CC on WordPress before making a commitment to switch to ClassicPress. so it may be worth trying to backport this change into CC.
As far as I can tell, a function was added in class-wc-admin.php to check the WP version and apply an extra css class if necessary.
There is a condition added to meta-boxes-product.js to add this in, and some new css rules to handle the display.
NB. The current admin.css file is minimised so I have placed the new css at the end of the file. This is enough to get the dropdown to display, but it it still in the wrong place and this file needs more work.
Partially addresses #331 .
How to test the changes in this Pull Request:
Screenshot - before:
Screenshot - after:
Other information:
NB The new function in class-wc-admin.php only tests for WP version. I don't know what happens with CP and whether this test may cause problems later with higher CP versions. It might be worth adding a condition specifically to cater for CP sites (?).