Plugin Directory

Changeset 3377906


Ignore:
Timestamp:
10/14/2025 07:05:49 AM (6 months ago)
Author:
openpos
Message:

update vesrion 3

Location:
wpos-lite-version/tags/3.1
Files:
934 added
8 edited

Legend:

Unmodified
Added
Removed
  • wpos-lite-version/tags/3.1/composer.json

    r3377296 r3377906  
    22    "require": {
    33        "nesbot/carbon": "^2.64.1",
    4         "phpoffice/phpspreadsheet": "^1.8",
    54        "tecnickcom/tcpdf": "^6.7"
    65    },
  • wpos-lite-version/tags/3.1/includes/Core.php

    r3377296 r3377906  
    4949            $locale = determine_locale();
    5050            unload_textdomain( 'openpos', true );
    51             load_textdomain( 'openpos', trailingslashit(OPENPOS_DIR).'languages/openpos-' . $locale . '.mo' );
    52             load_plugin_textdomain( 'openpos', false,  trailingslashit(OPENPOS_DIR).'languages/' );
     51            load_textdomain( 'openpos', trailingslashit(WPOSL_DIR).'languages/openpos-' . $locale . '.mo' );
     52            load_plugin_textdomain( 'openpos', false,  trailingslashit(WPOSL_DIR).'languages/' );
    5353        //end
    5454    }
     
    104104    }
    105105    public function getPluginInfo(){
    106         $this->plugin_info = get_plugin_data(OPENPOS_DIR.'woocommerce-openpos.php');
     106        $this->plugin_info = get_plugin_data(WPOSL_DIR.'index.php');
    107107        return $this->plugin_info;
    108108    }
     
    18561856
    18571857
    1858         $file_path = rtrim(OPENPOS_DIR,'/').'/default/'.$file_name;
     1858        $file_path = rtrim(WPOSL_DIR,'/').'/default/'.$file_name;
    18591859
    18601860        $theme_file_path = rtrim(get_stylesheet_directory(),'/').'/woocommerce-openpos/'.$file_name;
     
    18661866            {
    18671867                $file_name = 'receipt_incl_tax_template_body.txt';
    1868                 $file_path = rtrim(OPENPOS_DIR,'/').'/default/'.$file_name;
     1868                $file_path = rtrim(WPOSL_DIR,'/').'/default/'.$file_name;
    18691869            }
    18701870        }
    18711871        $_gift_file_name = 'receipt_gift_template_body.txt';
    1872         $gift_file_path = rtrim(OPENPOS_DIR,'/').'/default/'.$_gift_file_name;
     1872        $gift_file_path = rtrim(WPOSL_DIR,'/').'/default/'.$_gift_file_name;
    18731873
    18741874        $gift_theme_file_path = rtrim(get_stylesheet_directory(),'/').'/woocommerce-openpos/'.$_gift_file_name;
     
    20392039    public function getReceiptFontCss(){
    20402040        $font_css = array();
    2041         $font_css['receipt_font'] = OPENPOS_URL.'/pos/font.css';
     2041        $font_css['receipt_font'] = WPOSL_URL.'/pos/font.css';
    20422042        return $font_css;
    20432043    }
     
    21612161    function get_pos_url($sub_str = ''){
    21622162     
    2163         $pos_url = apply_filters('op_pos_url',OPENPOS_URL.'/pos/');
     2163        $pos_url = apply_filters('op_pos_url',WPOSL_URL.'/pos/');
    21642164        if($sub_str)
    21652165        {
     
    21722172    function get_kitchen_url($wareshouse_id = 0,$base = false){
    21732173     
    2174         $pos_url = apply_filters('op_kitchen_url',OPENPOS_URL.'/kitchen/');
     2174        $pos_url = apply_filters('op_kitchen_url',WPOSL_URL.'/kitchen/');
    21752175       
    21762176        if(!$base)
     
    21902190    function get_bill_url($register_id = 0,$base = false){
    21912191     
    2192         $pos_url = apply_filters('op_bill_url',OPENPOS_URL.'/bill/');
     2192        $pos_url = apply_filters('op_bill_url',WPOSL_URL.'/bill/');
    21932193       
    21942194        if(!$base)
     
    22082208    }
    22092209    function get_customer_url($params = array()){
    2210         $customer_url = apply_filters('op_customer_url',OPENPOS_URL.'/customer/');
     2210        $customer_url = apply_filters('op_customer_url',WPOSL_URL.'/customer/');
    22112211        if(!empty($params))
    22122212        {
     
    22632263    }
    22642264    function getTemplatePath($file_name){
    2265         #$templath_path = OPENPOS_DIR.'templates/emails/';
    22662265        $templath_dir = 'woocommerce-openpos/';
    22672266        $check_dirs = array(
     
    22702269            trailingslashit( get_stylesheet_directory() ),
    22712270            trailingslashit( get_template_directory() ),
    2272             trailingslashit( OPENPOS_DIR ) . 'templates/',
     2271            trailingslashit( WPOSL_DIR ) . 'templates/',
    22732272        );
    22742273        foreach ( $check_dirs as $dir ) {
  • wpos-lite-version/tags/3.1/includes/api/Api.php

    r3377296 r3377906  
    9696                if($session_data)
    9797                {
     98                    global $op_session_data;
     99                    $op_session_data = $session_data;
    98100                    $this->session_data = $session_data;
    99101                    return true;
  • wpos-lite-version/tags/3.1/includes/api/Auth.php

    r3377296 r3377906  
    282282                }
    283283               
    284                 $avatar = rtrim(OPENPOS_URL,'/').'/assets/images/default_avatar.png';
     284                $avatar = rtrim(WPOSL_URL,'/').'/assets/images/default_avatar.png';
    285285
    286286                $avatar_args = get_avatar_data( $id);
  • wpos-lite-version/tags/3.1/includes/api/Order.php

    r3377296 r3377906  
    488488            $result = array('status' => 0,'data' => array(),'message' => '');
    489489            try{
     490                global $_op_warehouse_id;
    490491                $use_hpos = $this->core_class->enable_hpos();
    491492                $session_data = $this->session_data;
     
    666667                $use_hpos = $this->core_class->enable_hpos();
    667668                $session_data = $this->session_data;
     669                global $_op_warehouse_id;
    668670                $_op_warehouse_id = isset($session_data['login_warehouse_id']) ? $session_data['login_warehouse_id'] : 0;
    669671                $order_data_json = $request->get_param('order');//stripslashes($_REQUEST['order']);
     
    15451547            );
    15461548            try{
     1549                global $_op_warehouse_id;
    15471550                $session_data = $this->session_data;
    15481551                $use_hpos = $this->core_class->enable_hpos();
     
    16821685            );
    16831686            try{
     1687                global $_op_warehouse_id;
    16841688                $session_data = $this->session_data;
    16851689                $login_warehouse_id = isset($session_data['login_warehouse_id']) ? $session_data['login_warehouse_id'] : 0;
  • wpos-lite-version/tags/3.1/includes/api/Product.php

    r3377296 r3377906  
    246246                $online_db_version = $request->get_param( 'online_db_version' ) ? $request->get_param( 'online_db_version' ) : 0;
    247247                $page = $request->get_param( 'page' ) ? $request->get_param( 'page' ) : 1;
     248                if(!$page || !is_numeric($page))
     249                {
     250                    $page = 1;
     251                }
    248252                $database_version = get_option('_openpos_product_version_'.$login_warehouse_id,0);
    249253                if($local_db_version > 0)
  • wpos-lite-version/tags/3.1/index.php

    r3377296 r3377906  
    66Author: anhvnit@gmail.com
    77Author URI: http://openswatch.com/
    8 Version: 3.1
     8Version: 3.0
    99WC requires at least: 2.6
    1010WC tested up to: 4.8.0
  • wpos-lite-version/tags/3.1/vendor/composer/installed.php

    r3377668 r3377906  
    66        'install_path' => __DIR__ . '/../../',
    77        'aliases' => array(),
    8         'reference' => '7fee99a5918e32fc188bac15f22f6cc0005d32b8',
     8        'reference' => '774524facbdaa483560113749a13f41f23905a84',
    99        'name' => '__root__',
    1010        'dev' => true,
     
    1717            'install_path' => __DIR__ . '/../../',
    1818            'aliases' => array(),
    19             'reference' => '7fee99a5918e32fc188bac15f22f6cc0005d32b8',
     19            'reference' => '774524facbdaa483560113749a13f41f23905a84',
    2020            'dev_requirement' => false,
    2121        ),
Note: See TracChangeset for help on using the changeset viewer.