Hi,
I want to add an additional Amazon Pay Button to our mini cart. Our mini cart is placed in catalog/controller/common/cart.php
I placed the other Amazon Pay Buttons in the Layout in "checkout/%".
I tried to add this code to the (mini cart) manually:
Mini Cart
=======
(catalog/controller/common/cart.php)
if($this->config->get('amazon_pay_status')){
$data['amazon_pay_button'] = $this->load->controller('extension/module/amazon_pay');
}else{
$data['amazon_pay_button'] = '';
}
Checkout
========
checkout/checkout.php
(catalog/controller/checkout/checkout.php)
if($this->config->get('amazon_pay_status')){
$data['amazon_pay_module'] = $this->load->controller('extension/module/amazon_pay');
}else{
$data['amazon_pay_module'] = '';
}
Big Cart
=======
(catalog/controller/checkout/cart.php)
if($this->config->get('amazon_pay_status')){
$data['amazon_pay_button2'] = $this->load->controller('extension/module/amazon_pay');
}else{
$data['amazon_pay_button2'] = '';
}
If I define all 3 Amazon Pay buttons like above the button in the big cart and in the checkout are not shown. And in the mini cart I have two amazon pay buttons.
How can I solve this problem? Maybe I have the problem because I double load the controller?
Greetings
Who is online
Users browsing this forum: No registered users and 17 guests