This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Using Forms API for E-Commerce

I was told that it would be easier to modify the E-Commerce module in 4.7 where Form API is used. However, it seems to me that not everything can be modified by Forms (yet). Here is an example:

Assume we want the price of the product to not be shown to the user. The price appear by the function theme_node_product in product.module as the following:

Need a new module: Showtimes?

Ok kids,

Lets see if anyone has attemped to make this module yet, before I try to string something together.

What I need is a solution for a small, non-profit cinema to automatically list all the showtimes of all their films once per week. It would have to do these things:

1. List a set of reoccuring showtimes for each film across a couple of days. For example, Brokeback Mountain plays at 5, 8, 11PM on Mon - Thurs. That information should only need to be listed once. The Events.module can handle a little bit of this, but not all.

Forms API - OK, so how to I get elements into a table?

So I'm working away on this fine and dandy new 4.7 forms structure.
Looks a bit verbose, but I can see how it all pays off.

BUT

I need a table. I want to use the nice Drupal table builder, and I'd like to use the nice form builder.
But damned if I can see that happening.

Yes, my data is tabular.

Fewer minutes in the Events minute dropdown

Hi,

There is probably a simple answer to this question, but I'm not yet familiar enough with the inner workings of Drupal, so I hope someone can help.

With the Events module, the minutes drop-down menu includes values 0-59. In reality, I only need 00, 15, 30, 45 as selections for minutes.

Is there a way to limit the display of the drop-down to have only those values?

Thanks

Upload multiple files

Is there a module that allows Drupal users to upload multiple files at one time? I see that some modules allow upload of multiple image files, but I would like to upload multiple .mp3, .mpg, .doc, .pdf and other files at the same time.

Attach multiple images to custom node type

I'm trying to create a node type to which the user can attach multiple images. When the user is first presented with the Submit form, I want them to see a fixed number of image input fields. See the diagram below which has three such fields. (The number of images per node would be a set on the settings page.)

When the user clicks the 'Browse...' button, the standard file selection dialog box opens. When they select a file and the dialog box closes, I would like the image to immediately be uploaded. In the diagram, 'tn' means thumbnail and this would initially be an empty graphic. After the file uploades, I'd like that to be replaced with a thumbnail derived from their uploaded image.

And, I want various information to be associated with each image. In the example, this would be the make and model of cars. I'd store this information in its own table: the image location, the description, the make, the model, etc.

I've tried to put something like this together by modifying the upload module in 4.6, but it has a few undesirable features. For one, the user has to press the 'Attach' button and that refreshes the page. Even in 4.7 with jsupload.js, they still need to press that button. And, the upload module doesn't allow the same exact image to be associated with a node twice. And, you need to add a new image one at a time. In 4.7, the upload module is also even more difficult to understand than in 4.6.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions