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

longwave’s picture

Status: Active » Closed (duplicate)

Duplicate 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.