I want to offer free shipping below 10Kg and above it will cost € 13,50.
I have configured my product with a weight of 0.250Kg each.
In the Weight base shipping module I have the following: 10:1.00,20:13.50
If I buy 1 item at checkout iw shows me: Netherlands (0.250kg) € 1.00.
But If I lower the price below 1.00 the module does not showup during checkout.
Am I missing something or is this a bug?
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
I also reported it as a Bug in the Bugtracker.Daniel wrote:i'll look into this.
Just to be sure, sorry if this was not necessery
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
In catalog/model/shipping/weight.php
Line 44:
Code: Select all
if ((int)$cost) {
Code: Select all
if ((string)$cost) {
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
why'd you change it to a string, from a float, from an integer?
rocksteady,
danno~
In php
0 == "" <--int (Original way. Didn't allow sub 1.00 prices)
0.00 == "" <--float (Solution attempt 1. Allowed sub 1.00, but not 0.00)
but "0.00" != "" <-- string (Final Solution. Allows sub 1.00 and 0.00)
If you have:
10:0.00, 20:5.00, 30:10.00 then you DO want free shipping for 10 or less
if you used the (int), 0.00 would show up as 0 which = "".
If you used the (float), 0.00 would show up as 0.00 which still = "".
So i made it check for the existence of an actual string value for the price
http://forum.opencart.com/viewtopic.php?f=22&t=8391
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
Users browsing this forum: No registered users and 18 guests