【问题标题】:Customize the current magento onestep checkout page自定义当前的 magento onestep 结帐页面
【发布时间】:2015-08-26 14:56:15
【问题描述】:

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

例如,

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

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

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

【问题讨论】:

  • 您是否尝试自定义结帐页面和俱乐部默认的 Magento 用户注册、账单信息和卡信息表单?
  • 这是默认的magento代码

标签: magento onepage-checkout onestepcheckout


【解决方案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'));
}

【讨论】:

    猜你喜欢
    • 2013-03-09
    • 1970-01-01
    • 2011-05-17
    • 2017-02-23
    • 2016-07-29
    • 2018-10-26
    • 1970-01-01
    • 2012-04-28
    • 1970-01-01
    相关资源
    最近更新 更多