4 replies [Last post]
swilsondesign's picture
Offline
Joined: 03/01/2010
Juice: 35
Was this information Helpful?

Hi all,

Firstly, congrats on an excellent product. Very impressed with Ubercart Smiling

Secondly, I have a problem with my site (UC 6.x-2.2) which I have found a solution for but for UC v1. I'm relatively new to UC and was wondering if someone could shed some light on the situation.

Currently, I sell downloadable MP3 files and shippable CDs. When purchasing both attribute types at the same time, downloadable files are only available when an order is marked as complete. I would prefer downloads to be available instantaneously.

http://www.ubercart.org/forum/bug_reports/8642/product_file_downloads_no... provided a solution using the workflow module but this is no longer available in UC v2.

I've pinpointed it down to conditional actions but I'm struggling with the conversion. There doesn't appear to be any boolean operators so how would I make "Check order status - NOT payment received" and "Check order status - NOT completed"?

I'm a bit stumped! Any help would be greatly appreciated.

Thanks,

Steve

Uberchic's picture
Offline
Administrator
Joined: 08/29/2008
Juice: 754
Re: Downloadable vs shippable conditional action

Not a solution, just a couple of questions.

It seems like what you're suggesting would allow customers access to the file they intend to purchase before you actually receive any money for it. Is that an accurate understanding of your use case? If so, why do you want them to be able to download the file and then not complete payment? What incentive would they have to pay you for the download at all then?

swilsondesign's picture
Offline
Joined: 03/01/2010
Juice: 35
Hi Uberchic, At present I am

Hi Uberchic,

At present I am using the 'Test Gateway' module to simulate payment transactions.

My understanding is that when a transaction is successful the balance is reset to £0.00 and the order is status is marked 'complete'. Is that correct?

I'm assuming the above is true because a successful payment transaction on downloadable content marks order status 'complete' and grants a user access to their purchased files via the 'My account' link.

This is fine. However, when you purchase both downloadable and shippable content, the system will mark the order 'payment received'. I understand why it does that - until the order has been shipped, it isn't theoretically complete - the problem is, until an order is shipped (a process which may take several hours or even days to do), a user does not have access to their purchased files.

I would consider the above scenario a problem because downloadable content should be available (almost) instantaneously (albeit for the time taken to process payment and feedback a successful transaction).

Hope this explains my situation a little further.

Steve

swilsondesign's picture
Offline
Joined: 03/01/2010
Juice: 35
Re: Downloadable vs shippable conditional action

Okay, I figured this out... what a difference a day makes and all that!

So it was staring me right before my eyes but for those who would like to know how to do the above here's a how to...

  1. Create a conditional action with trigger 'A payment gets entered for an order'
  2. Add 'Condition: Check the order balance' with value 'Balance is less than or equal to £0.00.'
  3. Add 'Condition: Check the order status' with value 'Order status: Payment received' and check 'Negate this condition.' checkbox
  4. Create a new Conditions group (click the 'Add condition group' submit button)
  5. Add 'Condition: Check if an order can be shipped' and check 'Negate this condition.' checkbox
  6. Add 'Condition: Check the order status' with value 'Order status: Completed' and check 'Negate this condition.' checkbox
  7. Make the 'Condition groups' operator OR (this is the overall groups operator NOT the individual group operator (it's the one at the top of the page!))
  8. Add 'Action: Update the order status' with value 'Order status: Payment received'
  9. Add 'Action: Update the order status' with value 'Order status: Completed'
  10. Save changes
  11. Disable the default 'Update order status on full payment' predicate

That's it! If you have any questions just post a reply.

Steve

j0rd's picture
Offline
Getting busy with the Ubercode.
Joined: 07/16/2008
Juice: 453
Re: SOLVED: Downloadable vs shippable conditional action

I've explained some issues related to Ubercart, Anonymous Checkout & UC File purchases here:

http://drupal.org/node/1227076

--
Ubercart Theme & Drupal Commerce Development