瀏覽代碼

fixed new product variations ids add to cart btn text on HOME

bach 3 年之前
父節點
當前提交
6a3f080243
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      web/themes/custom/materiotheme/materiotheme.theme

+ 4 - 4
web/themes/custom/materiotheme/materiotheme.theme

@@ -237,16 +237,16 @@ function materiotheme_form_alter(&$form, FormStateInterface $form_state, $form_i
 
   // change "add to cart" button text
   switch ($form_id) {
-    case 'commerce_order_item_variation_cart_form_form_commerce_product_variation_3':
+    case 'commerce_order_item_variation_cart_form_form_commerce_product_variation_1':
       $form['actions']['submit']['#value'] = t('Yeees!');
       break;
-    case 'commerce_order_item_variation_cart_form_form_commerce_product_variation_4':
+    case 'commerce_order_item_variation_cart_form_form_commerce_product_variation_2':
       $form['actions']['submit']['#value'] = t('Yay!');
       break;
-    case 'commerce_order_item_variation_cart_form_form_commerce_product_variation_5':
+    case 'commerce_order_item_variation_cart_form_form_commerce_product_variation_3':
       $form['actions']['submit']['#value'] = t('Great!');
       break;
-    case 'commerce_order_item_variation_cart_form_form_commerce_product_variation_6':
+    case 'commerce_order_item_variation_cart_form_form_commerce_product_variation_4':
       $form['actions']['submit']['#value'] = t('OKAY!');
       break;
   }