Free Videos about Mastering Views

Building Drupal Modules: 05 Watching your logs

Play Video
Movie link (right-click to download)
Problem with this video? Contact me

One of the key elements to knowing what is going on while you develop your module is watching what happens. Using a debugger isn't the only way to see exactly what is going on. You also need to know how to watch the logs of the web server, php and the database. Just remember tail -f is your friend.

Hi I haven been watching you videos to learn how to create modules and you said the best thing to do is take module that are already made and change them. I'm trying to create a back order system from the uc_inventory_api module. I have looked at the module and notice that if i can have the module run the same way it runs but with some minor changes you could have a greater backorder module. the first change would be to change the sold out button to a back order button and make the button clickable (which I have figured out already). the rest is going to be the same in 3 areas. Right now if the stock of an items is less than 0 and out of stock button would replace the add to cart button and become unclickable (which i fixed) if though i changed that and made it click able if you click back order the module will them say that "Sorry, there is not enough in stock to add this to your cart" and stop, i would like to change that message to "Sorry, there is not enough in stock your item will be place on backorder and add to your cart" then add the item to the cart like it would if the stock was over 0 and proceed to the next step. this action will happen 1 more time in the checkout section of the shopping and would also have to be changed in the same manner. The third change is not that important only for people that have categories that allow you to add quantity in the catalog stage. do you think you can help me.