osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Shipping Mod Check

This is a discussion on Shipping Mod Check within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hey guys, I was wondering if anyone can point me in the right direction here, basically I want to check ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 07-21-2003, 07:33 PM
Active Member
 
Join Date: May 2003
Posts: 148
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Arpit
Default Shipping Mod Check

Hey guys,
I was wondering if anyone can point me in the right direction here, basically I want to check if the customer selects "store pickup" as the method of shipping, and if he/she does, then charge them 8.25% tax no matter what state they are from. I was messing around with catalog/includes/classes/order.php and this code, plz tell me what am I doing wrong here?


Quote:
$products = $cart->get_products();
for ($i=0, $n=sizeof($products); $i<$n; $i++) {
$this->products[$index] = array('qty' => $products[$i]['quantity'],
'name' => $products[$i]['name'],
'model' => $products[$i]['model'],
'tax' => tep_get_tax_rate($products[$i]['tax_class_id'], $tax_address['entry_country_id'], $tax_address['entry_zone_id']),
// 'tax' => tep_get_tax_rate($products[$i]['tax_class_id'], $shipping_address['entry_country_id'], $shipping_address['entry_zone_id']),
'tax_description' => tep_get_tax_description($products[$i]['tax_class_id'], $tax_address['entry_country_id'], $tax_address['entry_zone_id']),
'price' => $products[$i]['price'],
'final_price' => $products[$i]['price'] + $cart->attributes_price($products[$i]['id']),
'weight' => $products[$i]['weight'],
'id' => $products[$i]['id']);

if(strpos($this->info['shipping_method'], 'Store Pickup')>0){
$this->products[$index]['tax'] = 8.25;
$this->products[$index]['tax_description'] = 'New York State sales tax';
}
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
Can't check out? donm1021 osCMax v1.7 Discussion 0 08-07-2006 03:17 PM
help me ...after check... Thang422 osCMax v2 Installation issues 0 08-02-2005 04:36 PM
Wholesale check box simplyzibest osCMax v1.7 Discussion 6 01-10-2005 03:39 PM
Pay By Check.... Studio143 osCMax v1.7 Discussion 1 01-09-2005 01:04 PM


All times are GMT -8. The time now is 01:49 AM.


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