瀏覽代碼

studiou-wc-mandatory-products: fix syntax in class-studiou-wcmp-frontend.php

Dalibor Votruba 1 年之前
父節點
當前提交
be1b7190ec
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      studiou-wc-mandatory-products/includes/class-studiou-wcmp-frontend.php

+ 4 - 3
studiou-wc-mandatory-products/includes/class-studiou-wcmp-frontend.php

@@ -223,16 +223,17 @@ class StudioU_WCMP_Frontend {
                 
                 
                 // Get product name
                 // Get product name
                 $product = wc_get_product($product_id);
                 $product = wc_get_product($product_id);
-                $product_name = $product ? $product->get_name() : __('A product', 'studiou-wc-mandatory-products');
+                $product_name = $product ? $product->get_name() : __('A product', 'studiou-wc-product-cat-manage');
                 
                 
                 // Add notice
                 // Add notice
                 wc_add_notice(
                 wc_add_notice(
                     sprintf(
                     sprintf(
-                        __('%s has been automatically added to your cart as it is required.', 'studiou-wc-mandatory-products'),
+                        __('%s has been automatically added to your cart as it is required.', 'studiou-wc-product-cat-manage'),
                         $product_name
                         $product_name
                     ),
                     ),
                     'notice'
                     'notice'
                 );
                 );
             }
             }
         }
         }
-    }
+    }
+}