2 replies [Last post]
web2scale's picture
Offline
Joined: 09/19/2009
Juice: 25
Was this information Helpful?

Hi there, I'm finally feeling the ubercart/nodecheckout love, just took some time and patience to get my head in the game.

I'm currently using product attributes to alter the cost, but I'd like to have some 'conditional fields' hide and appear base on those options...

Question, is there any way to use cck fields in a product related node to effect the cost of a product? (instead of attributes)

Or

Is there any way to feed the attribute value to cck conditional fields to hide/show fields?

Drupal 6.14
modules:
admin_menu
cck
conditional_fields
token
ubercart
uc_node_checkout

thanks in advance for reading, let me know if you have any suggestions.
thanks again for a great shopping cart/modules!!!

GreyHawk's picture
Offline
Joined: 03/17/2009
Juice: 174
Have you checked here...?

I am looking to use CCK fields to calculate a price and pass it to the checkout via node product and custom price, and I looked here for info:

http://www.ubercart.org/forum/support/12436/price_pulled_cck_field_depen...

In the last comment in that stream, there's this piece of PHP code to assign a CCK field value to the product sell price:

$product->sell_price = $product->field_distributorprice[0][value];

Haven't tried implementing it yet myself, but that may point you in the right direction.

Hope so -- for both our projects. Smiling

GreyHawk's picture
Offline
Joined: 03/17/2009
Juice: 174
Yes, there's a solution...

Check here: http://www.ubercart.org/forum/support/14360/changing_quantity_field_valu...

There appears to be a solution in the first comment. I took the code out of the meat of the function and popped it into the Custom Price calculation field, substituting my Node Checkout's CCK field name.

Worked great.