Ido Friedlander
Forum Replies Created
-
Forum: Plugins
In reply to: [Mirror Zap for WooCommerce] priceIt doesn’t matter, this action-hook will override the global setting.
Forum: Plugins
In reply to: [Mirror Zap for WooCommerce] priceTry using this action-hook on your theme’s functions.php file
add_action('wc_zap_mirror_xml_node', function (&$node, $product) { $node->PRICE = $product->get_meta('_wc_zap_product_price') ?: $product->get_price(); }, 20, 2);
Forum: Plugins
In reply to: [Woo Pelecard Gateway] subscription option through pelecard with this pluginYes, there is.
Please contact Pelecard support.Stop using this filter-hook and use managed default attributes.
I’ve fixed the issue you’re referring to.
You can get the updated version from the official repo: https://github.com/idofri/woo-zap-mirror
I’ll release A new version ASAP.Forum: Plugins
In reply to: [Woo Pelecard Gateway] Payment details as order metaBy default, only transaction data is being stored as order metadata.
Payment details will be saved as user-tokens only if the user is logged-in and checked that they’re willing to save the payment-method to their account.Shipping costs are not managed in term of a single product.
WooCommerce only let you use shipping classification per product.
(Unless you use some other 3rd-party plugin that i’m not aware of)Forum: Plugins
In reply to: [Mirror Zap for WooCommerce] Override priceThat should do the trick:
add_filter( 'wc_zap_mirror_wp_query', function( $args ) { // Include product variations $args['post_type'] = [ 'product', 'product_variation' ]; // Exclude the main variable product $args['tax_query'][] = [ 'taxonomy' => 'product_type', 'field' => 'name', 'terms' => 'variable', 'include_children' => false, 'operator' => 'NOT IN' ]; // Include only in-stock products $args['meta_query'] = [ 'relation' => 'AND', [ 'key' => '_stock_status', 'value' => 'instock', 'compare' => '=' ], $args['meta_query'] ]; // Quick fix: variations are not assigned to product categories add_filter( 'posts_join', function( $join, $query ) { global $wpdb; $table = $query->tax_query->primary_table; $column = $query->tax_query->primary_id_column; $search = "{$table}.{$column} = {$wpdb->term_relationships}.object_id"; $replace = "{$search} OR {$table}.post_parent = {$wpdb->term_relationships}.object_id"; return str_replace($search, $replace, $join); }, 10, 2 ); return $args; } );
Forum: Plugins
In reply to: [Mirror Zap for WooCommerce] Override priceTry using the following filter-hook, it’ll remove the main variable product and display it’s variations instead:
add_filter( 'wc_zap_mirror_wp_query', function( $args ) { // Include product variations $args['post_type'] = [ 'product', 'product_variation' ]; // Exclude the main variable product $args['tax_query'][] = [ 'taxonomy' => 'product_type', 'field' => 'name', 'terms' => 'variable', 'include_children' => false, 'operator' => 'NOT IN' ]; // Quick fix: variations are not assigned to product categories add_filter( 'posts_join', function( $join, $query ) { global $wpdb; $table = $query->tax_query->primary_table; $column = $query->tax_query->primary_id_column; $search = "{$table}.{$column} = {$wpdb->term_relationships}.object_id"; $replace = "{$search} OR {$table}.post_parent = {$wpdb->term_relationships}.object_id"; return str_replace($search, $replace, $join); }, 10, 2 ); return $args; } );
Just paste in your theme’s functions.php file.
It’s there for over A year now.
Forum: Plugins
In reply to: [Mirror Zap for WooCommerce] XML URLForum: Plugins
In reply to: [Mirror Zap for WooCommerce] ?? ???? ?????You should select the mirror-page under WooCommerce => Settings => Zap Mirror Site
It could be any page at all, no further settings are required after that.Forum: Plugins
In reply to: [Mirror Zap for WooCommerce] Missing XML tags@mullibahr Yes, as I said – each category has it’s own XML document. just click on the category and you’ll see it.
Forum: Plugins
In reply to: [Mirror Zap for WooCommerce] ???? ?? ??? ?????? ??? ????@mullibahr You can set default values, globally, that’ll be applied to each product that doesn’t has it’s own values.
Forum: Plugins
In reply to: [Mirror Zap for WooCommerce] Missing XML tags@mullibahr There is an XML document for each of the categories.