2016-05-11 6 views
1

私は顧客登録用に1つの属性を作成しました。登録には問題ありません。 1ページのチェックアウトで問題が発生しています。通常の登録と同様に、私はワンステップチェックアウト登録時にも顧客から価値を得ていますが、その値を属性に保存しないという問題があります。予めユーザMagento 1ページの顧客からのカスタム属性の値をチェックアウトする(billing.phtml)

    <li class="fields"> 
         <div class="field"> 
          <label for="<?php echo $attribute->getAttributeCode(); ?>" <?php if($attribute->getIsRequired()):?>class="required"><em>*</em> <?php else :?>><?php endif;?><?php echo $this->__($frontEndLabel) ?></label> 
          <div class="input-box"> 

           <?php if($attribute->getFrontendInput()== 'text'):?> 
            <input type="text" name="billing[test]" id="billing:<?php echo $attribute->getAttributeCode(); ?>" title="<?php echo $this->__($frontEndLabel); ?>" class="input-text <?php echo $fieldRequiredClass; ?> <?php echo $fieldFrontendClass ;?>" /> 
            <?php endif ?> 
          </div>   
         </div> 

      <?php endif ?> 
      <?php endforeach ?> 
      </li> 

答えて

1

からあなたのconfig.xml内だけで更新次のコードを値を取り、それを

<fieldsets> 
    <checkout_onepage_quote> 
     <attributename> 
      <to_customer>*</to_customer> 
     </attributename> 
    </checkout_onepage_quote> 
</fieldsets> 
+0

Thanks..it作品をチェックするための属性の表示テキストボックスbilling.phtmlの コードをありがとう –

関連する問題