Announcement

Collapse
No announcement yet.

Illegal component/attribute combination? WTF!!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Illegal component/attribute combination? WTF!!

    Hi again,

    I have a serious problem with products that have attributes. A lot of the products have one component and, within that, one or two attributes. With only one attribute, things go ok, but as soon as the choice is made with a second attribute (eg size 36, color black) I get this general script error after pressing the add-to-cart button. I did a website purge and refresh with all options checked, and it does not change a thing. I've modified only one perl file (mailform.pl) and that was just for adding an action and a function to send an email to a friend. The script that returns the error is ca000001.pl (the shopping cart perl) and I haven't even looked at it!

    So, what's the story?

    Lazeye

    #2
    solved!!

    the problem was due to my using both the componentattributelist and the permutationlist. The latter is used to store in an array the available permutations along with their prices in the purpose of updating the price display according to the user's choice. The permutationlist is a custom modified sublayout that uses php to grab permutations. The problem was that I still displayed the list (the <select>...</select>) but hid it in an invisible div. All I had to do was to change this in oder not to display anything but just gathering the relevant information that was needed in the first place.

    Comment

    Working...
    X