Commit Graph

65 Commits

Author SHA1 Message Date
IanDelMar 7b75b52584 fix woocommerce form fields 2023-02-12 15:00:52 +01:00
IanDelMar c06c3edfd2 Fix summary in docblock 2022-10-15 21:07:52 +02:00
IanDelMar ebc2bfa16d Fix radio field wrapper 2022-10-09 23:27:58 +02:00
IanDelMar 6178f3e4a6 Remove obsolete default value
Filters
2022-10-09 22:12:06 +02:00
IanDelMar d9d4fdb564 Update function comment 2022-10-09 22:07:57 +02:00
IanDelMar 54f774d682 Fix WooCommerce checkout/address state field 2022-10-09 21:43:36 +02:00
IanDelMar fac19e0de9 Fix WooCommerce checkout/address select form field 2022-10-09 21:38:06 +02:00
IanDelMar c96f5104a2 Fix WooCommerce checkout/address checkbox form field 2022-10-09 21:30:08 +02:00
IanDelMar f944602a0b Fix WooCommerce checkout/address radio form field 2022-10-09 21:21:33 +02:00
IanDelMar 893a6a16ce Reorder switch cases to match WC's order 2022-10-09 21:05:13 +02:00
IanDelMar f782ec010d Remove obsolete 'textarea' case 2022-10-09 21:04:09 +02:00
IanDelMar 6a6c0d065e Add margin to all field wrappers 2022-10-09 21:02:22 +02:00
Brian Coords 849ff36586
Merge pull request #1904 from IanDelMar/woo-templates
Update WooCommerce templates
2022-09-29 13:03:26 -07:00
IanDelMar 3c63aef571 Add more meaningful comments to the filters 2022-09-29 17:20:02 +02:00
IanDelMar 9b03d6f3c0 Use filter to add CSS classes & add active class to active items 2022-09-14 23:56:18 +02:00
IanDelMar 8d24207242 Use filters to add markup 2022-09-14 23:56:17 +02:00
IanDelMar e92309a9b6 Fix HTML comments 2022-08-09 22:42:46 +02:00
IanDelMar 39d30e2346 ensure variable is of type string 2022-07-23 17:49:20 +02:00
IanDelMar 6cf8489db8 Fix argument types and return type in doc block 2022-07-21 03:02:56 +02:00
Brian Coords 07ae32979f Merge branch 'develop' of https://github.com/understrap/understrap into fix/accessibility 2021-11-22 20:40:00 -08:00
Gabriel Castillo 4bfc982953 Updated cs:check and lint:php
removed comment from extras
2021-10-25 12:30:30 -07:00
Brian Coords 2ba2528da0 updates utility classes for form-groups 2021-09-11 15:17:13 -07:00
Brian Coords 547c1f1ea5 updates woocommerce class arrays 2021-08-26 14:45:41 -07:00
Gabriel Castillo 71515af8c5 fixed compose check:cs errors. 2021-08-25 18:51:44 -07:00
Gabriel Castillo ce5d23a405 Bug Fixed Woocommerce Intuit Payment Gateway 2021-08-25 18:28:12 -07:00
IanDelMar 0ba77d0692 Switch to lowercase s in Understrap 2021-07-28 17:38:12 +02:00
IanDelMar 981a462c39 Remove needless case in switch statement 2021-07-25 02:15:15 +02:00
UnderstrapFramework 0fb17d8acc
Merge pull request #1207 from IanDelMar/issue-1167
Fix 2 outdated WooCommerce templates
2021-01-21 11:09:50 +00:00
IanDelMar de8e65d54e Fix WPCS
Squiz.Commenting.BlockComment.NoEmptyLineBefore
2020-07-11 20:26:04 +02:00
IanDelMar ed2d94d277 Use hook to add quantity input class
Uses the woocommerce_quantity_input_classes hook to add Bootstrap's .form-control class. The hook has been added in WooCommerce 3.6.0.
2020-07-11 17:54:12 +02:00
IanDelMar f2d48241a8 Fix WPCS 2020-06-18 19:22:37 +02:00
IanDelMar ab3fe5b52f Fix WooCommerce checkbox input
Problem: Calling `woocommerce_form_field()` for input type `checkbox` results in a hidden checkbox.
Fix: Adjust the `understrap_wc_form_field_args` filter to make `woocommerce_form_field()` render valid Bootstrap markup.
2020-06-17 14:02:52 +02:00
IanDelMar 88bcdda3c3 Remove Bootstrap 3 classes from form fields
- Removes Bootstrap 3 classes from form fields
- Switches to default from control size by not replacing .input-lg with .form-control-lg
- Fixes single line and multi-line comments according to WPCS (https://make.wordpress.org/core/handbook/best-practices/inline-documentation-standards/php/#5-inline-comments)
2020-06-04 19:11:23 +02:00
IanDelMar 860d8c123a Fix WPCS errors and warnings + escaping
Fixes many WPCS errors and warnings

Also:
* Partly removes excessive php opening/closing tags.
* Uses printf for better readability in loop-templates/content-none.php.
* Adds understrap_kses_title() to escape post titles.
* Adds understrap_escape_the_archive_description() to escape the archive description.
* Fixes missing '__' after esc_html in author.php.
* Updates the phpcs.xml to reflect all the changes.
* Updates composer dependencies and scripts.
2020-04-19 12:08:39 +02:00
Gary Kealy 600eb39883 Use shorter ABSPATH check 2019-06-20 09:57:12 +01:00
IanDelMar 2334f6a9c4
Fix for #976
Declare `wc_reviews_enabled()` and `wc_reviews_enabled()` on frontend only.
2019-05-18 10:36:25 +02:00
Chris Allen 447674355c
Fix theme support for WooCommerce
Looks like the add_theme_support() call should be 'woocommerce' and not 'understrap'.
2019-05-08 20:56:21 +01:00
IanDelMar 8b841fb3e2
WooCommerce backward compatibility. Fix for #961
`wc_review_ratings_enable` was added in WC 3.6.0. Calling it in WC 3.5.x throws a fatal error. See #961
2019-04-29 23:42:07 +02:00
Holger Koenemann cac4962ddb Update Woocommerce version info 2019-04-22 18:38:43 +02:00
IanDelMar 9c8be5118d Fix indentation & space usage 2018-11-19 00:26:03 +01:00
IanDelMar 45c9d1adb7 Prevent direct access 2018-09-10 23:59:04 +02:00
KoenemannH 6bc5c14ee8 Reset enqueue.php 2018-07-06 08:55:44 +02:00
Unknown 3bfdc7996f Remove Add-To-Cart Function
There is no need for this, as the modified template file is provided. Including only the function may be confusing for users.
2018-06-05 19:46:35 -06:00
Unknown 29e92aacde Remove closing div from WooCommerce function
#primary div has been moved to right-sidebar-check.php
2018-04-20 11:29:43 -06:00
Alex Wright 140da01e60 Add pluggable function wrappers to inc/woocommerce.php 2018-03-30 10:47:02 -05:00
Unknown 61dbdfcde3 Replace add-to-cart template with function
- Remove add-to-cart template;
- Add function to replace "button" class with "btn btn-outline-primary;
2018-03-23 13:53:48 -06:00
Holger Könemann a2fa9e56ba Remove woocommerce.php and replace it with hooked version
See
https://github.com/understrap/understrap/issues/606#issuecomment-3753920
87

Thx @ZacharyElkins !
2018-03-22 18:47:51 +01:00
Jason King 1bd7160dd7
Enable woocommerce product gallery slider by default. 2018-01-10 16:11:37 +10:30
Holger Könemann a97c485ea3 Fixing sanitizing, escaping and prefix´s issues 2017-12-06 10:20:33 +01:00
koenemann 44c38d710a Sorry, fixing the right fn name... 2017-12-05 08:53:57 +01:00