VirtueMart

WooCommerce

Others

Docs

Support

Demo

Blog

About

Forum
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Shipping Rules for categories

Shipping Rules for categories 20 Jul 2015 09:15 #1

  • websiteprojects
  • websiteprojects's Avatar Topic Author
  • Offline
  • Posts: 11
Hi

Could you please tell me how I have a separate shipping rule for one category.

Currently my rules are:
evaluate_for_categories(Articles, 23)==Articles; Shipping=10
articles==1; Shipping=15.50
articles==2; 18.00
articles==3; 18.00
articles==4; 18.00
articles==5; 18.00
articles==6; 18.00
articles==7; 18.00
articles==8; 18.00

However If something is order from VirtueMart Category 33 I would like the postage to be $15

Thanks for your assistance

Please Log in or Create an account to join the conversation.

Shipping Rules for categories 23 Jul 2015 12:15 #2

  • websiteprojects
  • websiteprojects's Avatar Topic Author
  • Offline
  • Posts: 11
could I please have a reoly to this

Please Log in or Create an account to join the conversation.

Shipping Rules for categories 25 Jul 2015 23:03 #3

Dear Websiteprojects,
Your first rule means that ONLY products from category 23 are ordered.
If you want the postage to be $15 if at least one article from category 23 is ordered, you should change the rule to e.g.
23 in Categories; Shipping=10
(This is not the only possibility, but probably the easiest...)

Best regards,
Reinhold

PS: Sorry for the delay, but we have been busy catching up after vacation...

Please Log in or Create an account to join the conversation.

Shipping Rules for categories 26 Jul 2015 07:19 #4

  • websiteprojects
  • websiteprojects's Avatar Topic Author
  • Offline
  • Posts: 11
Hi

I added that rule however it does not override the other shipping so the user is given the option to select. You can see that Australia Post Satchel and Express Post are options however really the only option available for this category should be the Australia Post Box.

Could you please see the attached and advise?
Attachments:

Please Log in or Create an account to join the conversation.

Shipping Rules for categories 26 Jul 2015 11:01 #5

Dear Websiteprojects,
VirtueMart handles all shipping methods independently. Since you have three methods set up, and each returns a shipping rate, VM will simply offer all three of them. There is nothing you can do in the "Australia Post Box" shipping method.

You can, however, modify the other two shipping methods to not offer a shipping rate if category 23 is in the cart. Simply prepend the following rule to to the "Australia Post Satchel" and "Express Post" shipping methods:
23 in Categories; NoShipping
Now, when a product from category 23 is offered, the satchel and express post methods will no longer offer a shipping rate and the post box will be the only rate offered.

Best regards,
Reinhold

Please Log in or Create an account to join the conversation.

Shipping Rules for categories 27 Jul 2015 03:41 #6

  • websiteprojects
  • websiteprojects's Avatar Topic Author
  • Offline
  • Posts: 11
thanks for this. So it is working that the correct rate is charged when an item is purchased from Category 23. However when an item is purchased from Category 23 and items are purchased from other categories also only the Category 23 rate is charged. I would like so that they are charged the Categroy 23 rate + the standard shipping for all other category items.

Could you please advise how to achieve this?

Thanks

Please Log in or Create an account to join the conversation.

Shipping Rules for categories 02 Aug 2015 16:23 #7

In that case, I would use rules like:
23 in Categories; ExtraShippingCharge=10
Variable=MyWeight; Value=weight-evaluate_for_categories(Weight, 23)
[... your other rules, using MyWeight instead of weight...]

Basically, what I do is to check if category 23 is in the cart. If that is the case, we charge 10€/$/£ extra. However, as you said you want to base your shipping costs on all OTHER items, you cannot use e.g. Weight for the other items, because the Weight variable includes the products from category 23, too. Instead, you define your own variable MyWeight, where you subtract the weight of all products from category 23, so the MyWeight variable contains the weight only of all OTHER category items.
If you use other quantities than the weight, you would define another custom variable similarly.

Best regards,
Reinhold

Please Log in or Create an account to join the conversation.

  • Page:
  • 1

VM - Shopping cart

 x 

Cart empty

Login Formular