Icon Paths are static - not configurable

Created on 20 September 2017, about 7 years ago
Updated 28 March 2024, 9 months ago
  • There are different options available for icon sets for cart icon at - commerce/icons/
  • There is no any configurations available to change them from default white icon set to another
  • Code for icon in use is written at - commerce/modules/cart/src/Plugin/Block/CartBlock.php LINE NO: 153
    '#uri' => drupal_get_path('module', 'commerce') . '/icons/ffffff/cart.png',
  • White color based icons will never displayed properly with the White Background
🐛 Bug report
Status

Closed: works as designed

Component

Cart

Created by

🇮🇳India Ujval Shah

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇸🇰Slovakia yurg

    For those found this in 2024: drupal_get_path() is deprecated.
    Now it is \Drupal::service('extension.list.module')->getPath('commerce')

Production build 0.71.5 2024