Wednesday, May 21, 2008

Oscommerce buttons made easy

If you want to change the buttons this website is a fantastic way to do it.

http://www.oscbuttons.com

Allows you to create your own buttons with a bunch of options on how to make them look good for your site.

Changing breadcrumb separator

I found it diificult finding how to change the separator but it is really simple

In catalog/includes/header.php:----------------------------------
trail(' ' . tep_image(DIR_WS_IMAGES . 'arrow.gif') . ' '); ?>

You just change it in the header file

Change Final Breadcrumb-Trail Item from Model#

Here is a helpful hint, if you don't like how Oscommerce only puts the model number at the end of the breadcrumb trail change this in ApplicationTop.php

FIND:-----------------------------------------------------

// add the products model to the breadcrumb trail if (isset($HTTP_GET_VARS['products_id'])) { $model_query = tep_db_query("select products_model from " . TABLE_PRODUCTS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'"); if (tep_db_num_rows($model_query)) { $model = tep_db_fetch_array($model_query); $breadcrumb->add($model['products_model'], tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $cPath . '&products_id=' . $HTTP_GET_VARS['products_id'])); } }

REPLACE WITH:-----------------------------------------------------
// add the products name to the breadcrumb trail if (isset($HTTP_GET_VARS['products_id'])) { $crumb_query = tep_db_query("select products_name from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and language_id = '" . $languages_id . "'"); if (tep_db_num_rows($crumb_query)) { $crumb = tep_db_fetch_array($crumb_query); $breadcrumb->add($crumb['products_name'], tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $cPath . '&products_id=' . $HTTP_GET_VARS['products_id'])); } }

Wednesday, May 14, 2008

HostMonster and Oscommerce

If you are looking for somewhere to host your Oscommerce, Hostmonster is an awesome place to do it.

Cheap, great up time and excellent service.

You can get to hostmonster with this link HostMonster

Or you can check out my other blog on Hostmonster here Hostmonster website hosting

Cheers

OScommerce

This is my first post in what I hope to be many explaining my experiences with Oscommerce.

Oscommerce is a shopping cart built in PHP, it has many cool features and I have been using it on and off for about 5 years I guess.

It is the best shopping cart I have ever used.

Just this week I have built three websites using it.