c960657
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: WooCommerce] Updated template issueChanging the second line from
echo '<a href="' . get_term_link( $category->slug, 'product_cat' ) . '">';
to
echo '<a href="' . get_term_link( $category, 'product_cat' ) . '">';
fixed a similar problem for me.Forum: Plugins
In reply to: [Ceceppa Multilingua support for WooCommerce] Terms permalink not translatedHi Alessandro,
This is just a friendly reminder that you have not implemented my suggestions yet 🙂
Forum: Plugins
In reply to: [Ceceppa Multilingua support for WooCommerce] Cart is not translatedFurthermore, I had to change the priority of the JS include so that it is included after jQuery.
add_action( 'wp_enqueue_scripts', array( & $this, 'enqueue_script' ), 11 );Forum: Plugins
In reply to: [Ceceppa Multilingua support for WooCommerce] Cart is not translatedI just realized that the
langPOST parameter is the language locale (e.g. en_GB), not the slug (see setlocale() in admin/admin.php in Ceceppa Multilingua). So the code should read like this:var lang = jQuery.parseJSON(ceceppa_ml.lang) if (typeof settings.data == 'string' && settings.contentType.match(/^application\/x-www-form-urlencoded/)) { settings.data += '&lang=' + lang.cml_locale; } else { settings.data[ 'lang' ] = lang.cml_locale; }Also, we need to load Cml4WoocommerceFrontend() in the AJAX call for the card, not Cml4WoocommerceAdmin(). I made the following quick-fix:
if( is_admin() && !(isset($_POST['action']) && $_POST['action'] == 'woocommerce_get_refreshed_fragments') ) { $cml4woocommerce = new Cml4WoocommerceAdmin(); } else { $cml4woocommerce = new Cml4WoocommerceFrontend(); }Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Bug: Cannot redeclare unichr()Thanks for the feedback. I will edit the file manually for now, until the issue is fixed in dompdf or Ceceppa Multilingua.