Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Store Pick-Up / Walk-in

Store Pick-Up / Walk-in

Locked

Views: 2,907

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
11 Feb 2007, 1:42 AM
#1
funtony avatar

funtony

New Zenner

Join Date:
Jun 2005
Location:
Temecula, CA, USA
Posts:
17
Plugin Contributions:
0

Store Pick-Up / Walk-in

Is there a way to make it so Store Pick-Up does not have Insurance added?

Sub-Total: $41.90

$3.25 CA Tax Rate:

$0.00 Store Pickup (Walk In):

$1.35 Mandatory Shipping Insurance:

$46.50 Total:

11 Feb 2007, 1:50 AM
#2
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Store Pick-Up / Walk-in

you will need an if switch put in the module

if $this->order['shipping'] == walk-in {
INS CODE HERE

}

11 Feb 2007, 1:04 PM
#3
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: Store Pick-Up / Walk-in

As a non-programmer, but willing to try... do me a favour please - can you re-write that line so that it works? I know enough to know that it should have brackets in the IF statement, but that's about it! :wink2:

I follow the logic, but am not very good with the code. Where/how do I find the correct identification of a shipping module? (Basically, I need to turn off insurance when either Store Walk In or Free Shipping are in force)

If anyone can/is willing to help, then the file I'm trying to edit is attached and I'm starting at line 64!

16 Feb 2007, 1:10 PM
#4
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: Store Pick-Up / Walk-in

The answer (thankyou kuroi) is to insert the following at around line 65 of includes/modules/ot_total/ot_insurance.php ( ```
if ($pass && $_SESSION['shipping']['id'] == 'storepickup_storepickup') {
$pass=false;
}



This refers to JadeTrue's Optional Shipping Insurance mod