Search This Blog

Friday 30 August 2013

Magento XML explanation

Tuesday 27 August 2013

How to allow certain tags (iframe, embed) in Magento's CMS editor?

CyberSource Payment Gateway Field validations and Guides



Field Validation


Notification

As part of its commitment to maintain industry-leading security and data integrity, CyberSource will be implementing additional front-end validation of transaction data entering it's Systems, starting on January 22nd, 2013.

As part of this effort, CyberSource will start performing additional validation on certain API field values coming into the Production environment across all connection methods, including several fields in the following groups:

                Customer Information and Address Fields

                Order Tracking Fields

After extensive testing versus past production transaction data, we are confident that these changes will be transparent to the vast majority of our customer base.  However, if you do see any perceived changes in data validation-related declines, please feel free to contact CyberSource Customer Support for further assistance in troubleshooting said transactions. 

Cyber Source Simple Order SDK Tool Kit:

Documentation on fields:

Development Guides:


Tuesday 20 August 2013

SSH using .pem

Search the date range between two dates SQL



CREATE TABLE `product_sales` (
  `id` int(11) NOT NULL auto_increment,
  `name` varchar(255) NOT NULL,
  `From_date` date NOT NULL,
  `To_date` date NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;

--
-- Dumping data for table `Product_sales`
--

INSERT INTO `Product_sales` (`id`, `name`, `From_date`, `To_date`) VALUES
(1, 'Product 1', '2013-08-20', '2013-08-30'),
(2, 'Product 2', '2013-08-14', '2013-08-27'),
(3, 'Product 3', '2013-08-25', '2013-08-31'),
(4, 'Product 4', '2013-08-10', '2013-08-22'),
(5, 'Product 4', '2013-08-24', '2013-08-28'),
(6, 'Product 4', '2013-08-23', '2013-08-30');

QUERY:
SELECT * FROM Product_sales WHERE ( From_date >= '2013-08-19' AND To_date <= '2013-08-23' ) OR ( To_date >= '2013-08-19' AND From_date <= '2013-08-23' )