VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: toddcartner on September 27, 2013, 22:34:25 PM

Title: Shipping Setup
Post by: toddcartner on September 27, 2013, 22:34:25 PM
Hello

I am using Joomla 2.514 and Virtumart 2.022a.  PHP 5.3.15

I have a client that wants to have a flat rate shipping of $5.95 for US customers and $8.95 for Canadian customers.  They do not want to ship anywhere else.

They would like a coupon code for FREE SHIPPING for orders over $50.00.

They also would like a Coupon Code for clients that have previously ordered that can receive free shipping.

Can anyone PLEASE help me figure this out.  I have done each separately, but cannot get them all to work.  There has to be a way.

Thanks!!!

Todd
Title: Re: Shipping Setup
Post by: Maxim Pishnyak on September 29, 2013, 21:51:37 PM
Quote from: toddcartner on September 27, 2013, 22:34:25 PM
I have done each separately, but cannot get them all to work.
What did you do?
Title: Re: Shipping Setup
Post by: reinhold on September 29, 2013, 23:04:32 PM
When you speak of coupon codes, do you want one coupon code for all customers, or do you want randomized coupon codes created for each customer?

If you simply want one coupon code, you can use my advanced Shipping by Rules plugin (http://open-tools.net/virtuemart-2-extensions/vm2-advanced-shipping-by-rules-plugin.html ).

You would create two normal VM coupons with codes let's say "BF3AB" and "OCES9" (which you give to previous customers to get free shipping). In the shipping setup you then use one zone for the US and one for Canada.

The rules for the US would be:

Name=Free shipping with coupon above 50$; COUPON=="BF3AB"; Amount>=50; Shipping=0
Name=Free shipping with coupon for previous customers; COUPON="OCES9"; Shipping=0
Name=Flat rate for US customers; Shipping=5.95

The first matching rule will be used, so if the user enters the correct coupon, the shipping will be 0, otherwise the flat rate will apply.

For the second country zone, you simply select canada and use similar rules.

As you don't give any shipping costs for other countries, shipping to other countries will not be possible.
Title: Re: Shipping Setup
Post by: toddcartner on September 29, 2013, 23:32:58 PM
Quote from: reinhold on September 29, 2013, 23:04:32 PM
When you speak of coupon codes, do you want one coupon code for all customers, or do you want randomized coupon codes created for each customer?

If you simply want one coupon code, you can use my advanced Shipping by Rules plugin (http://open-tools.net/virtuemart-2-extensions/vm2-advanced-shipping-by-rules-plugin.html ).

You would create two normal VM coupons with codes let's say "BF3AB" and "OCES9" (which you give to previous customers to get free shipping). In the shipping setup you then use one zone for the US and one for Canada.

The rules for the US would be:

Name=Free shipping with coupon above 50$; COUPON=="BF3AB"; Amount>=50; Shipping=0
Name=Free shipping with coupon for previous customers; COUPON="OCES9"; Shipping=0
Name=Flat rate for US customers; Shipping=5.95

The first matching rule will be used, so if the user enters the correct coupon, the shipping will be 0, otherwise the flat rate will apply.

For the second country zone, you simply select canada and use similar rules.

As you don't give any shipping costs for other countries, shipping to other countries will not be possible.

Exactly what I said in the post!
Title: Re: Shipping Setup
Post by: toddcartner on September 29, 2013, 23:35:56 PM
@ reinhold

Please - can I contact you for help?

Todd