Plugin Directory

Changeset 1119675


Ignore:
Timestamp:
03/24/2015 02:09:01 PM (11 years ago)
Author:
orillacart
Message:

Core, shipping in frontend bug fixes and various small improvements.

Location:
orillacart/trunk
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • orillacart/trunk/com_shop/admin/controllers/products.php

    r1113566 r1119675  
    264264
    265265        if ($post->post_parent) {
    266             if (wp_delete_post($product, $true) !== false) {
     266            if (wp_delete_post($product, true) !== false) {
    267267                $ok = true;
    268268            }
  • orillacart/trunk/com_shop/admin/controllers/shipping.php

    r1113566 r1119675  
    3131
    3232        $assigned = $model->get_used_classes();
     33   
    3334        if ($row->class != 'standart_shipping') {
    3435            $key = array_search($row->class, $assigned);
     
    7778
    7879        if ($row->class != 'standart_shipping') {
     80           
    7981            $key = array_search($row->class, $assigned);
    8082
     
    9597                if ($class instanceof standart_shipping && !in_array($class->get_class_name(), $assigned)) {
    9698                    $class_names[] = $class->get_class_name();
     99                   
     100                   
    97101                    if (strtolower($row->class) == strtolower(get_class($class))) {
    98                         ob_start();
     102                       
     103                   
     104                        ob_start();
    99105                        $class->print_options($row->pk());
    100106                        $class_options = ob_get_contents();
     
    106112            $this->view->assign('class_names', $class_names);
    107113            $this->view->assign('class_options', $class_options);
     114           
    108115            return parent::display('add_carrier');
    109116        } else {
  • orillacart/trunk/com_shop/admin/views/product/templates/variations_manager.tpl.php

    r1113566 r1119675  
    11<table class="wp-list-table widefat fixed">
    22    <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>
    55    </tr>
    66
  • orillacart/trunk/com_shop/assets/shop-admin-styles.css

    r1113566 r1119675  
    55
    66.btn-save-variation{
    7     margin: 10px 0;
     7    margin: 10px 0!important;
    88}
    99
  • orillacart/trunk/com_shop/front/controllers/cart.php

    r1114229 r1119675  
    294294            parse_str($input->get('post_data', "", "STRING"), $post);
    295295            $input->set($post);
     296            $input->post->set($post);
    296297        }
    297298
     
    414415
    415416        $id = $input->get('country', null, "STRING");
     417
     418       
     419       
    416420        $type = strtolower($input->get('type', 'billing', "WORD"));
    417421        if (!in_array($type, array('billing', 'shipping'))) {
  • orillacart/trunk/com_shop/helpers/fields.php

    r1113566 r1119675  
    386386            $rows = $db->loadObjectList();
    387387
    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            }
    392397
    393398
     
    428433            if (!empty($rows)) {
    429434
    430 
     435                 $this->_options[null] = "";
    431436                foreach ((array) $rows as $row) {
    432437                    $this->_options[$row->state_2_code] = $row->state_name;
  • orillacart/trunk/com_shop/methods/paypal.php

    r1113580 r1119675  
    99  Description: paypal standart form based
    1010  Author: orillacart.com Team
    11   Version: 1.0
     11  Version: 1.1
    1212  Author URI: http://orillacart.com/
    1313 */
     
    118118                        'zip' => $order_r->get("billing_zipcode", ""),
    119119                        'country' => $order_r->get("billing_country", ""),
    120                         'email' => $order_r->get("billing_email", "")
     120                        'email' => $order_r->get("billing_email", ""),
     121                        'bn' => 'OrillaCart_SP'
    121122                            ), $phone_args
    122123                    );
  • orillacart/trunk/com_shop/methods/standart_shipping.php

    r1113566 r1119675  
    455455        $id = $input->get('method_id', 0, "INT");
    456456
    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     
    458467        $view = view::getInstance("shipping", "shop");
    459         $view->assign('params', $carrier->params);
     468        $view->assign('params', $params);
    460469        $view->standart_shipping_params();
    461470    }
  • orillacart/trunk/com_shop/tables/carrier.php

    r1113566 r1119675  
    4646        if (empty($this->name)) {
    4747            Factory::getComponent('shop')->addError(__('Enter carrier label', 'com_shop'));
     48           
     49            if ($this->class == null){
     50                $this->class =  'standart_shipping';
     51            }
     52           
    4853            return false;
    4954        }
     
    5762            $this->params = $this->params->toString();
    5863        }
    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;
    6072    }
    6173
  • orillacart/trunk/core/input/input.php

    r1113566 r1119675  
    9595    public function offsetSet($offset, $value) {
    9696        if (is_null($offset)) {
    97             $this->container[] = $value;
     97            $this->data[] = $value;
    9898        } else {
    99             $this->container[$offset] = $value;
     99            $this->data[$offset] = $value;
    100100        }
    101101    }
  • orillacart/trunk/helpers/filterinput.php

    r1113566 r1119675  
    947947        {
    948948            // 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            }
    951956            foreach ($trans_tbl as $k => $v)
    952957            {
  • orillacart/trunk/main.php

    r1117243 r1119675  
    33/*
    44  Plugin Name: OrillaCart
    5   Version: 1.3.7
     5  Version: 1.3.8
    66  Description: ecommerce solution for WordPress
    77  Plugin URI: http://orillacart.com
     
    1717define("ORILLA_FRAMEWORK_BASE", realpath(dirname(__FILE__)));
    1818define("ORILLA_FRAMEWORK_CORE", realpath(dirname(__FILE__) . DS . "core"));
    19 define("ORILLACART_VERSION", "1.3.7");
     19define("ORILLACART_VERSION", "1.3.8");
    2020
    2121define("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.