自定义当前magento onestep结帐页面

时间:2015-06-11 04:56:26

标签: magento onepage-checkout onestepcheckout

需要帮助来自定义现有的onetep结帐页面,以便billing/customer信息表单将包含在付款选择部分中。

例如,

如果客户选择了卡作为付款选项,那么它还会显示结算信息字段(First namelast nameemailcountryzippasswordconfirm password。)。

如果客户选择了paypal作为付款选项,则选择字段(EmailPasswordConfirm password)。

基本上,我们正在尝试减少步骤数量并加快结帐速度。

1 个答案:

答案 0 :(得分:1)

使用以下

public function index( $category_id = null )
{
    if (!$this->KnowledgeSolution->KnowledgeCategory->exists( $category_id ))
    {
        throw new NotFoundException(__('Invalid Knowledge Category'));
    }
    $KnowledgeCategory = $this->KnowledgeSolution->KnowledgeCategory->read(null,$category_id);
    $this->set('KnowledgeCategory',$KnowledgeCategory);

    $this->Paginator->settings['contain'] = array('Users','KnowledgeReply'=>array('Users') );
    $this->set('KnowledgeSolutions', $this->Paginator->paginate());    

    $this->Paginator->settings = array('conditions' => array('Product .title LIKE' => 'a%'),'limit' => 10 );

    $this->set(compact('data'));
}