Product Pages working in English but not in other Languages

Popular automatic website translation tool

Product Pages working in English but not in other Languages

Postby GlennB » Sat Feb 25, 2017 7:32 pm

Put products on sale recently. Pages are working fine in English-Partially working in all other languages-A few items working correctly the rest of the page is a mess-pictures missing etc..

Below is an example:

http://it.medeqipexp.com/prodotto-categ ... mmer-viti/

Thanks,

Glenn Berry
GlennB
 
Posts: 10
Joined: Tue Nov 10, 2015 1:37 am

Re: Product Pages working in English but not in other Langua

Postby Edvard » Sun Feb 26, 2017 6:22 am

Hi,

I have checked your page and it seems that you have HTML errors which causes issues in the translated version.

Here is your original HTML code for product which causes issue:

Code: Select all
<div class="col-xs-12 col-sm-6 col-md-3">

   <a href="http://medeqipexp.com/product/arthrex-bio-tenodesis-screw-6-25-x-15-mm-plla-bioabsorbable-material/" class="woocommerce-LoopProduct-link">
   <div class="product"><a href="http://medeqipexp.com/product/arthrex-bio-tenodesis-screw-6-25-x-15-mm-plla-bioabsorbable-material/">

      <img src="http://medeqipexp.com/wp-content/images/2014/08/p-1014-AR-1562B.jpg" class="attachment-medium size-medium wp-post-image img-responsive" alt="Arthrex Bio-Tenodesis Screw 6.25 x 15mm"/>
      <h3>Arthrex Bio-Tenodesis Screw 6.25 x 15mm PLLA Bioabsorbable Material</h3>

      
   <span class="price"><span class="woocommerce-Price-amount amount"><span class="woocommerce-Price-currencySymbol">&#36;</span>39.95</span></span>

   </a>

   </a><a rel="nofollow" href="/product-category/orthopedic-implants/zimmer-screws/?add-to-cart=1014" data-quantity="1" data-product_id="1014" data-product_sku="Bio-Tenodesis Screw 6.25 x 15 mm" class="button product_type_simple add_to_cart_button ajax_add_to_cart">Add to cart</a><div id="offers-for-woocommerce-make-offer-wrapper-id-1014" class="offers-for-woocommerce-make-offer-wrapper"><a href="http://medeqipexp.com/product/arthrex-bio-tenodesis-screw-6-25-x-15-mm-plla-bioabsorbable-material/?aewcobtn=1" id="offers-for-woocommerce-make-offer-button-id-1014" class="offers-for-woocommerce-make-offer-button-catalog button alt" style="">Make Offer</a></div>   </div>
</div>


Which is the same as:
Code: Select all
<div>
        <a href="...">
            <div class="product">
                <a href="...">
                    <img src="..."/>
                    <h3>...</h3>
                    <span><span><span>...</span></span></span>
                </a>
        </a><!-- note this closing a which is wrong, it closes parent a without product div being closed -->
            <a href="...">Add to cart</a>
            <div>
                <a href="...">Make Offer</a>
            </div>
            </div><!-- note this which is closing probably product -->
</div>


If you fix it in your product template, it will fix the issue in the translated page.

Thanks!
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4349
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Product Pages working in English but not in other Langua

Postby GlennB » Sun Feb 26, 2017 9:45 pm

Unfortunately I am not following you. I think the problem started with the latest Woo Commerce Update. Following is what is in the Editing woocommerce/templates/content-product.php Folder

@see https://docs.woocommerce.com/document/t ... structure/
* @author WooThemes
* @package WooCommerce/Templates
* @version 2.6.1
*/

if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}

global $product;

// Ensure visibility
if ( empty( $product ) || ! $product->is_visible() ) {
return;
}
?>
<li <?php post_class(); ?>>
<?php
/**
* woocommerce_before_shop_loop_item hook.
*
* @hooked woocommerce_template_loop_product_link_open - 10
*/
do_action( 'woocommerce_before_shop_loop_item' );

/**
* woocommerce_before_shop_loop_item_title hook.
*
* @hooked woocommerce_show_product_loop_sale_flash - 10
* @hooked woocommerce_template_loop_product_thumbnail - 10
*/
do_action( 'woocommerce_before_shop_loop_item_title' );

/**
* woocommerce_shop_loop_item_title hook.
*
* @hooked woocommerce_template_loop_product_title - 10
*/
do_action( 'woocommerce_shop_loop_item_title' );

/**
* woocommerce_after_shop_loop_item_title hook.
*
* @hooked woocommerce_template_loop_rating - 5
* @hooked woocommerce_template_loop_price - 10
*/
do_action( 'woocommerce_after_shop_loop_item_title' );

/**
* woocommerce_after_shop_loop_item hook.
*
* @hooked woocommerce_template_loop_product_link_close - 5
* @hooked woocommerce_template_loop_add_to_cart - 10
*/
do_action( 'woocommerce_after_shop_loop_item' );
?>
</li>

Am I in the right folder & what needs to be changed to correct the problem.

Thank you.

Glenn Berry
GlennB
 
Posts: 10
Joined: Tue Nov 10, 2015 1:37 am

Re: Product Pages working in English but not in other Langua

Postby Edvard » Mon Feb 27, 2017 4:31 am

Hi,

No, it is not the correct template file.

If you are not sure, you may try to contact your template developers and ask for help. If they cannot help you, we will try to fix it for you.

Thanks!
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4349
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Product Pages working in English but not in other Langua

Postby GlennB » Thu Mar 02, 2017 9:14 pm

Thanks I was able to get the problem resolved by using the Chat feature & opening up a ticket. Thank you for resolving the issue I appreciate the help.

Glenn Berry
GlennB
 
Posts: 10
Joined: Tue Nov 10, 2015 1:37 am

Re: Product Pages working in English but not in other Langua

Postby Edvard » Thu Mar 02, 2017 9:23 pm

You are welcome.

Thanks!
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4349
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: Google [Bot] and 1 guest

2GLux
cron