Hi

I would like to know if there is a way to make Ubercart Attributes and its options to be able to take tokens from drupal entities. I have research and found this link on how to implement token support ( http://clikfocus.com/blog/how-add-token-support-drupal-7) but dont know how to implement it for attribute options or which function to hook into as well as the submit function to make it take effect.

I have created a module project of github on at "https://github.com/docans/poly_attributes/blob/master/poly_attribute/pol..." . Please review and lets see now we can develop this functionality and contribute it to the Drupal community

Thanks

Comments

TR’s picture

Priority: Major » Normal
Status: Active » Closed (won't fix)

It doesn't make any sense to allow tokens in attribute options - attributes and options are data structures and can't be / shouldn't be dynamically defined by a variable like a field value on each use of the product. If anything, those fields should be taking their values from the attributes, not vice versa. As I explained before, Ubercart has a perfectly good way to handle what you've described as your need, and you seem to want to ignore that method for some reason. But in doing so you keep creating additional problems for yourself.

For this and your previous questions, it seems to me you're going about this all wrong. You really need to talk to someone familiar with Drupal and Ubercart to find out how to proceed with your project. Describe WHAT you're trying to accomplish, not HOW you're trying to do it, because your "how" is misguided.

Regardless, this issue queue is not for detailed supported questions. When you post an issue, the instructions tell you that support is handled on ubercart.org, not here. I've told you that as well, in response to another support question you asked here. Please do not keep posting this sort of thing in this issue queue.

docans’s picture

Thanks so much for your imputing. All along i have been trying to accomplish this i have spoken to a few people in irc who said that this was possible and that is what led me to create the module.

If you think otherwise do you know of any one i can talk to for support.

Thanks