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

QTS: remove slug fields for WC attributes add/edit page #1164

Merged
merged 1 commit into from
May 13, 2022

Conversation

spleen1981
Copy link
Contributor

@spleen1981 spleen1981 commented May 9, 2022

Replace slug fields from WC attribute add/edit admin pages with the link to the relevant existing slugs module settings page.

Copy link
Collaborator

@herrvigg herrvigg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. I can't find the product attributes in the slugs settings.

  2. Please break the patch in two, I'd prefer to have all the l10n changes in a separate PR because they impact more than slugs and it will be easier to track in the git history.
    For example to save the changes:

git checkout -b update-l10n
git checkout wc_attibute_add_edit_fix
git reset HEAD~

<td>
<?php
//TODO: link destination should not be hardcoded here, but currently $options_uri property is private in QTX_Admin_Settings class (base options page) and module id is hardcoded independently from module definitions in QTX_Admin_Module class (module href).
echo sprintf( "<p>" . __( 'Multilanguage slugs can be set up in <a href="%s">slugs module settings</a>', 'qtranslate' ) . "</p>", admin_url( 'options-general.php?page=qtranslate-xt#slugs' ) );
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe i'm missing something, but I don't find the product attributes in the settings.
I can find the product categories and tags, but not the attributes 😢

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need this check enabled in your test attribute, otherwise there is no archive page and no slug needed.
image

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to now!

modules/slugs/includes/qtranslate-slug-admin.php Outdated Show resolved Hide resolved
modules/slugs/includes/qtranslate-slug-admin.php Outdated Show resolved Hide resolved
Slugs fields from WC attribute add/edit admin pages are replaced with the link to the relevant existing slugs module settings page.
@spleen1981 spleen1981 force-pushed the wc_attibute_add_edit_fix branch from c18597c to 9f4e5fb Compare May 9, 2022 22:45
@herrvigg herrvigg merged commit 86a8ddc into qtranslate:master May 13, 2022
@spleen1981 spleen1981 deleted the wc_attibute_add_edit_fix branch May 14, 2022 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants