Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Pre-Login Shipping Calculator

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #161  
Old 04-28-2006, 06:01 PM
 
micromedia micromedia is offline
 

Member
  
Join Date: Feb 2005
Posts: 27
 

Default

Anybody using pre shiipin mod on 4.1.0?
__________________
X Cart Gold Ver. 4.1.6
Reply With Quote
  #162  
Old 05-07-2006, 09:06 PM
  davidsaldana's Avatar 
davidsaldana davidsaldana is offline
 

Senior Member
  
Join Date: Oct 2005
Posts: 187
 

Default

Code:
Ok, I think I'm missing something. I've got this working perfectly, except for the tax. I have my cart set to charge MA sales tax for orders in MA. This works fine on checkout, but with the pre-login shipping calculator, it includes the tax no matter which zip code is input. This is confusing to the user as it shouldn't be showing tax in the total if they're not using a MA zip code. Any ideas. I'm in version 4.0.17 by the way. Thanks, jeff


Jeff, I had the same problem as you do. I just changed my default city, state and zip to anywhere outside of my state (NY), which has the sales tax.

That should take care of the problem.

-David
__________________
4.4
Code:
Hello World
Reply With Quote
  #163  
Old 07-06-2006, 12:50 PM
 
nevets1219 nevets1219 is offline
 

eXpert
  
Join Date: Jun 2006
Posts: 351
 

Default

I have implemented the mentioned code in all of the previous code and I tested it and it works great as far as I can see.

What I tested:
* Product with defined shipping freight.
* Flat tax rate (added extra code to set the default state to another state so tax rate isn't calculated as opposed to changing the default state in the X-Cart admin)
* Combination of above.

I have yet to test it with defined shipping methods but I have added the appropriate mentioned code to handle it. I was wondering what other cosiderations should I be aware of.

Thanks to all the contributors of this great mod.

EDIT: This seems like a good free PHP solution for ZIP to state conversion. I've seen another that used arrays rather than a bunch of cases.

EDIT: Before I implement FEDEX into the system, I heard that it does not play nicely with this great mod, is this true?
__________________
4.1.8
Reply With Quote
  #164  
Old 07-10-2006, 09:10 AM
 
nevets1219 nevets1219 is offline
 

eXpert
  
Join Date: Jun 2006
Posts: 351
 

Default

I made some modifications to the original code (minor ones). The modifications are there to make the site a bit more user-friendly.

In cart.php, change
Code:
func_header_location("cart.php");
to
Code:
func_header_location("cart.php#[anchor name]");
Then in /skin1/customer/main/cart_totals.tpl you add the following to the very top (I preferred very top because it'll include the drop-down box "Select a Carrier" since we have more than just one carrier) add the following
Code:
<a name="[anchor name]></a>
and then changeto
Now everytime the users make a submission it'll scroll back down to your anchor which makes making multiple changes a little better and it'll show what the user choose as the Zip Code so they can reference it in case they forgot or they made a typo.

Also to ask the question again, does this work with Fedex (both import rates and using the mods).

The changes are pretty general so it should apply to all versions but the filenames for the changes might be different.
__________________
4.1.8
Reply With Quote
  #165  
Old 07-13-2006, 06:37 AM
 
weswhite weswhite is offline
 

Advanced Member
  
Join Date: May 2006
Location: KS
Posts: 34
 

Default

Quote:
Originally Posted by micromedia
Anybody using pre shiipin mod on 4.1.0?

Does anybody have this working yet for 4.1 or something that would do the same for 4.1? It would be very nice to have this.

Thanks
__________________
X-Cart Pro v4.1.1
Reply With Quote
  #166  
Old 08-03-2006, 10:19 PM
 
ecommerce ecommerce is offline
 

eXpert
  
Join Date: Jul 2006
Posts: 267
 

Default

rackit, interesting mod.

i check out ur site.

i like how u have the shipping discount, tax all pre loging.

however ur tax is not calcualted for ur state. i type a few CA zips and it alwasy gives me n/a tax.
I even typed in ur own zip code.
__________________
X-Cart 4.0.18 DBest
Reply With Quote
  #167  
Old 08-03-2006, 10:20 PM
 
ecommerce ecommerce is offline
 

eXpert
  
Join Date: Jul 2006
Posts: 267
 

Default

skin1/images/calculate.gif should not be used if ur thinking about multiple languages.
__________________
X-Cart 4.0.18 DBest
Reply With Quote
  #168  
Old 08-03-2006, 11:08 PM
 
ecommerce ecommerce is offline
 

eXpert
  
Join Date: Jul 2006
Posts: 267
 

Default

booomer, i noticed you hard coded the text messages. any way to make this language compatible?

also, is there any way that when they put the zip code, a separate line showing the tax will show?
__________________
X-Cart 4.0.18 DBest
Reply With Quote
  #169  
Old 08-10-2006, 04:59 PM
 
ecommerce ecommerce is offline
 

eXpert
  
Join Date: Jul 2006
Posts: 267
 

Default

is this pre login shipping calculations working on 4 0 18?

how do we make it calculat tax at the same time when they
put the zip?

thanks
__________________
X-Cart 4.0.18 DBest
Reply With Quote
  #170  
Old 08-10-2006, 08:25 PM
 
nevets1219 nevets1219 is offline
 

eXpert
  
Join Date: Jun 2006
Posts: 351
 

Default

It works for v4.0.18 and it does tax calculation as well (with some minor modification)
__________________
4.1.8
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:21 AM.

   

 
X-Cart forums © 2001-2020