需要帮助自定义现有的一步结帐页面,以便billing/customer
信息表单将包含在付款选择部分中。
例如
如果客户已选择卡作为付款方式,则除了卡详细信息表单字段外,它还应显示帐单信息字段(First name
,last name
,email
,country
,zip
,password
,confirm password
)。
如果客户已选择PayPal作为付款选项,则字段(Email
、Password
、Confirm password
)。
基本上,我们正在努力减少步骤数量并加快结帐速度。
使用以下
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'));
}