Tagged: 

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #18883

    Hi, after installing WPML I’ve got duplicate product descriptions and titles on all product pages, just like the product page was added two times. When I switch to a default theme, the duplicates vanish. If I disable WPML, the duplicates vanish also. So the problem eventually lies in how WPML works with Propulsion. If I edit the single-product.php file of the woocommerce/templates by changing

    <?php while ( have_posts() ) : the_post(); ?>

    <?php woocommerce_get_template_part( ‘content’, ‘single-product’ ); ?>

    <?php endwhile; // end of the loop. ?>

    with

    <?php if ( have_posts() ) : the_post(); ?>

    <?php woocommerce_get_template_part( ‘content’, ‘single-product’ ); ?>

    <?php endif;

    it works ok (no duplicates), but that probably does not address the root of the problem.

    Any suggestions about fixing the issue?

    I’m running the latest versions of all components.

    #101253

    Hey!

    I tagged this thread for Nick – afaik he solved this issue for another user and he already knows the solution.

    Best regards,

    Peter

    #101254

    Hi,

    Would you please make me a temp WordPress admin account. I will get you up and running. My email is usjahm (at) gmail (dot) com. You are using the latest WPML plugin and have the Strings plugin installed as well? … and you have the latest theme version also, 1.7? If your site is live, I am careful, haven’t crashed a single client yet.

    Thanks,

    Nick

    #101255

    I’m developing locally, so I can’t provide an account. Can you desribe the solution? I have all the latest components and String Translation plugin installed.

    #101256

    Hi,

    The solution I used was for a different but closely related theme that unfortunately will not work here. Lets instead go over the process and see if we can spot a problem somewhere.

    I reread you original post, and I am not sure I agree with the syllogism you used,. The only way to prove it is through testing. I dimly remember reading a support item on WPML forum where an employee accidently overwritten every single translation on the company website and his manager was asking if it was reversible.

    Would you please elaborate …(a) How many posts were affected?

    Were there other plugins activated besides WPML and strings?

    What was being done when this happen? (portfolio translation, posts, taxonomies?)

    You said the posts are doubled.. double in the main language or the translation? or doubled so that one post in English and the post that should be in a different language is a copy of the English post?

    Are you using query strings, folders or sub-domains to segregate the translations?

    How is the site set up, do you use freelance translators?

    How would you suggest I go about replicating the event?

    Thanks,

    Nick

    #101257

    Here is a screenshot of how it looks: http://imageshack.us/photo/my-images/802/capture1px.png/

    1. All product pages. Blog posts display correctly.

    2. No, only woocommerce, WPML and strings

    3. Initially I didnt’ make any translations. Just after activating the WPML all the content on product pages except the slider is duplicated.

    4. Both. On an English page I see doubled english description, on a localized page i see doubled localized description

    5. Folders, but i tries different options

    6. No, almost everything is already translated

    I think you should be able to replicate the issue by installing WPML along with the Propulsion with dummy products data and check if you see duplicate content on product pages.

    #101258

    Hi,

    I spent some time looking into this and in the last few weeks there are similar incidents with duplicate product items with jingoshop, woocommerce, marketpress/wpmu when used with WPML after wordpress 3.5 update. The themes used in those cases are not Kriesi’s.

    So the issue is a bit more complex, and centers on wp3.5 upgrade. With a complex system such as wordpress and thousands of plugins there are always bound to be compatibility hiccups during updates since its impossible to q/a every possible framework/plugin/core combinations (considering each has multiple versions).

    Here is the solution used by jingoshop that I adapted for woocommerce

    1) You can either edit a file inside woocommerce plugin /templates/single-product.php or you can create an empty folder *inside the propulsion theme folder* and call it /woocommerce/ and copy and edit the single-product.php file there so that way it will over-ride the plugin file.

    In either case you will need to replace lines 24-28 that look like

    <?php while ( have_posts() ) : the_post(); ?>

    <?php woocommerce_get_template_part( 'content', 'single-product' ); ?>

    <?php endwhile; // end of the loop. ?>

    with the following

    <?php
    if ( have_posts() ) {
    the_post();
    woocommerce_get_template_part( 'content', 'single-product' );
    }
    ?>

    The problem lies somewhere in the way the query is being reset – wp_reset_postdata instead of wp_reset_query in product page loops perhaps. But for now since the actual product is not doubled in the database, this solution works.

    WPML version 2.63 is out today, with wp3.5 bugfixes, as well as update to Strings and Translation Management plugins.

    Reference:

    Jingoshop – http://wpml.org/forums/topic/wordpress-3-5-and-jigoshop-display-products-twice/

    Marketpress – http://premium.wpmudev.org/forums/topic/wpml-marketpress-multishop-products-show-up-double-or-trilple-in-global-shop

    WooCommerce – http://wpml.org/forums/topic/wordpress-3-5-update-crash-woocommerce-shows-twice-product-page/

    Thanks,

    Nick

    #101259

    Yes, this works, as I mentioned in my first post. If there are no other solutions, I’ll stick to this for now. Hopefully, this will be fixed in some updates.

    #101260

    lol. I should have read the first post. hahaha. However that is the solution because there is no reason I can think of to have a while loop since there shouldn’t be more than one item on that page.

    thanks,

    Nick

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘Duplicate product descriptions’ is closed to new replies.