onepage-checkout

Magento2 checkout form: How to display placeholder attribute value in fields?

眉间皱痕 提交于 2020-01-22 20:40:09
问题 Goodmorning Stackoverflow, I'm customizing the checkout onepage in Magento 2. Now I'm trying to display placeholders instead of labels in the shipping-address form, but no success till now. I hope someone can help me out Cheers, Jorge UPDATE: In the console i can see a variable is giving to the attribute placeholder of the element input. <input class="input-text" type="text" data-bind=" value: value, valueUpdate: 'keyup', hasFocus: focused, attr: { name: inputName, placeholder: placeholder, /

Magento2 checkout form: How to display placeholder attribute value in fields?

不羁的心 提交于 2019-12-04 05:56:31
Goodmorning Stackoverflow, I'm customizing the checkout onepage in Magento 2. Now I'm trying to display placeholders instead of labels in the shipping-address form, but no success till now. I hope someone can help me out Cheers, Jorge UPDATE: In the console i can see a variable is giving to the attribute placeholder of the element input. <input class="input-text" type="text" data-bind=" value: value, valueUpdate: 'keyup', hasFocus: focused, attr: { name: inputName, placeholder: placeholder, // <<<< right here 'aria-describedby': noticeId, id: uid, disabled: disabled }" name="street[0]"

Magento - OnePage Checkout - Hide Payment method depending on Shipping Method

﹥>﹥吖頭↗ 提交于 2019-12-04 03:07:13
问题 I have asked this question on Magento Stackexchange without any success, hence me now asking here. I'm using Magento Community Edition 1.9.0.1 and have correctly created and registered my module, but I can't seem to detect the shipping methods. Basically, I want to hide Cash on Delivery if Flat Rate or Free Shipping is chosen. Here is the code I have for my observer class: class Kol_PaymentToggle_Model_Observer { public function paymentMethodIsActive(Varien_Event_Observer $observer) { $event