10 replies [Last post]
scottastic's picture
Offline
Joined: 07/01/2010
Juice: 31
Was this information Helpful?

Hi,

I'm building a store using UC, and there are just a few things that I can't seem to answer myself (despite Google and looking manually through the UC module list etc).

  1. Is it possible to make it so that you cannot Add to Cart (or purchase) more stock than is currently listed in inventory? - It's a liquidation store.
  2. Is there a way to modify the email that is sent to Administration upon receipt of an order? Currently the only way to view what was ordered and by whom is by clicking the link to the order. But it would be a bit much trying to explain to how to login etc to others.
  3. Finally, more of a general question - Drupal security updates seem to be never-ending. Yes a good thing I suppose, only it seems by the time I've updated and continue working, before I know it another update is due. And it's a tiresome process backing up and updating everything, re-downloading all modules etc. Is it REALLY necessary to update so frequently? And if not, is there a way to get rid of the rather prominent 'warnings' on the admin page about updating?

I'd really appreciate any help people can give - I have tried looking myself for ages, and solved many of my issues, but these are outstanding...

Thanks for your time Smiling

WebNewCastle's picture
Offline
Joined: 04/29/2009
Juice: 595
Re: A few questions...

Hi and welcome to Ubercart!

There's a lot to both Drupal and Ubercart - always something to learn. Smiling at least for me ....

1) Yes, with a contributed module. I don't think there's anything you've missed in the settings. Actually, there are a number of contributed module options. The one I used most recently for a client was Ubercart Stock Manager With Attributes - http://drupal.org/project/uc_multi_stock. There are links to some others on that page or you can look through the Contributions section here.

2) Yes. This is one of the things handled through Conditional Actions under Store Administration. You should see "E-mail admin checkout notification" listed there that you can modify. For this one, the actual text of the email needs to be modified elsewhere (but that's not always the case) as it pulls from a template. But its still good to know where this. The templates are under uc_order/templates in the ubercart module folder. You can modify the admin template, but I would suggest leaving that as it is, make a copy of it, edit that, and then save/upload it with a different name. Then, under Conditional Actions you can select your custom admin template to be used instead.

3) I hear you. It can be annoying sometimes, although I am generally grateful so much attention is paid to security. This tends to "go in spurts" in my opinion. Lately, it does seem like there have been quite a few and frequently. Some of the major, heavily used contributed modules have gone through a few releases in a short period of time. It depends on what you're using, but I would say its likely been more frequent than average for a number of weeks now.

You asked a few different questions. So in regards to whether its necessary ... well, most of the time, no, its not technically necessary in the truest sense of "necessary". Generally, ignoring an update isn't going to mean your site just stops. BUT .... the security updates in particular are important. With security and non-security updates, you can see the notes for the release to get an idea the reason for the update, what's included, etc. Some contributed modules will have more notes than others. I do think it's better to not ignore the security updates. And these are less frequent than general updates. If you're using any development / snapshot releases, those will tend to have more updates. Ones that are going through beta releases / releases candidates are probably somewhere in the middle. It depends on the module and the project maintainer.

As far as the warnings, the two simples things you can do that come to mind at the moment is either to hide it with some CSS or uninstall the Updates module. It is completely optional - although a good option, I think. If you do the latter you would need to check manually. CSS would only hide warnings.

- Matt

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

Alaska's picture
Offline
Joined: 10/16/2007
Juice: 1433
One of a Kind

"Is it possible to make it so that you cannot Add to Cart (or purchase) more stock than is currently listed in inventory? - It's a liquidation store."

Try uc product minmax for 6.x. This can be set to allow for the purchase of only one item. Then use a conditional action to unpublish the sold item. i.e. when stock = 0.

The nice part of minmax is that if a person changes the qty in the cart and then they try to order, the cart will display a warning message and deactivate the the cart button. Stating that only one of that product is available. If the qty is changed back to one, then that product can be processed.

scottastic's picture
Offline
Joined: 07/01/2010
Juice: 31
Re: One of a Kind

Wow, thank you so much for your in-depth reply WebNewCastle - I'll give it a shot Monday at work.

Alaska, if I'm not mistaken, would that not result in people not being able to add more than one product at any time? Moreso I would like it to check if there is enough items in stock, and if there is they can order up to that amount. I've already hard coded the php to hide the add to cart button if the stock level is below 1.

kiwi_steve's picture
Offline
Joined: 01/14/2008
Juice: 131
Re: Re: One of a Kind

Just a quicky re: question 3 - look into using Drush if you have it available or have shell access and can install it. One command and you can have it update everything for you.

--- There are no personal problems that can not be overcome with the liberal application of high explosives ---

WebNewCastle's picture
Offline
Joined: 04/29/2009
Juice: 595
Re: Re: One of a Kind

