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

Update to new module... Essentialy new... Just look! :)

Hey everyone,

To people who took interest in my module before, I'm sorry on the lack of updates. I don't have a personal web-site to link to, and I haven't had much chance to work on it lately. Anyway here's the low-down:

This is a module for a simple e-commerce site. You set up you're store, create items to sell, and collect the cash!
* You can group items by creating a taxonomy linked to the module for the different categories (doesn't work with sub-categories yet).
* The module comes with 3 blocks as well: a shopping cart, a newest item block, and a special navigation block for getting between your item types (remember the taxonomy?).
* The users check out using PayPal.
* There is support for shipping and handling per item, and per group.
* You can link items to one-another to create sub-items. For example, if you have a shirt to sell, you can make a blue shirt and a red-shirt item and link them both to shirt. This way when they go to the product page they can choose between which shirt to buy.
* Each item can have 2 images. One product image, and one thumbnail.
* Intuitive and easy to use. Add content as just another node, so it can be managed in the same way as a story or forum post.

Suggestions on how to create additional modules for Drupal CVS (waiting for Drupal 4.4...)

Hi all,
since Drupal is changing so rapidly, I need to decide which way to choose in order to create additional module for Drupal.
Basically, I need to create different modules that will be extension of the standard STORY module (they will contain more fields than a normal story).
I also want users to be able to link ONE image (with automatic thumbnail creation, possibly) to each node.

Now i'm a bit confused on how to go on, while waiting at the new Drupal 4.4 coming out.

Now I'm working on Drupal CVS.

The possible choices are:

How do you add a Taxonomy Type definition?

(NOTE: I originally posted this in Usage... forum, this is probably (??) a more appropriate place for it.)

I've searched about six or seven modules for clues, and the online doc - but no dice. I'm completely baffled how a Taxonomy Type is defined. I noticed the menu.module does not create a Taxonomy Type - so when you define a Menu structure, you select a taxonomy term to associate with that menu. No taxonomy type of "menu" exists. I know I can use a different type, and it shouldn't matter, but it still bothers me.

A "Visit links in new window(s)" block in weblink.module

I've just hacked together a very small module that extends the weblink module to add a block that allows users to enable/disable the $user->weblink_new variable with a checkbox.

For the purposes of my site I wanted anonymous users to also have the ability to enable/disable this. This was not possible in the weblinks module as it exists, so I saw no other solution than to hack it. (I hate doing this, but what can you do?) This required saving/reading the variable in $_SESSION for anonymous users instead of in the $user object.

Taxomony in a Block

Hello
What are the easiest ways to include selected taxonomies in a block. I mean displaying the latest articles/posts (in a selected taxomony) in a block.

Thank you,

Using hyperlink to set locale cookie.

I have written a function within locale.module to display a block with hyperlinks that I want to use to set cookies similar to the following:

$path = preg_replace("/.+\/\/[^\/]+(.*)/", "\$1/", $base_url);
setcookie("locale", 'en', time() + 3600 * 24 * 365, $path);

Can anyone explain how to set such a cookie - e.g. the format of the link and the required location of the code above?

Pages

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