Stripe error Amount must be at least 50 cents


Uncaught StripeErrorInvalidRequest: Amount must be at least 50 cents Stripe expects amounts in cents/pence, so if you pass amount as amount = 10 This will be considered as 10 pence instead of 10 USD. So when Stripe gets pence lower than 50 it generates that error. How to send USD instead of pence You need … Continue reading Stripe error Amount must be at least 50 cents

Passing arguments to cron and receive in php


Setting up cron Crons can pass parameters or arguments to scripts as well for example you have example.php set as cron like below Now if you want to pass parameters to example.php in cron you can do it as follow by using key value pairs If you want to send arguments without keys you can … Continue reading Passing arguments to cron and receive in php

Magento Unsupported operand types in…


Fatal error: Unsupported operand types in /app/code/core/Mage/ImportExport/Model/Export/Entity/Product.php on line 873 If you are getting above error while exporting products in Magento 1.7.X The fix is simple. Open this file /app/code/core/Mage/ImportExport/Model/Export/Entity/Product.php and go to line number 873. It should be working now.

Sending emails based on templates and placeholders with attachments using php and smtp


Being a web developer I often need to send emails based on user requirements, some time these are simple emails but some times users want to take control of email contents and attachments. To make it easier for me and other developers I have created a mail library which can be easily switched to php … Continue reading Sending emails based on templates and placeholders with attachments using php and smtp

How to secure you Magento installation from possible hacks


Magento is widely used as a powerful e-commerce platform, hence it is popular and widely used there are more hacks and malware created from outside world to attack magento to steal information or redirecting users to advertisement pages. Here I will tell you how you can protect your magento installation files, there are other steps … Continue reading How to secure you Magento installation from possible hacks

Magento Error 404 on every page


That is possible due to mod rewrite not working properly To solve this check either mod_rewrite is enabled if enabled then check your virtual host file and change it to following Often virtualhost file contains AllowOverride none that actually restricts magento .htacess files to execute. You need to put it to AllowOverride all.

Magento Product Page 404 error


If magento is not showing product page properly and displaying 404 page instead there might be possibility of reporting error. Check your error log file and see if that error is related to reporting then execute following query in the phpMyadmin