I have been trying to remove or unset super attribute (configurable product) on cart page which have null value.

I have attached screen shot

enter image description here

I have two option color and premium colors if i get color option value null than it will remove from cart programatically and also remove from sales order.

Can anyone please help me.

1 Answer 1


To change the display layout of listed product you have to create the following folder structure.

  |- design
     |- frontend
          |- custom-theme-name

copy the files from app/design/frontend/rwd(default package 1.9) in your custom theme.

Then edit the file app/design/frontend/custom-package-name/custom-theme-name/template/catalog/product/list.phtml.

Edit the link where color label display. And add the following condition

if($_product->getColor()) :

your html code to display the color

else :

any other logic if you want.


Help of this condition we check weather color value is associated to product or not if assign then display that color name for the product otherwise keep just display label as "Color".

  • Thanks for response. it will hide from cart but i want to hide from overall sales quote. because when i order the product than in back end color valued will null.any idea ?
    – dp4solve
    Commented Jul 20, 2015 at 10:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.