osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Additional Shipping Options for Table Module

This is a discussion on Additional Shipping Options for Table Module within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; What's been changed from the previous distribution: File Name: catalogincludesmodulesshippingtable.php 1. After line "function quote($method = '') {" Change "global ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 01-09-2007, 04:46 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,483
Thanks: 73
Thanked 334 Times in 313 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post Additional Shipping Options for Table Module

What's been changed from the previous distribution:

File Name: catalogincludesmodulesshippingtable.php

1. After line "function quote($method = '') {"
Change "global $order, $cart, $shipping_weight, $shipping_num_boxes;"
To "global $order, $cart,$shipping_num_boxes,$order_total;"

2. Change the if statement:
if (MODULE_SHIPPING_TABLE_MODE == 'price') {
$order_total = $cart->show_total();
} else {
$order_total = $shipping_weight;
}

to:

if (MODULE_SHIPPING_TABLE_MODE == 'Price') {
$order_total = $cart->show_total();
} else {
$order_total = $cart->show_weight();
}

Tested OK on
Apache/2.0.54 (Unix) PHP/4.4.2 mod_ssl/2.0.54 OpenSSL/0.9.7e mod_fastcgi/2.4.2 DAV/2 SVN/1.3.2

More...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Adding an additional shipping table driwashsolutions osCMax v2 Customization/Mods 1 03-20-2006 09:09 PM
Additional Shipping auntie22 osCMax v1.7 Installation 6 05-28-2005 11:52 AM
Shipping Options/Individual Shipping Anonymous osCMax v1.7 Discussion 0 04-01-2004 01:10 PM
Additional Postage Table Contribution : I screwed up !! Lalla osCommerce 2.2 Modification Help 3 02-18-2004 02:51 PM
Is this possible? Table with attribute options? mom2nine osCMax v1.7 General Mods Discussion 0 02-08-2004 06:33 PM


All times are GMT -8. The time now is 03:26 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax