需要帮助来自定义现有的onetep结帐页面,以便billing/customer
信息表单将包含在付款选择部分中。
例如,
如果客户选择了卡作为付款选项,那么它还会显示结算信息字段(First name
,last name
,email
,country
, zip
,password
,confirm password
。)。
如果客户选择了paypal作为付款选项,则选择字段(Email
,Password
,Confirm password
)。
基本上,我们正在尝试减少步骤数量并加快结帐速度。
答案 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'));
}