Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 General help me questions
 Free shipping by product by Country
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

williamj
VP-CART New User

Canada
77 Posts

Posted - January 09 2012 :  07:38:37  Show Profile  Reply with Quote
Can anyone direct me to what code I will need to change that will enable me to tag a single item for free shipping but to one country only? Example: I have an item tagged for free shipping but I only want shipping to be free in the US and have other countries excluded.
I would appreciate any help I can get on this.

diegomilito
VP-CART Expert

Argentina
779 Posts

Posted - January 13 2012 :  03:45:30  Show Profile  Reply with Quote
free shipping for a specific item and a specific country would see to require further coding i thought.

Diego
Go to Top of Page

williamj
VP-CART New User

Canada
77 Posts

Posted - January 13 2012 :  05:44:14  Show Profile  Reply with Quote
Thanks Diego, I worked it out. You have to enter some code to exit the checkdeliveryfree function in shopproductsubs depending on what countries you want to filter.
Go to Top of Page

diegomilito
VP-CART Expert

Argentina
779 Posts

Posted - January 14 2012 :  03:04:16  Show Profile  Reply with Quote
looks cool you do it yourself.you must be one of asp coder ?

Diego.
Go to Top of Page

manilow
VP-CART New User

France
134 Posts

Posted - January 14 2012 :  08:17:15  Show Profile  Visit manilow's Homepage  Reply with Quote
Hi,
I've added some code as well to limit free shipping to a specific country. See the CheckDeliveryFree routine in shopproductsubs.asp (example for France):

Original code :
if not isnull(shippingfree) then
if shippingfree<>0 then
rc = false
end if
end if

Modified code:
if not isnull(shippingfree) then
if ucase(GetSess("shipcountry")) = "FR" then
if shippingfree<>0 then
rc = false
end if
end if
end if

A product with freeshipping='yes' will have shipping cost calculated if sent to another country.

By the way, I created an extra field in the customers table to allow free shipping for specific customers. The customer will have free shipping when his order amount is higher then the value in this extra 'customerfreeshipping' field. This may be an idea for a new vpasp release.

Erik
www.aquathermia.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00