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

Fix checkout/order-pay tabs incompatibility #9

Merged
merged 1 commit into from
Feb 26, 2021

Conversation

sfwill-dev
Copy link
Contributor

@sfwill-dev sfwill-dev commented Feb 25, 2021

Questions Answers
Issue https://mundipagg.atlassian.net/browse/PAA-244
What? Fix checkout/order-pay tabs incompatibility. We use the single-product woocommerce tabs style, and some plugins have some behaviour for the single product page that ends up occurring to our tabs, such as "always clicking at the first tab" (which is the problem this pull request is solving).
How? Adding an empty html <li> tag as the first tab, so the click does nothing. NOTES: Alternatively we could style or tabs using an own style, but it would take a lot more time and we probably would have theme compatibility issues, being necessary adding tab color settings to our plugin. Other alternative could be find another wordpress/woocommerce frontend common tab style to use, but unfortunately we didn't get to find one.

Relates to: https://github.com/mundipagg/woocommerce/pull/19

📦 Attachments (if appropriate)

Woocommerce file which has the "click at the first tab" behaviour:
https://github.com/woocommerce/woocommerce/blob/master/assets/js/frontend/single-product.js#L25

Plugin which adds the single-product.js file to woocommerce order-pay page:
https://essential-addons.com/elementor/

@sfwill-dev sfwill-dev merged commit 932e009 into develop Feb 26, 2021
@netorodrigues netorodrigues mentioned this pull request Mar 4, 2021
@sfwill-dev sfwill-dev deleted the bugfix/checkout-tabs-incompatibility branch August 4, 2021 15:02
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.

3 participants