X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Pre-Login Shipping Calculator (https://forum.x-cart.com/showthread.php?t=6927)

g0t0pless 08-18-2006 10:20 PM

4.1.X compatible?

Jon 09-22-2006 02:21 PM

Re: Pre-Login Shipping Calculator
 
To prevent taxes from being calculated until the user logs in, perform the following (This was done on a 3.5.x store):

Open include/func.php and FIND:

Code:

function func_calculate_taxes($products, $customer_info, $shipping_cost, $provider="") {

AFTER ADD:

Code:

global $current_area;

FIND:

Code:

        $return = array("tax_cost" => 0,
                                        "tax_gst" => 0,
                                        "tax_pst" => 0);


AFTER PUT:

Code:

  // WebsiteCM - Don't Show Taxes in the customer area unless we have a customer login
  if ($current_area == "C" && $customer_info['login'] == "") { return $return; }


2coolbaby 09-29-2006 10:10 AM

Re: Pre-Login Shipping Calculator
 
I have a slight problem. The code being provided in quotes in this topic, is showing up wrong in my browser. IE:

Click here to change your zip code:

Just shows up as linked text, so if I just paste it into my template it is unlinked text, so my customers cannot click to change their zip.

I am sure the source code is different than what I am seeing in the quote boxes.
If I look at the source code on the forum it shows up as href and http://cart.php?zip_estimate=clear - obviously that is not correct, so some code added here is being changed by the forum.

Can someone possibly email me the code for this line, including the link format? Or post it here with *'s to keep it from being converted to a link by the forum? I would appreciate it much!

eastman 10-03-2006 09:09 AM

Thanks:
 
Great mod. Thanks to all who did such excellent work.

Here's what I used:
<a href='https://www.*****.com/store/cart.php?zip_estimate=clear'>Click here to change your zip code</a>

jasonroy 10-04-2006 02:57 PM

Re: Pre-Login Shipping Calculator
 
i couldnt get the "change zip code" thing to show up at all... it just isnt visible at all.

2coolbaby 10-05-2006 05:53 AM

Re: Pre-Login Shipping Calculator
 
I am using USPS & I am using Real Time Calculations. I have 4 different usps methods available in my cart, but since adding this it ALWAYS reverts to Priority and does not allow the customer to choose any other method. Maybe it is not this mod and something in my cart. I am just not sure, but people are unhappy with the lack of ability to choose shipping. Anyone else had this problem?

jasonroy 10-20-2006 08:15 AM

Re: Pre-Login Shipping Calculator
 
Since I bought the WebsiteCM EZ Checkout for 4.1.3 I have not been able to get this to work at all. I ended up just completely removing it.

Has anyone got it to work with 4.1.3 EZ Checkout?

jfaust97 10-31-2006 06:42 AM

Re: Pre-Login Shipping Calculator
 
Check out this shipping calculator we had made.

it is on any product, look for the shipping calculator button.

www.budgetgolf.net

rubberneck 10-31-2006 07:01 AM

Re: Pre-Login Shipping Calculator
 
jfaust97
Looks great. Are you offering the coding/instructions?

jfaust97 10-31-2006 07:06 AM

Re: Pre-Login Shipping Calculator
 
Thanks,

We had this made from the guys at www.finestshops.com

Ask for Anton.

Very reasonable pricing.


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

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.