From 6a3f0802436c00b4fdedeed94d019b7577628646 Mon Sep 17 00:00:00 2001 From: bach Date: Sun, 1 Aug 2021 10:07:18 +0200 Subject: [PATCH] fixed new product variations ids add to cart btn text on HOME --- web/themes/custom/materiotheme/materiotheme.theme | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/themes/custom/materiotheme/materiotheme.theme b/web/themes/custom/materiotheme/materiotheme.theme index 55597893..13d2957c 100644 --- a/web/themes/custom/materiotheme/materiotheme.theme +++ b/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; }