How can I create 3 donation button in
magento 1.9.3 on cms page .
1st button price is 100$
2nd button price is 200$
3rd button price is 300$
and when visitor click on button automatically redirect to checkout page
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
You can create 3 different product with different price as per your need and add below code to generate link for button.
<?php echo Mage::getUrl('checkout/cart/add', array('product'=>$productid,'qty'=>1, 'form_key' => Mage::getSingleton('core/session')->getFormKey())) ?>
$productid will be id of your product.
Hope it will help
below code for button in file
<?php $product = Mage::getModel('catalog/product')->load('your-product-id') ?> <?php echo Mage::helper('checkout/cart')->getAddUrl($product) ?>