webdesigner27
Forum Replies Created
-
I’ve found in another discussion example/wp-admin/admin.php?page=connection-test-admin-page (Replace example.com with your domain) … in this page you can find a button “Sync All Products with Google Merchant Center” … as my shop is concerning a lot of products is needed the “Async” option enabled if not the system crash.
Hope it helps ??
Forum: Plugins
In reply to: [Google for WooCommerce] Variants Name In TitleIn fact “title” seems to not be in the Attributes.
Changing the private function of the plugin (risky) … it works like a charm and the titles are now correct on Google Merchant ??protected function map_wc_general_attributes() { $this->setDescription( $this->get_wc_product_description() ); $this->setLink( $this->wc_product->get_permalink() ); // set item group id for variations if ( $this->is_variation() ) { $this->setItemGroupId( $this->parent_wc_product->get_id() ); $this->setTitle( $this->wc_product->get_name() ); } else $this->setTitle( $this->wc_product->get_title() ); return $this; }
The problem will be on the next plugin update… i need to find another solution. ?????
Forum: Plugins
In reply to: [Google for WooCommerce] Variants Name In TitleThanks a lot for the clarification!
For safety, I manually synchronized all the products.
Nothing is changing… and in the feed inside the plugin the titles seem to remain the same ???? (i’ve cleaned the caches)
Let’s wait!?!- This reply was modified 9 months, 1 week ago by webdesigner27.
- This reply was modified 9 months, 1 week ago by webdesigner27.
Forum: Plugins
In reply to: [Google for WooCommerce] Variants Name In TitleOf course i will ??
One question… Do I need to do anything after modifying the functions.php file in my child theme within the plugin settings?
Do I just need to wait for the re-sync?Thanks!
- This reply was modified 9 months, 1 week ago by webdesigner27.
Forum: Plugins
In reply to: [Google for WooCommerce] Variants Name In Title??
get_name() for variation … instead get_title()add_filter( 'woocommerce_gla_product_attribute_values', 'gla_custom_variable_product_title', 10, 3 );
function gla_custom_variable_product_title( $attributes, $product, $adapter ) {
if ($product->is_type('variable')) {
$new_title = $product->get_name();
$attributes['title'] = $new_title;
}
return $attributes;
}
I will test it now and back with a feedback ??
- This reply was modified 9 months, 1 week ago by webdesigner27.
- This reply was modified 9 months, 1 week ago by webdesigner27.
- This reply was modified 9 months, 1 week ago by webdesigner27.
- This reply was modified 9 months, 1 week ago by webdesigner27.
- This reply was modified 9 months, 1 week ago by webdesigner27.
Forum: Plugins
In reply to: [Google for WooCommerce] Variants Name In TitleThank you so much @shameemreza!
I know it’s not a technical discussion forum… but I just need to know the exact value of the attribute. Is it “title”, “Title” or “TITLE” ? ??
The correct filter name is “woocommerce_gla_product_attribute_values“.
I’ve seen an example in another thread of this forum and the code is ok for eg. changing the GTIN value… but for title?!?!?!? ??
add_filter( 'woocommerce_gla_product_attribute_values', 'my_custom_function', 10, 3 );
function my_custom_function( $attributes, $product, $adapter ) { $my_new_gtin = get_post_meta( $product->get_id(), '_maxyzla_ean_number', true );
$attributes['GTIN'] = $my_new_gtin;
return $attributes;
}
cos’ in the Adapter the Prod Name is mapped in the “map_wc_general_attributes” function ??
Thanks in advance!- This reply was modified 9 months, 1 week ago by webdesigner27.
- This reply was modified 9 months, 1 week ago by webdesigner27.
- This reply was modified 9 months, 1 week ago by webdesigner27.
Forum: Plugins
In reply to: [Google for WooCommerce] Variants Name In TitleHi @doublezed2 ??
As you can see in the two eg. screenshots…
The variable product with name “Blauberg – VMR Valvola diffusore Aria in acciaio” have 4 variants (“Blauberg – VMR Valvola diffusore Aria in acciaio 10cm”,”Blauberg – VMR Valvola diffusore Aria in acciaio 12,5cm”,”Blauberg – VMR Valvola diffusore Aria in acciaio 15cm” and “Blauberg – VMR Valvola diffusore Aria in acciaio 20cm”).
I want the feed to be populated, only for products with variations, with the variant name instead of the parent prod. name that is “Blauberg – VMR Valvola diffusore Aria in acciaio”.The problem is similar to that thread
Thanks ??Forum: Plugins
In reply to: [Google for WooCommerce] Variants In TitleThanks m8 i Will do It.
Best.
Forum: Plugins
In reply to: [Google for WooCommerce] Variants In TitleHi @ckadenge and sorry for my mistake.
I will open a new thread. (a new topic right?)Cheers!
- This reply was modified 9 months, 2 weeks ago by webdesigner27.
Forum: Plugins
In reply to: [Google for WooCommerce] Variants In TitleHi ??
I have the same issue. I want to see, if the product has variations, the variation title as the product title.
I’m stuck :/ with a lot of product with same name- This reply was modified 9 months, 2 weeks ago by webdesigner27.