Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merchant request: enable GTIN from 3pd plugin #2317

Open
sophiegyo opened this issue Mar 18, 2024 · 1 comment
Open

Merchant request: enable GTIN from 3pd plugin #2317

sophiegyo opened this issue Mar 18, 2024 · 1 comment
Labels
type: enhancement The issue is a request for an enhancement.

Comments

@sophiegyo
Copy link

User story

Reference 7873440-zen

I let them know I'd pass the request on but did not guarantee it would be implemented.

Is your feature request related to a problem?

  • They find the GLA prescribed method isn't convenient for managing individual GTINs for each product

How to reproduce the problem

  1. Site with WooCommerce, Google Listings & Ads, and the above 3pd plugin
  2. Add GTIN using the 3pd plugin
  3. Try to use attribute mapping in GLA
  4. GTIN field from 3pd plugin is not detected

Describe the solution you'd like

The merchant would like GLA to be able to use the GTIN as detailed here:
https://wordpress.org/support/topic/where-the-woocommerce-gtin-value-is-stored/

Describe alternatives you've considered

Technical

  • I'm aware this is a 3pd plugin with their own custom implementation of how they add the GTIN and that we can't account for every 3pd plugin out there.

Out of bounds/rabbit holes

See above!

@sophiegyo sophiegyo added the type: enhancement The issue is a request for an enhancement. label Mar 18, 2024
@eason9487
Copy link
Member

Looks like their could try this filter to set the GTIN.

For example:

add_filter(
	'woocommerce_gla_product_attribute_value_gtin',
	function ( $value, WC_Product $product ) {
		$gtin = 'Get the GTIN from another plugin';
		return $gtin;
	},
	10,
	2
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement The issue is a request for an enhancement.
Projects
None yet
Development

No branches or pull requests

2 participants