<?php
$business = “premmelethu@gmail.com”; // Email associated with paypal
$amount = “100.00”; // Amount to be paid
$paypalUrl = “https://www.sandbox.paypal.com/cgi-bin/webscr” ;// Choose this url for testing and make sure that you have changed this when set to live
$return = “http://phpcodez.com/payment-successful.php” ;// Make sure that you have created this page
$cancel = “http://phpcodez.com/payment-cancel.php”;// Make sure that you have created this page
?>
<form class=”paypal” action=”<?php echo $paypalUrl; ?>” method=”post” id=”paypal_form” >
<input type=”hidden” name=”lc” value=”US” />
<input type=”hidden” name=”currency_code” value=”USD” />
<input type=”hidden” name=”first_name” value=”PHPCodez” />
<input type=”hidden” name=”item_number” value=”123456″ / >
<input type=”hidden” name=”return” value=”<?php echo $return; ?>” / >
<input type=”hidden” name=”cancel_return” value=”<?php echo $cancel; ?>” / >
<input type=”hidden” name=”business” value=”<?php echo $business; ?>” / >
<input type=”hidden” name=”item_name” value=”PHPCodez Book” / >
<input type=”hidden” name=”amount” value=”<?php echo $amount; ?>” / >
<input type=”submit” value=”Pay 100 $”/>
<input type=”hidden” name=”cmd” value=”_xclick” />
</form>
Monthly Archives: November 2012
Page Ranking
Check Page Rank of your Web site pages instantly: |
This page rank checking tool is powered by Page Rank Checker service |
Magento returns different ups shipping rates
Back to the previous page Javascript
<script>
window.history.back()
</script>
Show shopping cart items paypal express checkout Magento
Show shipping methods paypal express checkout Magento
Magento set the layout 2 column left Shared Wishlist View
Edit wishlist.xml and replace the code
<wishlist_shared_index translate=”label”>
<label>Customer Shared Wishlist View</label>
<!– Mage_Wishlist –>
<reference name=”content”>
<block type=”wishlist/share_wishlist” name=”customer.wishlist” template=”wishlist/shared.phtml” />
</reference>
</wishlist_shared_index>
with
<wishlist_shared_index translate=”label”>
<label>Customer Shared Wishlist View</label>
<!– Mage_Wishlist –>
<reference name=”content”>
<block type=”wishlist/share_wishlist” name=”customer.wishlist” template=”wishlist/shared.phtml” />
</reference>
<reference name=”root”>
<action method=”setTemplate”><template>page/2columns-left.phtml</template></action>
</reference>
</wishlist_shared_index>
Magento layered navigation does not show up on category page
Make sure that you set the value “Yes” to “Is Anchor” field .
Show category name along with product name on listing page Magento
<?php
$cat = $_product->getCategoryIds();
echo Mage::getModel(“catalog/category”)->load($cat[0])->getName();
?>
Get products based on category id Magento
<?php
$layer = Mage::getSingleton(“catalog/layer”);
$_category = $layer->getCurrentCategory();
$category = new Mage_Catalog_Model_Category();
$category->load($_category->getId());
$prodCollection = $category->getProductCollection();
foreach ($prodCollection as $product) {
}
?>