SourceSquare Official Blog:

All About Web Design and Search Marketing

Drupal Commerce: Adjusting Stock from Code

Recently I have been working on a project using Drupal Commerce to build a Jewelry online shop for client. At one point we needed to find a way to adjust the stock of a product that is referenced by another product through the use of Entity Reference field, and unforutnately the current implementation of DC does not provided the needed feature in Rules, hence we had to do it through Code.

After some testing, turned out the stock data is not simply stored in just 1 table (or perhaps there was something that we did wrong? :P), though thanks to the awesome work from Commerce Guys they have already implemented some very useful functions that will ease the pain digging through the data structure. The following steps already assume that you have commerce_stock module installed already.

Using Views Programmatically - HKDUG Meetup with Jason Yee (Jyee)

We had our monthly Hong Kong Drupal User Group meetup last week (thanks to CNNGo.com for the always wonderful venue), and this time it is a little bit different. Jason (jyee at Drupal.org) from Aten Design Group, one of the organizers of the upcoming Denver Drupalcon 2012 and a well known contrib module developer has joined us for the evening, and shared some of his thought on "Using Views Programmatically".

For those of you who missed the presentation, here is a video of the same presentation Jason did back in Drupalcon Colorado 2011:

Steve Jobs 1955-2011


Steve Jobs   1955-2011

Steve Jobs    1955-2011


Your inspirations will live in your Designs, in Apple, and in All of Us who admired you, forever.

May you rest in peace.


Print Taxonomy Terms in Blocks and page.tpl.php in Drupal 7

I recently have started working on a Drupal 7 project creating a comparatively simple brochure website. To my surprises a lot of familiar functions, syntax and platform for simple things have changed dramatically! Certainly many functions and handlers are become easier and simpler to do, however there are a lot of simple procedures gets to be more complicated.

Getting the Taxonomy term in page.tpl.php is one of them.

Drupal 6 - Taxonomy Term using $term object

Back in Drupal 6, Taxonomy terms are embedded in $node object. To print the taxnomy term, all you need to do is get it directly from the $node object:

<?php
foreach ( (array)$node->taxonomy as $term ) {
// $term->name has the taxonomy term name
// $term->tid has the taxonomy term id
}
?>

Website and Blog Launch Glossary

Website and Blog Launch GlossaryWhen I first started my career in the web industry, the very thing that I spent most of my time on was to look up the meaning of so many different terms and synonyms (which took as much as 50% of my time a day!). This glossary may help to save so many of your late night sleep searching in wikipedia!

A

Above the Fold – Content appearing on a website when it first loads, without requiring the user to scroll vertically. This is frequently considered the most valuable screen real estate.

Adsense – A popular ad network, run by Google, that allows you to publish contextual ads to make money from your website or blog.

Affiliate – Someone who promotes another person’s (or company’s) products on their website or blog and collects a portion of the sale price as compensation for sales referrals.

Why Has Drupal CMS Become Our Choice of Development Platform?

Image of Various CMS SystemsBefore we jump right into Drupal CMS, perhaps we should start why the market is obsessed with designing websites with CMS.

What is CMS? Why CMS?

"CMS" (Content Management System) is THE hip, trendy term on the Internet in 2010s. As elegantly described in Wikipedia, a Web CMS is basically a system that "simplifies the publication of web content to web sites and mobile devices -- in particular, allowing content creators to submit content without requiring technical knowledge of HTML or the uploading of files."

Generally speaking, the rise of CMS is due to the huge success of Blog platforms like blogger.com. Ever since the launch of blogger.com in 1999, next thing I know everyone has started publishing on the Internet, and the volume of new content published online exploded in folds ever since.

Youtube Is Rolling Out New Expand Feature

Youtube New Expand FeatureJust while I was stumbling upon Youtube looking for a few relaxing video clips to spice up my breakfast, I was surprised and super excited that Youtube has finally started rolling out the most wanted feature (of mine) -- viewers can now "expand" the video to window size!

Ok, it might be quite confusing to those who don't usually use the expand feature. "Expand" is a button that locates on the lower right corner of every youtube video (this feature is only available if you are watching the clip on Youtube.com). Once you click on it, it will expand the video clip to the size of your browser window, and change the resolution automatically from 360p to 480p. 

Drupal vs Wordpress vs Joomla - How Do We Choose Between The Three

Drupal vs Wordpress vs Joomla

It has been an endless debate in between the 3 groups of CMS fans over which one is better than the other. Of course we as a web design agency we tend to take sides too since we use these tools day in and day out, however, in a more practical, project-oriented point of view.

By Experience

We have worked with Drupal, Wordpress and Joomla before. For a more completely, user-friendly CMS with just enough features, Wordpress is the choice given that their UI is best and most intuitive among all 3. This is a perfect platform to develop websites with simple requirements, e.g. Blog sites.

Happy Chinese New Year of Rabbit!

Dear Customers and Friends,

Thank you very much for your enormous support in the year of tiger! We could not have made it this far without you. We are all eagerly ready to return the favor to you all in the year of Rabbit, so please feel free to let us know when the time comes!

Happy Chinese New Year! Hope to see you soon!

Best,

Kelvin Lee
Director
SourceSquare | Search Marketing Strategies

Tags:

Why You Should Care About Link Requests

Do you have a website, or are you managing one? Have you ever received email asking if you can link to some other websites and don’t know what to do? We will tell you why you should care about these link requests, and what to do to get the best out of them!

What Are Link Requests And What They Mean To Your Site

Why You Should Care About Link RequestsThere are approximately 200+ factors to determine the ranking (here "ranking" is referring to the position of a page in SERP, not PageRank) of an individual webpage by modern search engines, particularly Google. Each of these factors is weighted differently, and it may change in time to prevent people from gaming the search engines.

Syndicate content