Explorar el Código

customized place your order button

bach hace 2 años
padre
commit
9e3cffa291
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  1. 10 0
      web/modules/custom/materio_commerce/materio_commerce.module

+ 10 - 0
web/modules/custom/materio_commerce/materio_commerce.module

@@ -1 +1,11 @@
 <?php
+
+function materio_commerce_form_alter(&$form, &$form_state, $form_id) {
+  if ($form_id == 'commerce_checkout_flow_multistep_default') {
+      if ($form["#step_id"] == "review") {
+          $t="t";
+        // $form['buttons']['continue']['#value'] = t('Desired Custom Text Here');
+        $form['actions']['next']['#value'] = t('Place your order');
+      }
+  }
+}