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!
Welcome,
Guest
|
|
Hi Reinhold
I've created a new set of rules and is working fine but is displaying all the array info after the rule in the checkout: Like this: Array ( [year] => 2016 [year2] => 16 [month] => 04 [day] => 24 [weekday] => 7 [hour] => 18 [hour12] => 06 [ampm] => pm [minute] => 36 [second] => 17 [decisecond] => 1 [centisecond] => 16 [millisecond] => 161 [articles] => 5 [products] => 1 [quantity] => 5 [minquantity] => 5 [maxquantity] => 5 [amount] => 5 [amountwithtax] => 5 [amountwithouttax] => 4.8077 [baseprice] => 4.8077 [basepricewithtax] => 5 [discountedpricewithouttax] => 4.8077 [salesprice] => 5 [taxamount] => 0.1923 [salespricewithdiscount] => 0 [discountamount] => 0 [pricewithouttax] => 4.8077 [skus] => Array ( [0] => N-zumo-kg ) [categories] => Array ( [0] => 2 ) [vendors] => Array ( [0] => 1 ) [manufacturers] => Array ( ) [zip] => 07001 [zip1] => 0 [zip2] => 07 [zip3] => 070 [zip4] => 0700 [zip5] => 07001 [zip6] => 07001 [city] => [countryid] => 195 [country] => Spain [country2] => ES [country3] => ESP [stateid] => [state] => [state2] => [state3] => [company] => [title] => [first_name] => [middle_name] => [last_name] => [address1] => [address2] => [phone1] => [phone2] => [fax] => [email] => [weight] => 5 [maxweight] => 1.0000 [minweight] => 1.0000 [volume] => 0 [maxvolume] => 0 [minvolume] => 0 [maxlength] => 1 [minlength] => 1 [totallength] => 5 [maxwidth] => 0 [minwidth] => 0 [totalwidth] => 0 [maxheight] => 0 [minheight] => 0 [totalheight] => 0 [maxpackaging] => 0 [minpackaging] => [totalpackaging] => 0 [coupon] => [uk_outward] => [uk_area] => [uk_district] => [uk_subdistrict] => [uk_inward] => [canada_fsa] => [canada_area] => [canada_urban] => [canada_subarea] => [canada_ldu] => ) )
( +11,00 €)] The rules are the following: Name=max 5kg Bultos {totalboxes}; 07000<=ZIP<08000; Weight<=5; Shipping=10.58
Name=max 10kg Bultos {totalboxes}; 07000<=ZIP<08000; 5<Weight<=10; Shipping=10.58
Name=max 15kg Bultos {totalboxes}; 07000<=ZIP<08000; 10<Weight<=15; Shipping=13.46
Name=max 20kg Bultos {totalboxes}; 07000<=ZIP<08000; 15<Weight<=20; Shipping=15.38
Name=max 25kg Bultos {totalboxes}; 07000<=ZIP<08000; 20<Weight<=25; Shipping=17.31
Name=max 30kg Bultos {totalboxes}; 07000<=ZIP<08000; 25<Weight<=30; Shipping=17.31
Name=max 35kg Bultos {totalboxes}; 07000<=ZIP<08000; 30<Weight<=35; Shipping=19.23
Name=max 40kg Bultos {totalboxes}; 07000<=ZIP<08000; 35<Weight<=40; Shipping=24.04
Name=max 45kg Bultos {totalboxes}; 07000<=ZIP<08000; 40<Weight<=45; Shipping=26.92
Name=max 50kg Bultos {totalboxes}; 07000<=ZIP<08000; 45<Weight<=50; Shipping=28.85
Name=max 60kg Bultos {totalboxes}; 07000<=ZIP<08000; 50<Weight<=60; Shipping=30.77
Name=max 70kg Bultos {totalboxes}; 07000<=ZIP<08000; 60<Weight<=70; Shipping=38.46
Name=max 80kg Bultos {totalboxes}; 07000<=ZIP<08000; 70<Weight<=80; Shipping=43.27
Name=max 90kg Bultos {totalboxes}; 07000<=ZIP<08000; 80<Weight<=90; Shipping=48.08
Name=max 100kg Bultos {totalboxes}; 07000<=ZIP<08000; 90<Weight<=100; Shipping=52.88
Name=Bultos {totalboxes}; Weight>100; 07000<=ZIP<08000; Shipping=38.46+(Weight-100)*0.1 I don't see from where is this comming, Is happening only in the new shipping created and not in the one's we already have working fine. Vm 3.0.14 joomla 3.5.1 You can check the issue live on www.comenaranjas.com/en adding any product to cart and selecting Spain as country and zip code 07001 Regards |
|
Dear Manuxx,
from the output it appears as if the totalboxes variable for some reason holds the value of the {debug_values} or {values_debug} variable (i.e. it shows the list of all available variables). I could not find anything in the code that would cause such a bahavior. Are you sure there is nothing in the rules before the ones you quoted in your message? Best regards, Reinhold |
|
Hi Reinhold,
The error was that I had forgot to add the first line I had in another rules using the totalboxes I added this line to the start of the rules and it worked again without showing the debug values: Variable=totalboxes; Value=ceil(totallength/15) Regards |
|
Dear Manuxx,
Thanks for the feedback. Great to hear that you found the solution yourself. On the other hand, you also stumbled upon a little bug in the plugin, too: If a variable is used that has not been defined (like your {totalboxes}), then a warning message should be printed. Due to a stupid typo in the PHP code, this was broken and mistakenly used the case of {debug_values} instead... Version 4.0.1 of the plugin (just released) should fix this small issue, too. Best regards, Reinhold |