Answer the question
In order to leave comments, you need to log in
Connecting a payment system in magento?
Hello, I have never used Magenta, tell me how to connect the payment system plugin? I downloaded from here www.magentocommerce.com/magento-connect/alipay-pay... inserted the key into my connect manager, everything downloaded. Set up. How do I now display their button on the checkout page?
The following code is used there:
<ul class="checkout-types">
<?php foreach ($this->getMethods('methods') as $method): ?>
<?php $methodHtml = $this->getMethodHtml($method); ?>
<?php if ($methodHtml): ?>
<li><?php echo $methodHtml; ?></li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
$payments = Mage::getSingleton('payment/config')->getActiveMethods();
$payMethods = array();
foreach ($payments as $paymentCode=>$paymentModel)
{
$paymentTitle = Mage::getStoreConfig('payment/'.$paymentCode.'/title');
$payMethods[$paymentCode] = $paymentTitle;
}
Answer the question
In order to leave comments, you need to log in
If the module is made correctly and everything is set up, then no shamanism with the code is needed and the method should appear when choosing a payment method, possibly in a different style if you have a custom design.
just enable the module in its settings, usually this is the Enabled / Is Enabled item
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question