Plugin Directory

Changeset 3004989


Ignore:
Timestamp:
12/04/2023 09:00:30 AM (2 years ago)
Author:
themescoder
Message:

Minor Fix

Location:
tc-ecommerce
Files:
972 added
4 edited

Legend:

Unmodified
Added
Removed
  • tc-ecommerce/trunk/functions/tc_app_banners_setting.php

    r2714340 r3004989  
    176176        <div class="inside">
    177177          <select class="form-control" name="categories_id" id="categories_id">
    178             <?php $args = array('taxonomy' => 'product_cat', 'orderby' => 'name', 'order' => 'ASC', 'show_count' => 0, 'pad_counts' => 0, 'hierarchical' => 1,
    179                                     'title_li' => '', 'hide_empty' => 1, 'parent' => 0);
    180                             $all_main_categories = get_categories( $args );     
    181                             foreach ($all_main_categories as $cat) { $category_id = $cat->term_id;
    182                               $args2 = array('taxonomy' => 'product_cat','parent' => $category_id,'hierarchical' => 1, 'orderby' => 'name', 'order' => 'ASC','hide_empty' => 1);
    183                               $all_sub_cats   = get_categories( $args2 );
    184                               foreach($all_sub_cats as $sub_cate) { ?>
    185             <option <?php if(isset($banners_url) && $banners_url == $sub_cate->term_id){ ?> selected <?php } ?> value="<?php echo esc_attr($sub_cate->term_id); ?>"><?php echo esc_attr($sub_cate->cat_name); ?> </option>
    186             <?php } } ?>
     178            <?php $args = array('taxonomy' => 'product_cat', 'orderby' => 'name', 'order' => 'ASC', 'show_count' => 0, 'pad_counts' => 0, 'hierarchical' => 1,'title_li' => '', 'hide_empty' => 1, 'parent' => 0);
     179                      $all_main_categories = get_categories( $args );       
     180                      foreach ($all_main_categories as $cat) { $category_id = $cat->term_id; ?>
     181                      <option <?php if(isset($banners_url) && $banners_url == $cat->term_id){ ?> selected <?php } ?> value="<?php echo esc_attr($cat->term_id); ?>"><?php echo esc_attr($cat->cat_name); ?> </option>
     182                      <?php if($category_id && $category_id >= 1){
     183                        $args2 = array('taxonomy' => 'product_cat','parent' => $category_id,'hierarchical' => 1, 'orderby' => 'name', 'order' => 'ASC','hide_empty' => 1);
     184                        $all_sub_cats   = get_categories( $args2 );
     185                        foreach($all_sub_cats as $sub_cate) { ?>
     186                        <option <?php if(isset($banners_url) && $banners_url == $sub_cate->term_id){ ?> selected <?php } ?> value="<?php echo esc_attr($sub_cate->term_id); ?>">--<?php echo esc_attr($sub_cate->cat_name); ?> </option>
     187            <?php }} } ?>
    187188          </select>
    188189          <br />
     
    194195          <select class="form-control" name="products_id" id="products_id">
    195196            <?php
    196             $loop_products = new WP_Query( array( 'post_type' => product, 'posts_per_page' => -1 ) );
     197            $loop_products = new WP_Query( array( 'post_type' => 'product', 'posts_per_page' => -1 ) );
    197198                while ( $loop_products->have_posts() ) : $loop_products->the_post(); $theid = get_the_ID(); $thetitle = get_the_title();?>
    198199            <option <?php if(isset($banners_url) && $banners_url == $theid){ ?> selected <?php } ?> value="<?php echo esc_attr($theid); ?>"><?php echo esc_attr($thetitle); ?></option>
  • tc-ecommerce/trunk/functions/tc_app_setting_config.php

    r2960564 r3004989  
    88        'opt_name'             => $opt_name_tc_ecommerce_app,
    99        'display_name'         => 'TC Ecommerce',
    10         'display_version'      => '1.3.3',
     10        'display_version'      => '1.3.4',
    1111        'menu_type'            => 'menu',
    1212        'allow_sub_menu'       => true,
  • tc-ecommerce/trunk/readme.txt

    r2960609 r3004989  
    22Tags: app builder, woocommerce app, Ionic app, flutter app, mobile builder
    33Requires at least: 5.3
    4 Tested up to: 6.3.1
    5 Stable tag: 1.3.3
     4Tested up to: 6.4.1
     5Stable tag: 1.3.4
    66License: GPLv2 or later
    77License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    127127* Tested with latest WP version
    128128* Minor Fix
     129
     130= 1.3.4 =
     131* Tested with latest WP version
     132* Minor Fix
  • tc-ecommerce/trunk/tc-ecommerce.php

    r2960564 r3004989  
    44 * Plugin URI: https://themes-coder.com/
    55 * Description: A wordpress Plugin for mobile app solution for android and iOS platform with WordPress WooCommerce as backend.
    6  * Version: 1.3.3
     6 * Version: 1.3.4
    77 * Author: ThemesCoder
    88 * Author URI: https://themes-coder.com
Note: See TracChangeset for help on using the changeset viewer.