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.
I want to display a custom block based on the attributes options of the product in the cart.
I tried looking for several ways of doing this and with the help on IRC i came up with this solution but it is not complete yet.
I created a custom module which will output a block. The block is only supposed to be displayed on the cart page if the attribute of the product in the cart matches the one in the block.
The project can be found at https://github.com/docans/line_cords_box and i will be glad if anyone can look at the code and help me out
Thanks
Comments
Comment #1
longwaveDuplicate of #2202341: Related products based on attribute options and How to reference attribute options, please do not open duplicate issues asking for the same thing.