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
Show linkout to Marketplace when there are no product metabox suggestions to display #22994
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not getting the same results, in my tests after dismissing all the suggestions it first showed a blank page and then removed the tab for suggestions. Then I reloaded the edit product page for the product and the tab was still missing.
I am in the right branch https://cld.wthms.co/i0DYSJ, here is a screencast after clearing cookies and the user meta
Apologies @kloon – I forgot to push some of this. (😬) (Thanks for testing the fallback option of hiding everything though.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is testing well for me - just the one comment having the two sentences passed through the translate method, and all is looking good here.
includes/admin/marketplace-suggestions/templates/html-product-data-extensions.php
Outdated
Show resolved
Hide resolved
5367ace
to
a6ab021
Compare
Still testing out well for me, thanks for fixing up the translations. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is still a string missing translation functions. There is also a merge conflict so you may need to regenerate that minified file.
<h4><?php esc_html_e( 'Enhance your products', 'woocommerce' ); ?></h4> | ||
<p><?php esc_html_e( 'Extensions can add new functionality to your product pages that make your store stand out', 'woocommerce' ); ?></p> | ||
</div> | ||
<a href="https://woocommerce.com/product-category/woocommerce-extensions/?utm_source=editproduct&utm_campaign=marketplacesuggestions&utm_medium=product" target="blank" class="button">Browse the Marketplace</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This button is not translatable.
898e068
to
7a9d216
Compare
All fixed up now @mikejolley. Have rebased onto master & recompiled the js to pick up the upstream changes (hiatus in products list) & tested this is all working correctly. |
7a9d216
to
657b78a
Compare
Has been re-rebased and minified js rebuilt to catch the upstream changes (#23025), totally 100% ready for merge :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good now, thanks!
Changes proposed in this Pull Request:
When a user has dismissed all the product metabox suggestions, or if there are none to display, the UI is a little confusing.
This PR shows a nice message and button linking to the marketplace so it's clear why it's there.
How to test the changes in this Pull Request:
Get more options
tab.Also, after dismissing all the suggestions, reload the page, and click on the tab.
Screenshots