Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The tag condition added in #2883654: Checkout button missing from custom cart form view does not respect the fact that view tag is actually multivalue property.
Comment | File | Size | Author |
---|---|---|---|
#2 | commerce-checkout-tag-condition-3271930-2.patch | 1.1 KB | Chi |
|
Comments
Comment #2
Chi CreditAttribution: Chi commentedComment #5
jsacksick CreditAttribution: jsacksick at Centarro commentedThanks for the fix.
The commerce_cart module also has similar code, but does the following:
if (strpos($view->storage->get('tag'), 'commerce_cart_form') !== FALSE) {
Which also works, but kept your approach, just removed the "\" prefix to the in_array call, and added strict type checking... Thanks!