VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: marvays on April 16, 2019, 04:37:02 AM

Title: Shipping by Rules
Post by: marvays on April 16, 2019, 04:37:02 AM
Hi. I have a traffic calculation by weight. Fot it I use plugin from open tools. Today its free.
But I need to modify it so that when the cart is only from certain manufacturers, delivery will be free. Can you help me?

Name=do 35kg; 35>Weight; 1>MaxLength; Shipping=165.2892561983471 **// not for manufacturers id, 28, 6, 37, 34
Name=nad 35kg; 35<=Weight<250; 1>MaxLength; Shipping=619.8347107438017 **// not for manufacturers id, 28, 6, 37, 34
Name=nad 250kg; 250<=Weight; 1>MaxLength; Shipping=826.4462809917355 **// not for manufacturers id, 28, 6, 37, 34
Name=Paletová přeprava; 50<=Weight<250; 1<=MaxLength; Shipping=619.8347107438017 **// not for manufacturers id, 28, 6, 37, 34
Name=Paletová přeprava; 50>Weight; 1<=MaxLength; Shipping=619.8347107438017 **// not for manufacturers id, 28, 6, 37, 34
Name=Paletová přeprava; 250<=Weight; 1<=MaxLength; Shipping=826.4462809917355 **// not for manufacturers id, 28, 6, 37, 34

**// manufacturers id, 28, 6, 37, 34 must have free delivery

I tried to use a sample from the FAQ:
Name=Free Delivery; Condition=contains_only(Manufacturers, 7,17,81); Shipping=0

But all time i have error about contains_only :(
Evaluation yields unknown value while evaluating rule part 'contains_only(Manufacturers, 6,28,37,34)'.

Three days I try. I do everything exactly as instructed. The result is always the same. I'm mad now :( Please help.
Title: Re: Shipping by Rules
Post by: marvays on April 16, 2019, 05:18:19 AM
it's strange, but nothing works at all! trying to use pointed out FAQ and don't work. each shows an error message.

I put one of the goods in category 28 into my cart.
I'll use the following example:
Name="Free shipping of Books only"; Categories==list(28); Shipping=0

NOT WORK. ASI WILL PROBLEM SOMEONE ALSO. POSSIBLE BETWEEN COMPUTER AND CHAIRS :)
Title: Re: Shipping by Rules
Post by: AH on April 16, 2019, 10:37:13 AM
This plugin is no longer supported - as you must be aware.

Try a paid for shipping plugin - this is not the forum for that plugin product.
Title: Re: Shipping by Rules
Post by: jenkinhill on April 16, 2019, 10:57:11 AM
Try https://extensions.virtuemart.net/checkout/shipments/pro-shipment-detail
Title: Re: Shipping by Rules
Post by: marvays on April 16, 2019, 11:03:51 AM
Quote from: AH on April 16, 2019, 10:37:13 AM
this is not the forum for that plugin product.
I understand it correctly. It's a competition. Therefore this is not a forum for this plugin :)
Title: Re: Shipping by Rules
Post by: AH on April 16, 2019, 11:23:59 AM
It has nothing to do with competition.

Plugins enhance the ecommerce offering and are necessary to meet the varied needs of businesses using VM at the core of their solution.

What I AM saying is that plugins from third party developers are supported by those developers - requests for help on this forum for third party plugins would massively clog up this forum.

The plugin you have now chosen to use has clearly been labelled as free and without support by the developer.   This forum is not the place to create a new support forum for those "orphaned" plugins.

Title: Re: Shipping by Rules
Post by: marvays on April 16, 2019, 11:29:38 AM
Sorry. I did not understand the essence of the existence of this forum. I thought it was a discussion site for the VM community where I can ask or give advice. I didn't know it was official support for Virtuemart.

The reason that the plugin is now free and without support I came here to talk about it with people who use it and have solved a similar problem.

If there is someone like that. . . I have a solution. Beware of different versions. You must download the Advanced version.
Title: Re: Shipping by Rules
Post by: AH on April 16, 2019, 12:42:03 PM
Thanks for the clarification regarding the version
Title: Re: Shipping by Rules
Post by: Milbo on April 17, 2019, 23:38:10 PM
AH, actually I see it as Marvin and think it is the correct place. We have a section for normal plugins, why we should not talk here about the orphaned ones of open tools. I anyway consider to add "shipment by rules advanced" to the core.
Title: Re: Shipping by Rules
Post by: Typhoon365 on April 18, 2019, 08:46:02 AM
Marvays,
  Have you tried the rule without the "Condition=" ? On the rules that we have used in our shop, we've never had to put "Condition=" but we haven't used the contains_only clause so it could be different. 
  In the documentation, it seems to have examples with and without it.

Try:
Name=Free Delivery; contains_only(Manufacturers, 7,17,81); Shipping=0

