codekarate

Subscribe to codekarate feed
Updated: 30 min 39 sec ago

Overriding Ubercart Checkout page

Tue, 01/03/2012 - 15:21

Ever needed to override the Ubercart checkout page? Here is a quick tutorial on how to do it.

The first option is to use a form_alter() function from within a module, however in this tutorial we are going to discuss two theming options that can be used together if necessary.

The first is to change the actual contents of the checkout page. We need to override the THEME_uc_cart_checkout_form function. This can be pulled from the uc_cart.pages.inc and modified as needed from within the template.php function of your theme (replace THEME with the name of your theme).

 

Post Topics:  Drupal 6 Ubercart Drupal Planet

read more

Validating a URL in PHP

Thu, 12/29/2011 - 23:01

I recently ran into a problem of validating a URL in PHP. The simplest and most consistent way to validate a URL in PHP is to use filter_var(). Here is an example:

Post Topics:  PHP

read more