Login
Register

VirtueMart

WooCommerce

Others

Docs

Support

Blog

About

Shipping by Rules for VirtueMart

IMPORTANT ANNOUNCEMENT: Plugin development ceased, all plugins made available freely (GPL)

With great sadness we have to announce that we are ceasing development of all our VirtueMart, WooCommerce and Joomla plugins. Effective immediately, all our plugins -- even those that were paid downloads -- are made available for free from our homepage (GPL license still applies), but we cannot and will not provide any support anymore.

It has been a great pleasure to be part of the thriving development communities of VirtueMart as well as WooCommerce. However, during the last year it became painstakingly clear that in addition to a full-time job, a young family and several other time-consuming hobbies at professional level (like being a professional singer) the plugin development and the support that it requires is not sustainable and is taking its toll. It has been an honor, but it is now time to say good bye!

×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Pre sale question, and another technical question 25 May 2013 12:19 #1

  • propush
  • propush's Avatar Topic Author
Hell.

I would like to apply the fallowing rule for my cart:

for any country: one item will cost 5, 2 will cost 8, three will cost 13, and any additional item will cost 3 more.

For this, I have used the fallowing configuration:

for all countries (selected all in the correct field), apply these rules:

Name=One item; Amount==1; ShippingWithTax=5
Name=Two items; Amount==2; ShippingWithTax=8
Name=Three items; Amount==3; ShippingWithTax=10
Name=Four items or more; Amount=>4; ShippingWithTax=1+Amount*3


Now, The rule is not available in the cart. I have Published it, and applied it to ALL shopper groups.

So, to my questions:
1. As far as I can understand, in order to apply condition number 4 I need the advanced plugin. Is that true?
2. Why isnt my condition working, even after I changed condition 4 to:

Name=Four items or more; Amount=>4; ShippingWithTax=20

For testing?

I have also tried to use the Shipping vatiable, instead of the ShippingWithTax variable - to no avail.

Thank you very much for any help,

Avichay

Pre sale question, and another technical question 25 May 2013 12:31 #2

for any country: one item will cost 5, 2 will cost 8, three will cost 13, and any additional item will cost 3 more.

For this, I have used the fallowing configuration:
Name=One item; Amount==1; ShippingWithTax=5
Name=Two items; Amount==2; ShippingWithTax=8
Name=Three items; Amount==3; ShippingWithTax=10
Name=Four items or more; Amount=>4; ShippingWithTax=1+Amount*3


Please note that "Amount" is the variable with the money amount of the order. What you really want is the "Articles" variable:
Name=One item; Articles==1; ShippingWithTax=5
Name=Two items; Articles==2; ShippingWithTax=8
Name=Three items; Articles==3; ShippingWithTax=10
Name=Four items or more; Articles=>4; ShippingWithTax=1+Articles*3

Now, The rule is not available in the cart.


It is. It just doesn't match the order, because your order probably didn't have an amount of 1$, 2$ or 3$. If you switch to using the correct "Articles" variable, it will work.

So, to my questions:
1. As far as I can understand, in order to apply condition number 4 I need the advanced plugin. Is that true?


Yes, the calculation of "1+Articles*3" is only implemented in the advanced plugin. You can, of course, list arbitrary many rules for 4, 5, 6, 7, .. articles in the basic plugin.

2. Why isnt my condition working, even after I changed condition 4 to:

Name=Four items or more; Amount=>4; ShippingWithTax=20


Because you condition on the order (money) amount and not on the number of articles...

I hope this fixes your issue.
Regards,
Reinhold

Pre sale question, and another technical question 25 May 2013 12:32 #3

  • propush
  • propush's Avatar Topic Author
I have since fount that I need yo use the Articles variable, and not the Ammount, as the Ammount is the COST of the order and not the NUMBER OF ITEMS.

How ever, my new rule doesn't work:

Name=One item; Articles==1; 5
Name=Two items; Articles==2; 8
Name=Three items; Articles==3; 10
Name=Four items or more; Articles=>4; 20

I do not use the complex rule for 4 and over because I use the free plugin for the testing. Is this the reason why it doesn't work?

Pre sale question, and another technical question 25 May 2013 12:35 #4

What exactly doesn't work?
The rules look just fine to me.

You can try your rules at demo.kainhofer.com/ with both the basic and the advanced plugin versions installed. If you can reproduce the problem there, I can easier determine what might be the issue here.

Pre sale question, and another technical question 25 May 2013 12:49 #5

  • propush
  • propush's Avatar Topic Author
Firstly, I thank you for the amazingly fast response!

I set the corrected condition in the demo - and it worked. But, it did not work on my site :[

The shipping method settings are exactly the same on both demo and the live site (the plugin settings).

Other "normal" shipping types work. But the plugin shipment is not available for my cart at the moment.

I use this rule:

for all areas,
Name=One item; Articles==1; shipping=5
Name=Two items; Articles==2; shipping=8
Name=Three items; Articles==3; shipping=10
Name=Four items or more; Articles=>4; shipping=20

also tried (for testing):

Name=One item; Articles==1; 5
Name=Two items; Articles==2; 8
Name=Three items; Articles==3; 10

Can provide admin access, if you want.

Once again thank you for your help!

*I am using the virtuemart plugin discount by quantity. If it is relevant.

Pre sale question, and another technical question 25 May 2013 12:53 #6

  • propush
  • propush's Avatar Topic Author
Problem solved.

The problem was that I set the shipment to all areas, instead of leaving black. So method was unavailable, untill the user fills in an address.

Will buy your awesome product :]

[SOLVED] Pre sale question, and another technical question 25 May 2013 12:53 #7

  • propush
  • propush's Avatar Topic Author
Problem solved.
  • Page:
  • 1