Forum Replies Created

Viewing 15 replies - 1 through 15 (of 17 total)
  • Hi Stuart Duff
    Thank you very much. according to your code I learned a very useful way to select a button on the basis of its value (button text).
    regards

    Thread Starter nmm4829

    (@nmm4829)

    I got it
    Thanks for your guides
    best regards

    Thread Starter nmm4829

    (@nmm4829)

    Hi Mr Tobias,
    thank you very much for your reply.
    i had a look at model-table.php file and there was about 1322 lines of code and many occurrences of array.
    Since I’m not a php expert now, I would be grateful if you could guide me in which section of model-table.php i must make required changes so that i start my efforts.

    Regards

    Thread Starter nmm4829

    (@nmm4829)

    sorry but be sure none of theme are relevant to this issue.
    things such as name of the database and tables and their size , number of posts, theme information and similar things which I’ve omitted, are not related to my problem.

    • This reply was modified 6 years ago by nmm4829.
    Thread Starter nmm4829

    (@nmm4829)

    Hi thanks. this is the parts of the report which may be useful :

    `
    ### WordPress Environment ###

    WC Version: 3.5.1
    Log Directory Writable: ?
    WP Version: 4.9.8
    WP Multisite: –
    WP Memory Limit: 280 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: fa_IR
    External object cache: –

    ### Server Environment ###

    Server Info: LiteSpeed
    PHP Version: 7.0.9 – php 7.2 is recommended
    PHP Post Max Size: 100 MB
    PHP Time Limit: 60
    PHP Max Input Vars: 1000
    cURL Version: 7.60.0
    OpenSSL/1.0.1e

    SUHOSIN Installed: –
    MySQL Version: 5.6.41
    Max Upload Size: 100 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ? wp_remote_post() 403 unsuccessful. please contact your web service provider
    Remote Get: ? wp_remote_get() 200 unsuccessful. please contact your web service provider

    ### Database ###

    WC Database Version: 3.5.1
    WC Database Prefix: pr_
    ### Post Type Counts ###

    acf: 1
    acf-field: 3
    acf-field-group: 1
    attachment: 700
    custom_css: 1
    ditty_news_ticker: 2
    dokan_announcement: 1
    footer: 1
    forum: 1
    instructor: 3
    nav_menu_item: 31
    oembed_cache: 4
    page: 50
    post: 44
    product: 40
    product_variation: 458
    revision: 135
    service: 4
    shop_coupon: 5
    shop_order: 273
    sp_tfree_shortcodes: 1
    spt_testimonial: 7
    testimonial: 11
    vc_grid_item: 1
    wd_popup: 1
    wpm-testimonial: 1
    yith-wcbm-badge: 2
    ywtm_tab: 1

    ### Security ###

    Secure connection (HTTPS): ?
    Hide errors from visitors: ?

    ### Active Plugins (28) ###
    Custom Related Products for WooCommerce: ???? Scott Nelle – 1.3 – ?? ???? ???? ??????? ??? ???? ???

    ??????? ?????: ???? ??????? ????? – 3.5.0 – ?? ???? ???? ??????? ??? ???? ???
    Woo Checkout Field Editor Pro: ???? ThemeHiGH – 1.2.9 – ?? ???? ???? ??????? ??? ???? ???
    WooCommerce Show Attributes: ???? Isabel Castillo – 1.6.4 – ?? ???? ???? ??????? ??? ???? ???
    ???????: ???? ???????? –
    WPB WooCommerce Show Sales Numbers: ???? wpbean – 1.0.1 – ?? ???? ???? ??????? ??? ???? ???

    ### Settings ###

    API Enabled: ?
    Force SSL: ?
    Currency: IRT (?????)
    Currency Position: right_space
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 0
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)

    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)

    ### Theme ###

    Name: kuteshop child
    Version: 1.0.0
    Author URL:
    Child Theme: ?
    Parent Theme Name: Kuteshop
    Parent Theme Version: 3.1.9
    Parent Theme Author URL: https://kutethemes.com/
    WooCommerce Support: ?

    ### Templates ###

    Overrides: kuteshop-child/woocommerce/content-product.php ???? – ????? ????? ??? . ???? ???? ??? 3.4.0
    kuteshop-child/woocommerce/emails/customer-completed-order.php
    kuteshop-child/woocommerce/emails/email-downloads.php ???? – ????? ????? ??? . ???? ???? ??? 3.4.0
    kuteshop/woo-templates/quantity-input.php
    kuteshop-child/woocommerce/myaccount/dashboard.php
    kuteshop-child/woocommerce/order/order-downloads.php
    kuteshop-child/woocommerce/single-product-reviews.php

    Thread Starter nmm4829

    (@nmm4829)

    ok thanks a lot

    Thread Starter nmm4829

    (@nmm4829)

    if ( ! defined( 'ABSPATH' ) ) {
    	exit;
    } // No direct access allowed
    
    final class WP_Parsidate {
    	/**
    	 * @var WP_Parsidate Class instance
    	 */
    	public static $instance = null;
    
    	private function __construct() {
    		$this->define_const();
    		$this->setup_vars();
    		$this->include_files();
    		add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'parsi_settings_link' ) );
    		add_action( 'widgets_init', array( $this, 'register_widget' ) );
    		add_action( 'wp_dashboard_setup', 'wpp_add_dashboard_widgets' );
    	}
    
    	/**
    	 * Sets up constants for plugin
    	 *
    	 * @since           2.0
    	 * @return          void
    	 */
    	private function define_const() {
    		if ( ! defined( 'WP_PARSI_ROOT' ) ) {
    			define( 'WP_PARSI_ROOT', __FILE__ );
    		}
    
    		if ( ! defined( 'WP_PARSI_DIR' ) ) {
    			define( 'WP_PARSI_DIR', plugin_dir_path( WP_PARSI_ROOT ) );
    		}
    
    		if ( ! defined( 'WP_PARSI_URL' ) ) {
    			define( 'WP_PARSI_URL', plugin_dir_url( WP_PARSI_ROOT ) );
    		}
    
    		if ( ! defined( 'WP_PARSI_VER' ) ) {
    			define( 'WP_PARSI_VER', '2.2' );
    		}
    	}
    
    	/**
    	 * Sets up global variables
    	 *
    	 * @since           2.0
    	 * @return          void
    	 */
    	private function setup_vars() {
    		global $persian_month_names;
    		$persian_month_names = array(
    			'',
    			'???????',
    			'????????',
    			'?????',
    			'???',
    			'?????',
    			'??????',
    			'???',
    			'????',
    			'???',
    			'??',
    			'????',
    			'?????'
    		);
    	}
    
    	/**
    	 * Includes files for plugin
    	 *
    	 * @since          2.0
    	 * @return         void
    	 */
    	public function include_files() {
    		require_once( WP_PARSI_DIR . 'includes/settings.php' );
    		global $wpp_settings;
    		$wpp_settings = wp_parsi_get_settings();
    
    		$files = array(
    			'parsidate',
    			'general',
    			'fixes-archive',
    			'fixes-permalinks',
    			'fixes-dates',
    			'fixes-misc',
    			'admin/styles-fix',
    			'admin/lists-fix',
    			'admin/widgets',
    			'fixes-calendar',
    			'fixes-archives',
    			'plugins/woocommerce',
    			'plugins/edd',
    			'widget/widget_archive',
    			'widget/widget_calendar'
    		);
    
    		foreach ( $files as $file ) {
    			require_once( WP_PARSI_DIR . 'includes/' . $file . '.php' );
    		}
    
    		if ( get_locale() == 'fa_IR' ) {
    			load_textdomain( 'wp-parsidate', WP_PARSI_DIR . 'languages/fa_IR.mo' );
    		}
    	}
    
    	/**
    	 * Returns an instance of WP_Parsidate class, makes instance if not exists
    	 *
    	 * @since           2.0
    	 * @return          WP_Parsidate Instance of WP_Parsidate
    	 */
    	public static function get_instance() {
    		if ( self::$instance == null ) {
    			self::$instance = new WP_Parsidate();
    		}
    
    		return self::$instance;
    	}
    
    	/**
    	 * Add Setting Link To Install Plugin
    	 *
    	 * @param           array $links
    	 *
    	 * @return          array
    	 */
    	public static function parsi_settings_link( $links ) {
    		$settings_link = array( '<a href="' . menu_page_url( 'wp-parsi-settings', false ) . '">' . __( 'settings', 'wp-parsidate' ) . '</a>' );
    
    		return array_merge( $links, $settings_link );
    	}
    
    	/**
    	 * Register Plugin Widgets
    	 *
    	 * @since           2.0
    	 * @return          boolean
    	 */
    	public function register_widget() {
    		register_widget( 'parsidate_archive' );
    		register_widget( 'parsidate_calendar' );
    
    		return true;
    	}
    }
    
    return WP_Parsidate::get_instance();
    Thread Starter nmm4829

    (@nmm4829)

    Hi thanks.
    unfortunately the site is not publicly accessible so i can’t share a link to it.

    i am using latest version of Kutshop theme and some plugins such as WPBakery Page Builder and woocommerce and etc.
    but non of plugins are related to sites’ language.

    i am using parsi-date plugin as language plugin.

    would you please guide me what to check in wp-parsidate.php file ?

    i remind that in WordPress dashboard environment, in plugin settings page, i have disabled all settings which convert English digits to Persian digits, but no effect.

    • This reply was modified 6 years, 1 month ago by nmm4829.
    • This reply was modified 6 years, 1 month ago by nmm4829.
    Thread Starter nmm4829

    (@nmm4829)

    Hi Shane
    thanks a lot

    Thread Starter nmm4829

    (@nmm4829)

    Hi Steven
    thanks for your answer
    Yes i use WooCommerce but i don’t think the issue be related to WooCommerce since this problem exists all over my website for example in Posts (which is not related to wWooCommerce.
    i thoughtPast maybe it be related to Visual composer but i checks the posts (article) which i hadn’t created them using visual composer and problem exists about those posts as well.
    i believe this problem occurred after updating WordPress to latest version

    Thread Starter nmm4829

    (@nmm4829)

    Hi John
    Great, thank you very much.

    Thread Starter nmm4829

    (@nmm4829)

    sorry you are right
    thanks

    Thread Starter nmm4829

    (@nmm4829)

    i found that the problem was related to my theme’s language plugin, which didn’t recognize my language’s date format. so every time i need, i temporary disable that plugin.

    thank you very much

    Thread Starter nmm4829

    (@nmm4829)

    thank you very much, but when i click on it, noting happens !!!

    Thread Starter nmm4829

    (@nmm4829)

    Great explanation.

    you are right.

    thank you very much

    best wishes

Viewing 15 replies - 1 through 15 (of 17 total)