Name=Flat rate (high); contains_any(Categories, 123, 124, 125); Shipping=75
Name=Standard rate (weight-based); contains_any(Categories, 150, 151); Shipping=Weight*2

Milbo,
You have a vote from us for it to be included as part of the core. This is the most flexible shipping plug-in that we have used and we would struggle to implement the same shipping rules with any other plug-in. We would love for you to incorporate it as part of the the core or otherwise hopefully another developer can take over the plug-in so it's life can continue.
Title: Re: Shipping by Rules
Post by: AH on April 18, 2019, 10:55:40 AM
QuoteAH, actually I see it as Marvin and think it is the correct place. We have a section for normal plugins, why we should not talk here about the orphaned ones of open tools. I anyway consider to add "shipment by rules advanced" to the core.

It is for consistency

When we find a question that is not related to a VM issue for a third party plugin, we mostly tell the user to go the the forum for the plugin for help.

If we just randomly give or not give support here in this VM forum, why bother to randomly tell any of the others to go elsewhere.

open-tools.net plugins are no longer supported and this is not the place IMHO to provide ongoing support unless someone takes one or some of them on and keeps them relevant.

Reinhold no longer supports his plugins - they will age and will need to be updated - if you use one be prepared to either support it or expect for things to not work at some point.





Title: Re: Shipping by Rules
Post by: 2cool on November 14, 2019, 23:43:38 PM
Guess many still use this because it's plain and simple. Please make this VM core!

I do have an issue after upgrade to php7.3

Unknown variable 'Amount' in rule 'Amount=100'
Syntax error during evaluation, RPN is not well formed! (Full rule: '=Amount')
Unknown error occurred during evaluation of rule '=Amount'.
Outstack:

Array
(
   

    => Amount
    [1] => =
    )

    Assignments are not allowed inside expressions (rule given was '=Amount')
    Unknown variable 'Amount' in rule 'Amount=200'

    I noticed some customers don't see right options in cart.
    How can this be fixed?

    Joomla 3.9.13 vm3.6.8 php 7.3

Looks like something similar like "Condition" ?

If anyone knows how to fix...big thank you!
Title: Re: Shipping by Rules
Post by: AH on November 15, 2019, 11:05:03 AM
QuotePlease make this VM core!

That is very unlikely - you could always pay a developer to fix the plugin for you
Title: Re: Shipping by Rules
Post by: 2cool on November 15, 2019, 11:10:55 AM
Not anymore as you posted yourself ;)
But as Milbo replied;"I anyway consider to add "shipment by rules advanced" to the core."

Regards,
Pas
Title: Re: Shipping by Rules
Post by: jenkinhill on November 15, 2019, 11:12:01 AM
There is this rules plugin by Alatak:  https://extensions.virtuemart.net/checkout/shipments/pro-shipment-detail
Title: Re: Shipping by Rules
Post by: pinochico on November 19, 2019, 05:01:42 AM
Hello Marvays, glad to meet You :)

I see it's the same as czech forum:

QuoteBut I need to modify it so that when the cart is only from certain manufacturers, delivery will be free. Can you help me?

Yes, all programmers will be happy to help You. Unfortunately only for money.
I still see other people's same attempts to get an advantage without work. Do the results of their work only sell for free at Help Me?


Rudolf


Title: Re: Shipping by Rules
Post by: 2cool on November 23, 2019, 14:24:23 PM
Hi Jenkinhill,

Do you know if Pro Shipment can be set for each Shoppergroup can't see this in docs?

Regards,
Pas
Title: Re: Shipping by Rules
Post by: jenkinhill on November 23, 2019, 15:04:08 PM
Don't know, I have never used it. Ask the developer.
Title: Re: Shipping by Rules
Post by: Studio 42 on November 23, 2019, 23:09:41 PM
Quote from: pinochico on November 19, 2019, 05:01:42 AM
Hello Marvays, glad to meet You :)

I see it's the same as czech forum:

QuoteBut I need to modify it so that when the cart is only from certain manufacturers, delivery will be free. Can you help me?

Yes, all programmers will be happy to help You. Unfortunately only for money.
I still see other people's same attempts to get an advantage without work. Do the results of their work only sell for free at Help Me?


Rudolf



I sold plugins but check how much time i spend to help people(not only here).
So yes we help for free, but cannot work  hours to do old plugins compatible.
I think you do not know difference between help and support ?
Title: Re: Shipping by Rules
Post by: Jörgen on November 24, 2019, 20:12:31 PM
@studio42

I am not sure, but I think that Rudolf sais that there are no free lunches, someone has to pay for it eventually. So I do not think he means any harm.

Jörgen @ Kreativ Fotografi
Title: Re: Shipping by Rules
Post by: pinochico on December 16, 2019, 07:12:22 AM
Thanks Jorgen, exactlly.