Removing a Shipping Option

Get help with nopcart formatting or style related issues.

Moderators: Koibito, Stefko, Randy

Removing a Shipping Option

Postby lozspaintedglass » Thu Dec 13, 2007 11:47 pm

Hello everyone, Firstly thanks to everyone for this forum - I couldn't have got anywhere without it, as I know nothing about this side of webmaking. :lol:
I have my cart fully functioning somehow & now just want to delete a few of the shipping options as it has too many for my needs. (I'm using kamy2 mod) Sorry if this is answered somewhere in the forum - cant find it. I love the weight option for shipping! I'm only using the cart to email order - not going to payment processor. My site is http://lozspaintedglass.com.au
Many thanks ...
lozspaintedglass
WebMaster
 
Posts: 5
Joined: Tue Dec 11, 2007 1:09 pm

Re: Removing a Shipping Option

Postby Koibito » Fri Dec 14, 2007 12:01 am

The shipping options are in lines 663-707 of nopcart.js.
John
Koibito
Site Admin / Guru
 
Posts: 918
Joined: Sun May 28, 2006 1:59 am
Location: New Jersey, USA

Re: Removing a Shipping Option

Postby Randy » Fri Dec 14, 2007 2:25 am

With another variable to keep track of the number of glasses ordered, do the math for the discount and apply it to the cart as a separate row in the bottom.
If the discount is zero, don't print the discount row.

Nice looking site!

BTW, some of the glasses don't add weight to the shipping -- I ordered 24 whiskey glasses -- no weight increase.
and when the weight does get added, somewhere I gives a NaN error...(I ordered shot glasses: 1 was ok, 12 caused a NaN error).

I would suspect the shipping calculation ...

Randy
Randy
Guru
 
Posts: 1511
Joined: Tue Apr 22, 2003 12:21 pm
Location: Thunder Bay, Ontario

Re: Removing a Shipping Option

Postby lozspaintedglass » Fri Dec 14, 2007 7:55 am

Thanks for your help everyone - esp the shipping error. Will try to find the culprits & fix tonight & I want to do some more formatting that is annoying me! Will look into the discount soon - I''ve spent that long on my website my orders are getting behind & stressing me a bit and my family want me back! Will let you know when fixed to see what you think. ps - I think this is a wonderful forum as it gives novices like me the opportunity to improve their sites without spending big buck :D
lozspaintedglass
WebMaster
 
Posts: 5
Joined: Tue Dec 11, 2007 1:09 pm

Re: Removing a Shipping Option

Postby lozspaintedglass » Fri Dec 14, 2007 11:00 am

Hi again guys,
Thanks Randy for pointing out the errors, some were typos & frontpage reformatting I missed. Glad you found it or I would have been out of pocket! Thats what happens when you do things at 1am.

Sorry, but I still dont know what to do to delete the surplus shipping options - can you please explain what I'm to type or delete? I learn by mucking around with stuff & usually don't understand why it works, so I am very surprised I have got this far as I have very little understanding of what I've done!


//---------------------------------------------------------------------||
had to delete the rest as I'd gone over my limit!
lozspaintedglass
WebMaster
 
Posts: 5
Joined: Tue Dec 11, 2007 1:09 pm

Re: Removing a Shipping Option

Postby lozspaintedglass » Fri Dec 14, 2007 11:27 pm

Ok finally figured it out. For other novices like me you just add a // in front of the shipping options you dont want displayed:


//this displays the shipping matrix and sets the value for each zone ||

if (( DisplayShippingRow ) && ( iNumberOrdered != 0)) {
strOutput += "<tr><td class=\"nopship\" colspan=1 align=center><b>"+"Australia Post<br>Shipping<br>Options"+"</b></td>";
strOutput += "<td class=\"nopship\" colspan=5>";
//strOutput += "<input type=radio name=\"ZONE\" value=\"0" + "\" onClick=\"ComputeShipping(this.value, "+fWeight+")\">";
//strOutput += "No Shipping Option";
//strOutput += "<br><input type=radio name=\"ZONE\" value=\"1" + "\" onClick=\"ComputeShipping(this.value, "+fWeight+")\">";
//strOutput += "First Class - Domestic (<i>max. 13 oz</i>)";
if(fWeight>36000){
strOutput += "<br><input type=radio name=\"ZONE\" value=\"1" + "\" DISABLED>";
strOutput += "Express Post within Australia (<i>max3.6kg, please request postage quote by selecting option below</i>)";
}else{


Seems so obvious now, but I thought I'd previously tried it & it didn't work. Oh well - back to painting glasses!
lozspaintedglass
WebMaster
 
Posts: 5
Joined: Tue Dec 11, 2007 1:09 pm


Return to Help: Formatting and Style

Who is online

Users browsing this forum: No registered users and 1 guest

cron