Dieser Benutzer hat keine favorisierten Themen.
Favorisierte Forenthemen
Erstellte Forenthemen
| Status |
Thema
|
Supporter | Stimmen | Beiträge | Aktualität |
|---|---|---|---|---|---|
|
WooCommerce Smart Coupons
Gestartet von: maartenv-15
in: English Support
Problem: add_filter('woocommerce_coupon_get_wc_sc_add_product_details', 'testing_coupon_discount_after_adding_to_cart');
function testing_coupon_discount_after_adding_to_cart($var) {
foreach ($var as $key => $prod ) {
$my_current_lang = apply_filters( 'wpml_current_language', NULL );
$type = get_post_type($prod["product_id"]);
$translations = apply_filters( 'wpml_get_element_translations', NULL, $prod["product_id"], 'post_'. $type );
$var[$key]["product_id"] = $translations[$my_current_lang]->element_id;<br /> }
return $var;
}5. Save the changes. Please note that this solution might be irrelevant if it's outdated or not applicable to your case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket. |
|
2 | 14 | Vor 1 Jahr, 6 Monaten | |
|
WooCommerce Smart Coupons
Gestartet von: maartenv-15 in: Chat Support |
|
1 | 2 |
Vor 1 Jahr, 7 Monaten
|