Changeset 1119675
- Timestamp:
- 03/24/2015 02:09:01 PM (11 years ago)
- Location:
- orillacart/trunk
- Files:
-
- 12 edited
-
com_shop/admin/controllers/products.php (modified) (1 diff)
-
com_shop/admin/controllers/shipping.php (modified) (4 diffs)
-
com_shop/admin/views/product/templates/variations_manager.tpl.php (modified) (1 diff)
-
com_shop/assets/shop-admin-styles.css (modified) (1 diff)
-
com_shop/front/controllers/cart.php (modified) (2 diffs)
-
com_shop/helpers/fields.php (modified) (2 diffs)
-
com_shop/methods/paypal.php (modified) (2 diffs)
-
com_shop/methods/standart_shipping.php (modified) (1 diff)
-
com_shop/tables/carrier.php (modified) (2 diffs)
-
core/input/input.php (modified) (1 diff)
-
helpers/filterinput.php (modified) (1 diff)
-
main.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
orillacart/trunk/com_shop/admin/controllers/products.php
r1113566 r1119675 264 264 265 265 if ($post->post_parent) { 266 if (wp_delete_post($product, $true) !== false) {266 if (wp_delete_post($product, true) !== false) { 267 267 $ok = true; 268 268 } -
orillacart/trunk/com_shop/admin/controllers/shipping.php
r1113566 r1119675 31 31 32 32 $assigned = $model->get_used_classes(); 33 33 34 if ($row->class != 'standart_shipping') { 34 35 $key = array_search($row->class, $assigned); … … 77 78 78 79 if ($row->class != 'standart_shipping') { 80 79 81 $key = array_search($row->class, $assigned); 80 82 … … 95 97 if ($class instanceof standart_shipping && !in_array($class->get_class_name(), $assigned)) { 96 98 $class_names[] = $class->get_class_name(); 99 100 97 101 if (strtolower($row->class) == strtolower(get_class($class))) { 98 ob_start(); 102 103 104 ob_start(); 99 105 $class->print_options($row->pk()); 100 106 $class_options = ob_get_contents(); … … 106 112 $this->view->assign('class_names', $class_names); 107 113 $this->view->assign('class_options', $class_options); 114 108 115 return parent::display('add_carrier'); 109 116 } else { -
orillacart/trunk/com_shop/admin/views/product/templates/variations_manager.tpl.php
r1113566 r1119675 1 1 <table class="wp-list-table widefat fixed"> 2 2 <tr> 3 <th><?php _e(" title", "com_shop"); ?></th>4 <th><?php _e(" remove", "com_shop"); ?></th>3 <th><?php _e("Title", "com_shop"); ?></th> 4 <th><?php _e("Remove", "com_shop"); ?></th> 5 5 </tr> 6 6 -
orillacart/trunk/com_shop/assets/shop-admin-styles.css
r1113566 r1119675 5 5 6 6 .btn-save-variation{ 7 margin: 10px 0 ;7 margin: 10px 0!important; 8 8 } 9 9 -
orillacart/trunk/com_shop/front/controllers/cart.php
r1114229 r1119675 294 294 parse_str($input->get('post_data', "", "STRING"), $post); 295 295 $input->set($post); 296 $input->post->set($post); 296 297 } 297 298 … … 414 415 415 416 $id = $input->get('country', null, "STRING"); 417 418 419 416 420 $type = strtolower($input->get('type', 'billing', "WORD")); 417 421 if (!in_array($type, array('billing', 'shipping'))) { -
orillacart/trunk/com_shop/helpers/fields.php
r1113566 r1119675 386 386 $rows = $db->loadObjectList(); 387 387 388 389 foreach ((array) $rows as $row) { 390 $this->_options[$row->country_2_code] = $row->country_name; 391 } 388 if(!empty($rows)){ 389 $this->_options[null] = ""; 390 391 392 foreach ((array) $rows as $row) { 393 $this->_options[$row->country_2_code] = $row->country_name; 394 } 395 396 } 392 397 393 398 … … 428 433 if (!empty($rows)) { 429 434 430 435 $this->_options[null] = ""; 431 436 foreach ((array) $rows as $row) { 432 437 $this->_options[$row->state_2_code] = $row->state_name; -
orillacart/trunk/com_shop/methods/paypal.php
r1113580 r1119675 9 9 Description: paypal standart form based 10 10 Author: orillacart.com Team 11 Version: 1. 011 Version: 1.1 12 12 Author URI: http://orillacart.com/ 13 13 */ … … 118 118 'zip' => $order_r->get("billing_zipcode", ""), 119 119 'country' => $order_r->get("billing_country", ""), 120 'email' => $order_r->get("billing_email", "") 120 'email' => $order_r->get("billing_email", ""), 121 'bn' => 'OrillaCart_SP' 121 122 ), $phone_args 122 123 ); -
orillacart/trunk/com_shop/methods/standart_shipping.php
r1113566 r1119675 455 455 $id = $input->get('method_id', 0, "INT"); 456 456 457 $carrier = Table::getInstance('carrier', 'shop')->load($id); 457 $params = $input->get("params",null,"ARRAY"); 458 459 if(!empty($params)){ 460 $params = new Registry($params); 461 }else{ 462 $carrier = Table::getInstance('carrier', 'shop')->load($id); 463 $params = $carrier->params; 464 } 465 466 458 467 $view = view::getInstance("shipping", "shop"); 459 $view->assign('params', $ carrier->params);468 $view->assign('params', $params); 460 469 $view->standart_shipping_params(); 461 470 } -
orillacart/trunk/com_shop/tables/carrier.php
r1113566 r1119675 46 46 if (empty($this->name)) { 47 47 Factory::getComponent('shop')->addError(__('Enter carrier label', 'com_shop')); 48 49 if ($this->class == null){ 50 $this->class = 'standart_shipping'; 51 } 52 48 53 return false; 49 54 } … … 57 62 $this->params = $this->params->toString(); 58 63 } 59 return parent::store(); 64 65 $res = parent::store(); 66 67 if ($this->class == null){ 68 $this->class = 'standart_shipping'; 69 } 70 71 return $res; 60 72 } 61 73 -
orillacart/trunk/core/input/input.php
r1113566 r1119675 95 95 public function offsetSet($offset, $value) { 96 96 if (is_null($offset)) { 97 $this-> container[] = $value;97 $this->data[] = $value; 98 98 } else { 99 $this-> container[$offset] = $value;99 $this->data[$offset] = $value; 100 100 } 101 101 } -
orillacart/trunk/helpers/filterinput.php
r1113566 r1119675 947 947 { 948 948 // Entity decode 949 $trans_tbl = get_html_translation_table(HTML_ENTITIES, ENT_COMPAT, 'ISO-8859-1'); 950 949 950 if(version_compare(phpversion(),"5.3.4","ge")){ 951 952 $trans_tbl = get_html_translation_table(HTML_ENTITIES, ENT_COMPAT, 'ISO-8859-1'); 953 }else{ 954 $trans_tbl = get_html_translation_table(HTML_ENTITIES, ENT_COMPAT); 955 } 951 956 foreach ($trans_tbl as $k => $v) 952 957 { -
orillacart/trunk/main.php
r1117243 r1119675 3 3 /* 4 4 Plugin Name: OrillaCart 5 Version: 1.3. 75 Version: 1.3.8 6 6 Description: ecommerce solution for WordPress 7 7 Plugin URI: http://orillacart.com … … 17 17 define("ORILLA_FRAMEWORK_BASE", realpath(dirname(__FILE__))); 18 18 define("ORILLA_FRAMEWORK_CORE", realpath(dirname(__FILE__) . DS . "core")); 19 define("ORILLACART_VERSION", "1.3. 7");19 define("ORILLACART_VERSION", "1.3.8"); 20 20 21 21 define("ORILLA_FRAMEWORK_PUBLIC_KEY", realpath(dirname(__FILE__) . DS . "core" . DS . "public_key" . DS . "orillacart.pub"));
Note: See TracChangeset
for help on using the changeset viewer.