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

Need Help! How do you make a node/content-type a product in the e-commerce module?

I am trying to allow users to "buy" acidfree albums of photos for download via Pando. I've cloned the e-commerce file.module to create pandopkg.module and modified it so that it doesn't demand or verify a filepath -- instead, I plan to give it a URL at checkout time.

What I've done so far is to implement the following function in acidfree.module (borrowed from ec.media)

function acidfree_ec_pandopkg_nodetypes() {
  return array('album' => array('realm' => 'pandoPkg.module'));
}

I can then edit a previously created acidfree album to make it an ecommmerce pandopkg product. This seems to create a product out of the acidfree album, and in fact, I can manually construct a link to add this album to the shopping cart. However, I'm unable to get the "add to cart" link to show up when displaying the album. If I edit acidfree image to be a pandopkg product, then an "add to cart" link is properly displayed alongside the image. What's the hook that adds this link?

How do modify acidfree.module so that 1) I can display the "add to cart" link" and 2) change the way the album is viewed when I click on it from the shopping cart or products page?

Alternatively, the e-commerce file module has the following hooks:

/**
* Node-managed file functions
*

MOUSE / ROLL OVER

I created an html page outside of Drupal that contains a mouse over image. I would like that interactivity to become part of my body in a page that I created. I tried to copy and paste the code from the html page but it is not working. I have also download and activated the javascript modules.
I am need to Drupal and the web in general so any help would be greatly appreciated. Thanks!

Adding a block to a sidebar from a node template or template.php

Is it possible to create a block (or generate output) from within a node.tpl.php file or template.php that can be added, inserted or appended to a sidebar block region?

I know you can do it the other way around (insert a block into the node.tpl.php) using module_invoke.

I'd like to do just the opposite though. Dynamically create the block in the node.tpl.php or template.php based upon node fields and then position it within a block region.

hope that makes sense.
thanks

Want views_rss feed image in right column

I want to see how the feed.png would look in a right-column block as opposed to at bottom of view. Does anyone know if there is a way to accomplish this alteration other than modifying the views_rss module? I guess I am most interested in solutions that would continue to use the views_rss module for feed publication...but that place the image in the right column instead of bottom center column.

SMSgateway module

Hey, I installed SMSgateway module and I think i have configured it properly but I am not sure which modules i need for text message form for my users to send as SMS! Can you help me which modules are best for sending SMS ad There was only a little info how to use it? I hope it is clear.
yuridp3

Making the filestore2 module work in 5.x

I was able to use the diff file provided on the drupal site to upgrade the filestore2 to 4.7. But when upgrading to the 5.1 I am unable to get the form to come up in the "create content." I have looked through three different modules, the biblio, the image and the event modules to try and find a common why that things are done.
The problem is each module though loading similar stuff into the create content have completely different ways of doing it. From what I know my code is all correct but I think I am missing some spot that needs to call.

Pages

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