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 ...



Find us on Facebook
Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


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: 15,758
Thanks: 139
Thanked 609 Times in 521 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

*** Do not PM me requesting paid help. The only paid work I do is for AABox Web Hosting customers ***

Stay Up To Date with everything osCMax:
Free osCMax Newsletters - Security notices, New Releases, osCMax News
osCMax on Twitter - Up to the minute info as it happens. Know it first.

osCMax User Manual - osCMax Templates - Advanced Template Tutorial

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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 04:48 AM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2009 osCMax
Inactive Reminders By Icora Web Design