1 reply [Last post]
svihel's picture
Offline
Joined: 05/29/2008
Juice: 140
Was this information Helpful?

Hello,
I would like to create a site which will sell video files and I would like to leave it to customer to select for how many downloads (or how long time) would be this files awailable for them to download. Bassically leave the Product settings / Product features / File downloads setting (admin/store/settings/products/edit/features) for customer to select when making an order. Of course based on this should change the product price.
I thought the price could be changed based on product attributes and from that attributes the Ubercart should (somehow) check for how long the product will remaind awailable.

Any thoughts of how to do this?

vincew's picture
Offline
Joined: 01/21/2009
Juice: 153
Well, you could create a

Well,

you could create a node-type with the selection options on it. You can use CCK-fields for this. With UC Node Checkout you can put it in the cart.

Use hook_nodeapi for processing the values in the CCK-fields. Use hook_cart_item for setting the price according to the CCK-values.

After processing the order you'll have to change the access settings according to the payed options. You CA for this in combination with a few lines of code.

Perhaps you should also have a look here: http://www.ubercart.org/forum/support/9323/calculate_price_node_checkout

Best
VinceW

-=[ Your Information Matters ]=-

(You may use my personal contact form to discuss drupal/ubercart work.)