[ic] Controlling checkout.html shipping method selections

Mark Bryant interchange-users@icdevgroup.org
Sun May 4 05:10:02 2003


Hi Folks,

I'm having a bit of trouble with the shipping methods displayed on 
checkout.html.

I've already set up two shipping methods (let's call them SHIP1 & SHIP2), 
where the calculation is done by weight and they are behaving normally.

What I would like to do now is customise which one is displayed by 
checkout.html dependent on the cost of the goods+sales tax :


     [if] (the cost of the goods + sales tax <= 28.00)

        Show both methods in checkout.html

     [if] (the cost of the goods + sales tax > 28.00)

        Only show method SHIP2 in checkout.html

     [/if]


The checkout.html page is currently showing both methods using this code, 
which I guess if just fine in the < 28.00 case, but not for the > 28.00 case.

     <SELECT NAME=mv_shipmode>
     [shipping
       label=1
       mode=|[data table=country key='[default country UK]' col=shipmodes]|
     ]
     </SELECT>


I'll freely admit that I don't understand how most of the IC tags/code work 
and having spent hours looking at code and getting nowhere fast I have to 
ask if someone out there could supply the code (or enough of it to get me 
going) to do the job. I'm sure it's pretty simple if you understand how 
getting data from the databases works, but I'm so lame with IC right now I 
couldn't even write the required [if][/if] lines :o(

Many thanks to anyone that can help out here.

Mark