Visual Composer Data Source?

I found this in the raw category template in the woocommerce files. <?php /** * The template for displaying product category thumbnails within loops * * This template can be overridden by copying it to yourtheme/woocommerce/content-product_cat.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will … Read more

Exclude specific product tags from related products in WooCommerce 3+ [closed]

The first parameter of the filter gets its value from function wc_get_product_term_ids: http://hookr.io/filters/woocommerce_get_related_product_tag_terms/ This function returns an array of term_ids instead of objects: https://docs.woocommerce.com/wc-apidocs/source-function-wc_get_product_term_ids.html#860-871 So you can match the term id values directly or you can use get_term_by to get one of the term objects in the comparison. e.g. getting the term on the right … Read more

Change WooCommerce Checkout Manager Datepicker to Jalali

By looking at the plugin code, you have different options: Date picker language is being selected based on the following code. $current_language = ( defined( ‘ICL_LANGUAGE_CODE’ ) ? ICL_LANGUAGE_CODE : apply_filters( ‘wooccm_language_code’, false ) ); // DatePicker wp_enqueue_script( ‘jquery-ui-datepicker’, array( ‘jquery’ ) ); if( defined( ‘ICL_LANGUAGE_CODE’ ) || !empty( $current_language ) ) { // Check … Read more

WooCommerce category display in custom page

You have to create a custom template for that. The template have to clone the content of taxonomy-product_cat.php, which thankfully is basically a single line. Your template will be something like this: <?php /** * Template Name: YOUR TEMPLATE NAME HERE */ // Set the parameters of your query $args = array( ‘post_type’ => ‘product’, … Read more

Need help saving input fields for Security Deposit plugin in WC Vendors page

You will need to add a custom field to the product-edit form, saving is done automatically if you correctly format your input id. WCVendors_Pro_Form_Helper::input( array( ‘type’ => ‘checkbox’, ‘post_id’ => $object_id, ‘id’ => ‘wcv_custom_product__wc_security_deposits_enable’, ‘label’ => __( ‘Ingredients’, ‘wcvendors-pro’ ), ‘placeholder’ => __( ‘Ingredients’, ‘wcvendors-pro’ ), ‘desc_tip’ => ‘true’, ‘description’ => __( ‘Enable this to … Read more