• Resolved metaltemple

    (@metaltemple)


    Hello, I’m using the SEO Framework to define a primary category on an multilingual eshop’s products and use that for a proper breadcrumb path. Had my client do that for all his products. After he was done, I realized that in the secondary language, the changes on primary category didn’t work.
    My guess is that somehow WPML has this field on translate instead of copy.
    Since there’s no way my client will be happy if I ask him to do the same job an additional time for over 700 products, how can the primary category selection be copied automatically from the primary to the translated language?

Viewing 1 replies (of 1 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hello!

    Sorry for the belated reply; a large project kept me from free support.

    The field’s name is _primary_term_product_cat; we have not registered that with WPML. This field stores its data as integers: the number of the selected category ID.

    However, if you mean to “copy” it from one language to another, I assume you intend both languages to use the same categories.

    If so, go to “WPML -> Settings.” Under “Multilingual Content Setup,” scroll down to “Custom Fields Translation.” There, hit “Show system fields,” and there at the right in the “Search for” input, type “primary_term.”

    In your case, for “_primary_term_product_cat”, you’d want to select “Copy” and then hit “Save” underneath the fields.

    I’m not sure if this will work retroactively for existing products. According to WPML support, you’ll need to make a small change to the (original or translated?) pages. Perhaps Bulk Edit will help you with this: https://wordpress.com/support/posts/edit-posts-screen/.

    I think contacting WPML support for exact pointers in transporting the metadata from the original product to the translated version is best. I’m sure they have experience with this task and will likely have a helper plugin (or code snippet) ready to process this if necessary.

Viewing 1 replies (of 1 total)
  • The topic ‘Problem with primary category and WPML’ is closed to new replies.