Prod minmax is a great module too. You wouldn't be limiting customers to purchasing a quantity of 1 as you can set the minimum and maximum for a product. However, I think that module pertains more to specific customer purchases rather than the available stock as a whole.

- Matt

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

Alaska's picture
Offline
Joined: 10/16/2007
Juice: 1433
One of a Kind

Let's say you have one car, one truck, one shirt, one light bulb. Min/Max is set per product. Thus a person's shopping cart will allow that cart to contain one car, but not two, one truck, one light bulb, etc.

When these three items are purchased, the inventory (stock) for these purchased items is reduced to zero. In my case, these items are also removed from the site as to not confuse items for sale vs sold items.

scottastic's picture
Offline
Joined: 07/01/2010
Juice: 31
Re: A few questions...

Just so you know, Multi Stock seems to have done the job - a pop-up now displays if you try to add more stock to the cart than is available.

As for the email template, I went in and had a look at the templates folder, and I found the easiest way (despite other tutorials saying otherwise) was to copy and modify the 'customer' template - as that displays the stock ordered, total, and customer details anyway. So that also worked great!

I also looked into Drush, and it seems it's pretty powerful in being able to update modules and such, I'm probably just a little wary in doing anything command-line at the moment whilst I'm not super-familiar with Drupal. Good points about the necessity of updates, I guess more what I don't like is the time involved and the possibility of things going very wrong.

Thanks very much for the warm welcome, I'm definitely having a love affair with Drupal/UC at the moment - and I'll try and return the favour to this community wherever I can. Hopefully no other big issues till it's done! Smiling

WebNewCastle's picture
Offline
Joined: 04/29/2009
Juice: 595
Re: Re: A few questions...

I'm glad it all worked out! And I can understand. If I wasn't still in love with Drupal and Ubercart - most days and for the most part Smiling - I probably wouldn't be doing what I do. Especially when the sun is out, its warm, the birds are chirping ......

- Matt

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

scottastic's picture
Offline
Joined: 07/01/2010
Juice: 31
Re: A few questions...

Thanks again for your help guys, I'm wondering if you'd be able to help once more... Smiling  A few things I'm having trouble with:

  1. My store is invite-only, meaning the general public cannot see it unless they receive a unique code and are invited to register. So I had to some funky stuff on the landing page. It seems now that when you login, it initially says lands on the home page with 'Access Denied' but once you try again it works. Always the second time. I'll provide details for you to login below to see what I mean.
  2. I've setup a Conditional Action when a shipment is created that updates the order status and emails the customer. For the email, I looked through all of the Order/Global Replacement Values but couldn't find any relating to the Shipment (I.e. Inputting date sent, estimated arrival, tracking number etc). Would anyone know how?
  3. The store generally seems slow. I'm with HostGator and they've assured me they've done all they can to speed it up, but admin pages timeout often when editing things, and some users complained of the inability to register because of timeouts. Is Drupal just that script intensive?

Store: https://store.dermasolutions.com.auUser: TestAccountPw: pass1234Again thanks sooo much for any help, I'm going to repay this community with my soon-to-be l33t skillz soon Smiling

WebNewCastle's picture
Offline
Joined: 04/29/2009
Juice: 595
Re: Re: A few questions...

Hi, sorry for the delay replying. I haven't been able to take a look because of other commitments, but I can try to do so soon if no one else is able to stop by and lend a hand.

It seems I often find myself asked to do projects that don't involve physical products, so I haven't worked with shipping very much for a while. I don't remember too specifically about the Conditional Actions integration, but the fields you mentioned don't "ring a bell". Perhaps there are differences related to shipping provider? I'm not sure. As far as I know, the various replacement values appearing in Conditional Actions are specifically made available to Conditional Actions. You can make others available with a custom module, but I did think it was a bit tricky there first time doing this.

In regards to the hosting, unless there is really, really, really something going astray with your Drupal installation, I would really doubt, personally, that it's the site. When clients ask me about shared hosting, there are certain ones I don't recommend and certain things I suggest might be important to keep in mind. While this may or may not be specifically related, there are quite a few shared web hosts that hard limit PHP memory. I tend to recommend against this. Many clients and installations wouldn't find it an issue, but if it is, it is, and hard limits can be very, well, limiting. Host Gator is one of many shared web hosting providers with a hard limit. Theirs is 64M, I believe - at least it's not 32M like some, but 64M can crop up as a problem with image handling, installing too many modules at once, etc. Some providers, like GoDaddy, are generally slower. But in general with shared hosting, experiences can differ from machine to machine as much as provider to provider.

You might see if someone who is more of an expert on connectivity, systems, and networking can help look through some of the settings in your PHP.ini file (if applicable) and other files/settings in case there is an easy fix in there.

- Matt

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