cancel
Showing results for 
Search instead for 
Did you mean: 

Use an image URL for custom attribute

Re: Use an image URL for custom attribute

Yes, I assume so.

 

<?php echo   $_product->getAttributeText('color') ?>  will display the attribute correctly for each product so it appears only the new code is not working correctly...

Re: Use an image URL for custom attribute

Hello Hayes7888,

 

If this solution is not good. You try yourself with the second suggestion. It will solve your problem properly.

Problem solved? Click Accept as Solution!

Re: Use an image URL for custom attribute

This solution IS good!

 

I just need to figure out what is causing the problem!

Re: Use an image URL for custom attribute

Hello Hayes7888,,

 

You can image that you have an input text, if you put any value, how you catch any value you input?

In our case, we only catch some specific values. You have ten input values, you make if else condition for these value. Now, you want to input 20 new input values? New values don't match any if else condition.

Problem solved? Click Accept as Solution!