The order status dropdown select is missing on the file download settings page, when compared to earlier versions. Product Setting>Product Features>File Download Settings. This setting was available in earlier versions: http://www.ubercart.org/docs/user/3345/selling_files. Without this option available, it is impossible to set a file download purchase to "completed", and thus making files available immediately after purchase. If I'm wrong, please let me know.

CommentFileSizeAuthor
#6 features.ca_.patch2.42 KBcha0s

Comments

clevername’s picture

EDIT: seems you can accomplish this through conditional actions found at admin/settings/ca. Took me a lot of anguish to find this workaround solution. Where is this feature in the ubercart settings?

cha0s’s picture

Component: Code » Documentation
Assigned: Unassigned » cha0s
Priority: Normal » Minor
Status: Active » Closed (works as designed)

Yeah, that's it - it's using Conditional Actions, so the setting is there. That should probably be documented in the appropriate place. Thanks for the report. =)

cha0s’s picture

Status: Closed (works as designed) » Needs review

Documentation added at http://www.ubercart.org/docs/user/8458/product_settings, but I dunno if that's the best place for it.

Island Usurper’s picture

We've added links from the quotes and taxes settings to their CA predicates, so maybe files and roles features should too. That plus the note on the handbook page should be good enough.

Island Usurper’s picture

Component: Documentation » Code
Status: Needs review » Needs work

Recategorizing.

cha0s’s picture

StatusFileSize
new2.42 KB

'ere we go...

cha0s’s picture

Status: Needs work » Needs review
Island Usurper’s picture

Status: Needs review » Fixed

Committed.

I feel like there's not enough indication about the kind of feature that's being added on those pages. I guess that should be a separate issue, though.

yesct’s picture

I'm confused, it says this is committed, but I still am not having my orders status set to completed, and the file is not showing in the user profile files tab for the users to download after purchasing a product that has the file downloads feature enabled...

Do I still need to set up a conditional action, or does the newest version of ubercart come with it?

Island Usurper’s picture

Whenever I say "committed", I mean that it's committed to the Bazaar repository. Instructions for accessing it are at http://www.ubercart.org/bazaar. The CVS repository here on drupal.org gets updated sporadically, whenever someone reminds me to. (So I'll update the dev version today.)

yesct’s picture

Yep. I got the one (yesturday I think) from bazaar. I'll try and get some screen shots up. :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

mennonot’s picture

Component: Code » Documentation
Status: Closed (fixed) » Active

Even with all this documentation, I still can't figure out where in conditional actions to change the order state that grants users access to files. The only two predicates I see are:

Renew purchased files
Notify customer when a file is granted

And in actions, there's nothing that looks like "grant user access to files" either. What am I missing?

mennonot’s picture

Version: 6.x-2.0-beta3 » 6.x-2.x-dev

Today I spent some time poking around in the code of the file to figure out if I'm missing something. I can only find an action related to renewing and sending out an email. Neither of which looks like they relate to the actual granting of access. From \uc_file\uc_file.ca.inc

function uc_file_ca_action() {

  $actions['uc_file_order_renew'] = array(
    '#title' => t('Renew the files on an order.'),
    '#category' => t('renewal'),
    '#callback' => 'uc_file_action_order_renew',
    '#arguments' => array(
      'order' => array(
        '#entity' => 'uc_order',
        '#title' => t('Order'),
      ),
    ),
  );

  // Send an email to an order with a file expiration
  $actions['uc_file_order_email'] = array(
    '#title' => t('Send an order email regarding files.'),
    '#category' => t('Notification'),
    '#callback' => 'uc_file_action_order_email',
    '#arguments' => array(
      'order' => array(
        '#entity' => 'uc_order',
        '#title' => t('Order'),
      ),
      'expiration' => array(
        '#entity' => 'uc_file_expiration',
        '#title' => t('File expiration'),
      ),
    ),
  );

  return $actions;
}

Where is the conditional action, let alone the variable that determines which state triggers the file granting?

jimul’s picture

I have same problem. If know some one please help me.

mennonot’s picture

Jimul,

After many months, here are the instructions that, this week, finally helped me figure out how to set up the conditional actions to download files in Ubercart and email customers:

http://www.ubercart.org/forum/support/16354/anyone_having_working_file_d...

Now its sending duplicate file download emails to customers, but I hope to get that one worked out soon...

jimul’s picture

Mennonot ,

thanks a lot for reply

I have read sites link given. Now file download link appear in user>account>files after complete the order.
but the email with link is not been send out and display error ''unable to send email contact site admin....".
actually email of order is send.then why not email of link of file download is send.I have also tried creating new CA.

jlporter’s picture

I am a teapot. Has this really never been corrected? We are experiencing the same issue, fresh current UC and we have to set the order to complete for the file download to become available. This isn't very flexible and we don't want the order status to be complete until the physical goods are fulfilled.

longwave’s picture

Component: Documentation » File downloads
Category: bug » support
Status: Active » Fixed

In 6.x you can configure the order status that grants files at /admin/store/ca/uc_file_renewal/edit/conditions

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.