Ido Friedlander
Forum Replies Created
-
Forum: Plugins
In reply to: [Mirror Zap for WooCommerce] בעיות עם עמוד אתר מראהJust create any page and select it, It’ll then become your mirror site (regardless of what is was supposed to be).
Forum: Plugins
In reply to: [Mirror Zap for WooCommerce] בעיות עם עמוד אתר מראהAnd you can’t see this settings page?
https://imgur.com/FLw0kLG- This reply was modified 8 years, 6 months ago by Ido Friedlander.
Forum: Plugins
In reply to: [Mirror Zap for WooCommerce] בעיות עם עמוד אתר מראהPlease provide the following:
1) Your website URL.
2) The WooCommerce version installed on your website.
Look me up on facebook if you wanna keep this private.Forum: Plugins
In reply to: [Mirror Zap for WooCommerce] סטאפ ראשוניHiding categories will – hide categories
Hiding products will – hide products.
Kinda self-explanatory.Mirror-site is A mirror of your site. you should ask yourself – Can A product appear on multiple categories on my website? The answer is Yes, it can. Why should the mirror-site behavior be any different?
As for your final question, You could alter the products query to accomplish that.
By using the following filter-hook, only products that has A value for A given field (e.g., Product Name) – will appear on the mirror-site:add_filter( 'wc_zap_mirror_wp_query', function( $args ) { $args['meta_query'] = array( 'relation' => 'AND', array( 'key' => '_wc_zap_product_name', 'value' => '', 'compare' => '!=' ), array( 'relation' => 'OR', array( 'key' => '_wc_zap_disable', 'value' => 'yes', 'compare' => '!=' ), array( 'key' => '_wc_zap_disable', 'compare' => 'NOT EXISTS' ) ) ); return $args; } );Hope it helps.
Forum: Plugins
In reply to: [Mirror Zap for WooCommerce] אוטומזיציהYou’ve misspelled variable name.
$note->DELIVERY_TIME = 7; $note->SHIPMENT_COST = 19;Should be $node instead of
$noteForum: Plugins
In reply to: [Mirror Zap for WooCommerce] שכפול וריאציותWould take a-bit of coding, but it’s possible.
Forum: Plugins
In reply to: [Mirror Zap for WooCommerce] סטאפ ראשוניRegarding your first question:
It’s not possible to fully automate the process and fetch all product properties from WooCommerce default fields, because not all of them exists (e.g., DELIVERY_TIME, MANUFACTURER, WARRANTY..). That’s the reason I’ve decided to leave it as-is, for manual data insertion.Having said that, version 1.3 onwards, allows you to programmatically solve this matter by overriding the XML properties on-the-go.
For example, by adding the following code in your theme’s functions.php file, you will semi-automate the fetching of some properties from your products metadata:add_action( 'wc_zap_mirror_xml_node', function( &$node, $product ) { $node->PRODUCT_NAME = $product->get_name(); $node->DETAILS = $product->get_description(); $node->CATALOG_NUMBER = $product->get_sku(); $node->PRICE = $product->get_price(); }, 10, 2 );Regarding your second question, if I understood it properly – the answer is yes.
Forum: Plugins
In reply to: [Pelecard Gateway] Google Analytics IsueAll are WooCommerce related questions.
[ LMGTFY link redacted ]- This reply was modified 8 years, 7 months ago by Jan Dembowski. Reason: Removed link
Forum: Plugins
In reply to: [Mirror Zap for WooCommerce] BUG👍
Forum: Plugins
In reply to: [Mirror Zap for WooCommerce] BUGYou kinda missed the purpose of this filter-hook.
Nevermind that, Just remove it and upgrade to version 1.3.6.Forum: Plugins
In reply to: [Mirror Zap for WooCommerce] BUGFatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of add_action(). in /home3/gladiator/public_html/wp-includes/functions.php on line 153I said your theme’s functions.php, that’s not the right file.
You should really avoid coding if you’re not sure what you’re doing.Your file should be under:
/public_html/wp-content/themes/cardio/functions.php- This reply was modified 8 years, 7 months ago by Ido Friedlander.
Forum: Plugins
In reply to: [Mirror Zap for WooCommerce] new version NOT workingForum: Plugins
In reply to: [Mirror Zap for WooCommerce] עדיין יש בעיהResolved.
Forum: Plugins
In reply to: [Mirror Zap for WooCommerce] בעיה באתר מראהHi,
Sorry for the lack of proper documentation, I’ll get to it at some point.
Version 1.3 requires some new configuration.
You’ll have to create A new page (any template could be used, doesn’t matter), and then select it as your mirror-site, from the admin panel => WooCommerce => Settings => Zap Mirror Site => Mirror Site Page.Forum: Plugins
In reply to: [Mirror Zap for WooCommerce] BUGHi,
I’ll add this modification to plugin’s next version.
In the meanwhile, you could bypass this setting by adding this filter-hook in your theme’s functions.php file:add_action( 'wc_zap_mirror_xml_node', function( &$node, $product ) { $node->PRODUCT_NAME = $product->get_name(); }, 10, 2 );