2

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

例如,

如果客户选择卡作为支付选项,那么除了卡详细信息表单字段外,它还应该显示账单信息字段(First namelast nameemailcountryzippasswordconfirm password.)。

如果客户已选择 paypal 作为付款选项,则字段 ( Email, Password, Confirm password)。

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

4

1 回答 1

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'));
}
于 2015-06-11T06:37:35.713 回答