4 replies [Last post]
ms1
ms1's picture
Offline
Joined: 06/19/2010
Juice: 7

Hi

I am new to Ubercart and really needed help. I have created some downloadable files, which a user gets after payment.

The issue is that when a user adds a product to his cart, the following fields are shown

1. Remove
2. Products
3. Qty
4. Total

Since its just a file download, I do not want 'Qty' field to be there.

Further more the quantity field is editable, that can cause real problems because I only give file download facility once.

Please help me streamline this quantity field.

Regards

WebNewCastle's picture
Offline
Joined: 04/29/2009
Juice: 595
Hi, While there isn't a

Hi,

While there isn't a specific setting to let you remove this "with a click", there are a few things you can do.

1) Unless you really need / want to keep the intermediate step of having your customer go to the cart page and then on to checkout, you can just send them directly to the checkout page. Under Store Administration >> Configuration >> Cart settings it is the "Add to cart redirect" field where you could just put "cart/checkout". You could always put in your own "Continue Shopping" button above the checkout page by using the Checkout settings >. Checkout messages, "Checkout instructions" field.

2) Technically, you could always just hide the column with CSS.

3) A small custom module can be written to simply re-write this to not include the quantity fields.

#3 is probably more ideal than the others, but it would take a bit of coding. It's quite likely there are many others who have wanted this too, so it's possible someone may have a snippet/module for this they can share. If not, I can probably add this as a feature for the ECO module that was released very recently - but I can't promise/predict a time frame.

- Matt

Matthew Winters / WebNewCastle.com - Drupal & Ubercart development, training, and consulting. Drupal profile
Online community, product development, & policy management.

ms1
ms1's picture
Offline
Joined: 06/19/2010
Juice: 7
Thank You

Hi Matt,

That was a very generous and elaborate answer. Thank you.

I took up option 1, because doing coding or technical stuff is difficult for me. I think option 1 was decent, only that at some points there are links like "abc item was added to your cart", where cart is a hyperlink.

Matt there was one more query I had, that is when I allow a user to download a file, and he adds it to cart --> does payment via paypal. Then conditional action is that a download link is sent to the user on his/her e-mail, using which he downloads the file.

But was it possible that once payment is finalized, then user is redirected from paypal to a page where he gets access to download the file. Maybe he is redirected to "/user/21/purchased-files", where his downloaded files exist. And no download via mail link occurs.

(Please tell me if you feel that I should put this as a new thread)

With Regards

WebNewCastle's picture
Offline
Joined: 04/29/2009
Juice: 595
Hi, It's been quite a while

Hi,

It's been quite a while since I've done any configuration with file downloads, so I don't quite remember what all of the default settings and behaviors are. But if nothing is there by default, yes, you could do this a number of ways.

The default URL to show all downloadable files available for a specific user would be in the format you listed. So you could probably set up something through Conditional Actions to take the user there or you could embed some code in the Checkout complete message area. I suppose this would take a little bit of code to do here if your customers are not necessarily logged in at this state - depends on if you are allowing anonymous checkout or not. If this is the case and you want to avoid putting together a chunk of code, there are still a few things you can do.

I think by default the checkout completion message presents a log in link. You could use something like the Login Destination module to point the user to the file download area (redirect to) once they've logged in. The drawback here is that every time the user logs in they would be directed here - which may or may not be an issue depending on what other things you've set up for logged in users. If the primary purpose for logging in is to get the files, this probably wouldn't really be an issue.

If you wanted to do something else via the checkout completion messaging settings or even better is probably with Conditional Actions, the code to log the customer in and redirect could be patterned after existing Drupal core or Ubercart code. And if you want to disable sending the download link via email, you only need to disable the conditional action for this under Store Administration >> Conditional Actions. You should have a disable link next to the one in question - this will stop the email from being sent. Or you could even just edit this one, I think, change the action from email to something else.

- Matt

Matthew Winters / WebNewCastle.com - Drupal & Ubercart development, training, and consulting. Drupal profile
Online community, product development, & policy management.

pdesai's picture
Offline
Joined: 01/27/2010
Juice: 12
Restrict Quantity Module

You may want to check out UC Restrict Qty