This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Mage::log('Hy observer called', null, 'logfile.log'); | |
class Brst_Test_Model_Observer | |
{ | |
//Put any event as per your requirement | |
public function logCartAdd() { | |
$product = Mage::getModel('catalog/product') | |
->load(Mage::app()->getRequest()->getParam('product', 0)); | |
$cart_qty = (int) Mage::getModel('checkout/cart')->getQuote()->getItemsQty(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//fetch_data.php | |
include('database_connection.php'); | |
if(isset($_POST["action"])) | |
{ | |
$query = " | |
SELECT * FROM voice_bank_data WHERE voice_status = '1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//fetch_data.php | |
include('database_connection.php'); | |
if(isset($_POST["action"])) | |
{ | |
$query = " | |
SELECT * FROM voice_bank_data WHERE voice_status = '1' |