comtersoft » Drupal
Call us today at US: 703-496-7289 | India: +91 471 - 301 0690

Ubercart – Mask credit card number on review page

Posted on August 2nd, 2009 in ubercart | No Comments »

 

We use Ubercart for most of our basic and complex e-commerce requirements.

Recently, our client required that the CC number should not be displayed in full on the final review order page.  After a lot of Googling this what we finally did:

  1. In the file:  sites/all/modules/ubercart/payment/uc_credit/uc_credit.module
  2. inside funtion uc_payment_method_credit() find this line of code at around line number 521 case ‘cart-review’
  3. In this case statement you will find a line like this:
    $review[] = array(‘title’ => t(‘Card Number’), ‘data’ => uc_credit_display_number($arg1->payment_details['cc_number']));
  4. uc_credit_display_number() function takes a second paramter called mask (by default it is FALSE). Pass TRUE as this second parameter. So, now your code should look like this:
    $review[] = array(‘title’ => t(‘Card Number’), ‘data’ => uc_credit_display_number($arg1->payment_details['cc_number'], TRUE));

Thats it!
On your review page the credit card number should be masked showing only the last for digits.

Ubercart credit Card Mask On Review Page

Ubercart credit Card Mask On Review Page

Steps to Embed Google Maps in Drupal Site

Posted on July 9th, 2009 in Drupal | 4 Comments »

 

The Embed Google Maps module and Gmap block module provides a convenient way to embed Google Map into your Drupal site.

Gmap block module enables site admins to create blocks that containing a Google Map. Each map is highly configurable which contain multiple locations, created separately and are therefore reusable in multiple blocks. Each location is created by adding an address, and per location admins can specify whether or not a marker should be created, if an info window should be used and if a directions form should be used.

Gmap block module uses the GMap API version 3 which is exponentially faster than it’s predecessor. Version 3 also doesn’t require an API key.
Embed Google Maps allows CCK field for embedding Google Maps into nodes. You can embed any kind of Google Maps including driving directions and personal maps. You can also type a search query into the field and display the search results in the field.
These two are independent modules and can be enabled, configured separately.

DOWNLOAD LINKS
http://drupal.org/project/gmap_blocks
http://drupal.org/project/embed_gmap

REQUIREMENTS
Content Construction Kit (CCK)

INSTALLATION
Install as usual.
See http://drupal.org/node/70151 for further information.

Drupal eCommerce Framewrok Setup and Configuration

Posted on July 9th, 2009 in Drupal | No Comments »

 

DESCRIPTION:

Drupal eCommerce  module aims to provide an eCommerce framework such as shopping cart for your Drupal website.

INSTALLATION :

It is assumed that you have Drupal site in version 6.x is up and running. Please back up your site and database.

Step1: Download and install the token module for drupal:
http://drupal.org/project/token

Step2: Download and install the rules module for drupal:
http://drupal.org/project/rules

Step3: Download and install the views module for drupal:
http://drupal.org/project/views

Step4: Download and place the entire ecommerce module directory into your desired contrib modules location: eg. /sites/all/modules/

Step5: Enable core modules by going to(use administration Menu module  for easy administration of Drupal driven sites):   > Administer > Site Building > Modules.

With E-Commerce 6.x, each modules are grouped according to function. It is very important to install ecommerce modules in a particular order because of dependencies.

Here is the correct order:

(1) enable the Common and anonymous purchases modules
(2) enable the customer.module
(3) enable the receipting and store.modules
(4) enable the Product API and the address.module
(5) enable the checkout.module
(6) enable the buy now, cart and availability.modules

(Optional) The payment gateway module for paypal is included in the default download of Drupal eCommerce.

Once you have enabled the main Drupal eCommerce modules you can now start to  setup your store by visiting ADMINISTER -> ECOMMERCE CONFIGURATION.

Step6: Drupal eCommerce 4 introduces a cleaner administration section. You can find E-Commerce  settings in two blocks – Just click on Administer then click on:

E-Commerce — day to day administration of your store, managing orders etc.
E-Commerce configuration — your store settings.

You can find individual module settings are also listed there with their descriptions.

Step7: Create new products via:   > Create content > Product

Step8: Optionally, enable the cart block via:  > Administer > blocks :: Shopping Cart

REFERENCES  & LINKS
Main Site           : http://www.drupalecommerce.com
Features list       : http://www.drupalecommerce.org/features
User Documentation  : http://www.drupalecommerce.org/documentation
Support             : http://www.drupalecommerce.org/help

Drupal.org Links:

Project Page         : http://drupal.org/project/ecommerce
Handbook             : http://drupal.org/node/50350
Support Queue        : http://drupal.org/project/issues/ecommerce

eCommerce user group : http://groups.drupal.org/ecommerce
Mailing List         : http://lists.heydon.com.au/listinfo.cgi/ecommerce-heydon.com.au
(Mailing list subject to change)

Developer Links:

Developers API       : http://www.drupalecommerce.org/api
Developers Docs      : http://www.drupalecommerce.org/developers

Ubercart for Drupal- Know how!

Posted on July 9th, 2009 in Developers Lounge, Drupal | No Comments »

 

Ubercart is a e-commerce module suite for Drupal which consists of set of modules designed to allow you to run a store on your Drupal site. All front end modules are integrable and  configurable using drupal modules.Development has been driven by two major emphases: flexibility and usability. The various systems driving Ubercart, including the product catalog,shopping cart and checkout, order, shipping, and payment systems have all beendesigned to be extended to meet any need. Furthermore, the administrative interface, particularly relating to processing and fulfilling orders, has been designed for ease of use and efficient display of information.

It is a great solution for stores that selling physical products.

Ubercart is being sponsored and developed by the team at

http://www.ubercart.org

Sign up for site access to join the Ubercart community

and take advantage of our forums and issue tracking.

Features overview:

http://www.ubercart.org/what_is_ubercart

Screenshots:

http://www.ubercart.org/screenshots

User’s and Developer’s Guides:

http://www.ubercart.org/docs

Installation Manual (with module descriptions):

http://www.ubercart.org/docs/user/90/installing_ubercart

Support forums:

http://www.ubercart.org/forum

A quick overview of Drupal in mobile application development

Posted on July 1st, 2009 in Drupal | No Comments »

 

Drupal is also in the mobile Era. It offers many built in functionalities for customer who wants to show site on mobile devices. Usually mobile sites are based upon a domain; the visitor has to visit a different website from his mobile device. Often m.mysite.com instead of (www).mysite.com. There are many attempts in the Drupal support community to provide tools that help in making your site mobile.
I am trying to give an overview with the present state of Drupal modules targeting the mobile world!
I tried to do my best to not forget any module, feel free to add your comments, modules or your own experiences.
There are many modules in Drupal which helps in mobile app development.Like
Mobile , WURFL , WURFL PHP library, Siruna, Mobile Tools …
I categorized it based on functionalities:
Theme switching modules:
mobi_loader, Accessibility, Mobit, Mobile Theme, Mobile Devices
Redirection modules:
Mobile Device Detection module.
Mobile theming:
.mobi theme, iUI, bluemobi (with accessibility), Mobile
SMS modules:
SMS framework, SMPP
Mobile publishing:
Mobile Media Blog and dotgo
Mobile payments:
Mobillcash, Mobile Codes
Please feel free to find more information at

http://www.mobiledrupal.com

The secret of getting ahead is getting started. ComterSoft is the starting point