Changeset 862816
- Timestamp:
- 02/22/2014 03:18:22 AM (12 years ago)
- Location:
- orillacart/trunk
- Files:
-
- 3 edited
-
com_shop/helpers/standart_shipping.php (modified) (2 diffs)
-
main.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
orillacart/trunk/com_shop/helpers/standart_shipping.php
r812827 r862816 328 328 329 329 if ($country) { 330 $wherecountry = '( ' . $conditions[$r->params->get('country', 0)][1] . ' FIND_IN_SET( "' . $country . '", shipping_rate_country ) OR shipping_rate_country="0" OR shipping_rate_country="" OR shipping_rate_country IS NULL)';330 $wherecountry = $conditions[$r->params->get('country', 0)][0].' ( ' . $conditions[$r->params->get('country', 0)][1] . ' FIND_IN_SET( "' . $country . '", shipping_rate_country ) OR shipping_rate_country="0" OR shipping_rate_country="" OR shipping_rate_country IS NULL)'; 331 331 } else { 332 $wherecountry = '( ' . $conditions[$r->params->get('country', 0)][1] . ' FIND_IN_SET( "' . $params->get('shop_country') . '", shipping_rate_country ) )';332 // $wherecountry = $conditions[$r->params->get('country', 0)][0].' ( ' . $conditions[$r->params->get('country', 0)][1] . ' FIND_IN_SET( "' . $params->get('shop_country') . '", shipping_rate_country ) )'; 333 333 } 334 334 … … 343 343 WHERE sr.carrier = {$r->method_id} 344 344 345 " . $conditions[$r->params->get('country', 0)][0] . "{$wherecountry}345 {$wherecountry} 346 346 {$wherestate} 347 347 AND c.type='shipping' 348 348 " . $conditions[$r->params->get('volume', 0)][0] . " 349 ( " . $conditions[$r->params->get('volume', 0)][1] . " (shipping_rate_volume_start <= '{$volume}' AND shipping_rate_volume_end >= '{$volume}') OR (shipping_rate_volume_end = 0) )349 ( " . $conditions[$r->params->get('volume', 0)][1] . " (shipping_rate_volume_start <= '{$volume}' AND (shipping_rate_volume_end >= '{$volume}' OR shipping_rate_volume_end = 0) ) ) 350 350 " . $conditions[$r->params->get('total', 0)][0] . " 351 (" . $conditions[$r->params->get('total', 0)][1] . " (shipping_rate_ordertotal_start <= '{$order_subtotal}' AND shipping_rate_ordertotal_end >= '{$order_subtotal}') OR (shipping_rate_ordertotal_end = 0))351 (" . $conditions[$r->params->get('total', 0)][1] . " (shipping_rate_ordertotal_start <= '{$order_subtotal}' AND (shipping_rate_ordertotal_end >= '{$order_subtotal}' OR shipping_rate_ordertotal_end = 0) )) 352 352 " . $conditions[$r->params->get('weight', 0)][0] . " 353 (" . $conditions[$r->params->get('weight', 0)][1] . " (shipping_rate_weight_start <= '{$weighttotal}' AND shipping_rate_weight_end >= '{$weighttotal}') OR (shipping_rate_weight_end = 0))353 (" . $conditions[$r->params->get('weight', 0)][1] . " (shipping_rate_weight_start <= '{$weighttotal}' AND ( shipping_rate_weight_end >= '{$weighttotal}' OR shipping_rate_weight_end = 0))) 354 354 " . $conditions[$r->params->get('width', 0)][0] . " 355 (" . $conditions[$r->params->get('width', 0)][1] . " (shipping_rate_width_start <= '" . $totaldimention['totalwidth'] . "' AND shipping_rate_width_end >= '" . $totaldimention['totalwidth'] . "') OR (shipping_rate_width_end = 0))355 (" . $conditions[$r->params->get('width', 0)][1] . " (shipping_rate_width_start <= '" . $totaldimention['totalwidth'] . "' AND (shipping_rate_width_end >= '" . $totaldimention['totalwidth'] . "' OR shipping_rate_width_end = 0))) 356 356 357 357 " . $conditions[$r->params->get('length', 0)][0] . " 358 (" . $conditions[$r->params->get('length', 0)][1] . " (shipping_rate_length_start <= '" . $totaldimention['totallength'] . "' AND shipping_rate_length_end >= '" . $totaldimention['totallength'] . "') OR (shipping_rate_length_end = 0))358 (" . $conditions[$r->params->get('length', 0)][1] . " (shipping_rate_length_start <= '" . $totaldimention['totallength'] . "' AND (shipping_rate_length_end >= '" . $totaldimention['totallength'] . "' OR shipping_rate_length_end = 0))) 359 359 360 360 " . $conditions[$r->params->get('height', 0)][0] . " 361 (" . $conditions[$r->params->get('height', 0)][1] . " (shipping_rate_height_start <= '" . $totaldimention['totalheight'] . "' AND shipping_rate_height_end >= '" . $totaldimention['totalheight'] . "') OR (shipping_rate_height_end = 0))361 (" . $conditions[$r->params->get('height', 0)][1] . " (shipping_rate_height_start <= '" . $totaldimention['totalheight'] . "' AND (shipping_rate_height_end >= '" . $totaldimention['totalheight'] . "' OR shipping_rate_height_end = 0))) 362 362 363 363 364 364 365 365 ORDER BY sr.shipping_rate_priority,shipping_rate_value "; 366 366 367 367 $db->setQuery($sql); 368 368 -
orillacart/trunk/main.php
r861174 r862816 3 3 /* 4 4 Plugin Name: OrillaCart 5 Version: 1.0.2 15 Version: 1.0.22 6 6 Description: ecommerce solution for WordPress 7 7 Plugin URI: http://orillacart.com -
orillacart/trunk/readme.txt
r861174 r862816 85 85 86 86 == Changelog == 87 = 1.0.22 - 22.02.2014 = 88 1. Shipping rates bug fix. 87 89 88 90 = 1.0.21 - 19.02.2014 =
Note: See TracChangeset
for help on using the changeset viewer.