Book Image

Deep Inside osCommerce: The Cookbook

By : Monika Mathe
Book Image

Deep Inside osCommerce: The Cookbook

By: Monika Mathe

Overview of this book

osCommerce has been around since March 2000. At present there are over 10,000 live, registered osCommerce sites, and about 100,000 registered community members. Apart from providing ready-made solutions to problems, as well as a huge repository of information, the osCommerce community is a living entity with which we can all interact. With the rising success and popularity of this remarkable piece of software, things can only get better.
Table of Contents (17 chapters)
Deep Inside osCommerce: The Cookbook
Credits
Foreword
About the Author
About the Reviewers
Introduction

41. Modify Shipping Method Display for the Confirmation Page


If you have long expressions for your shipping methods, with delivery-date information added for example, you may prefer to display the Shipping Method in two lines rather than one on your Checkout Confirmation page. This recipe shows you how to pinpoint where formatting is done, and how to modify the look to suit your needs.

Presentation

Your screen will display your Shipping Method, here Flat Rate (Best way), as in the following screenshot:

Let's add new flavor to your Marinade!

Ingredients

Note

Modified:

catalog/checkout_shipping.php

Cooking

  1. 1. The relevant code hides in catalog/checkout_shipping.php. As surprising as this may be, that is the spot where the session information for shipping is filled, which includes formatting information. Therefore, find in line 120 the following code:

$shipping = array('id' => $shipping,
'title' => (($free_shipping == true) ? $quote[0]['methods'] [0]['title'] : $quote[0]['module'] ....