Hi,

I want to add an ajax filefield widget to my Product Add to cart form. I want exactly the same field as when we add a filefield cck to a node type. I have tried a million ways but there is still error.. Please help me out with this. Thanks in advance.

Muhammad.

Comments

quicksketch’s picture

FileField is so deeply tied into CCK it is not possible to use it outside of the node form. You'll be happy to know this is fixed in the D7 version that is part of Drupal core, but there's not any way to do what you're trying to do in D6.

muhammad.tanweer’s picture

Thanks for your response quicksketck.

Can you tell me of some other way in which I can attach an ajax file upload field to my add to cart form please??

Regards,
Muhammad.

quicksketch’s picture

I don't know any way other than making an entirely new form element and writing it all manually. As the guy that wrote this functionality in FileField and again in D7, I can say that this is rather difficult thing to do.

Perhaps what you should do is use UC Node Checkout module and have the user "purchase" a node, which just contains a FileField directly.

quicksketch’s picture

Status: Active » Closed (fixed)