This class is very useful for small projects, it easy and fast to connect mysql with php script. Thank you Ciprian Mocanu to provide this document. The Class:
This class is very useful for small projects, it easy and fast to connect mysql with php script. Thank you Ciprian Mocanu to provide this document. The Class:
There is no project that uses framework as is. Every now and then there is a need to change something, to add something new or to override something already written. Due to many
Hi, today I’ll show you how to edit Magento’s core module without messing with core files themselves, or “the right way of doing things”. :D First of all, I chose Magento’s Customer module
Step-1 : Generate Token System For All Web-Service: Generating Token : Step-2 : Use it while sending ajax call: var form_data = { data: $("#data").val(), //your data being sent with ajax token:'', //used
folder/template../sample.phtml create a folder "sample" create a include phtml file shipping.phtml folder/template../sample/shipping.phtml
Mage::getSingleton('checkout/session')->getQuote()->getAllVisibleItems();
Hers is sample code: $new_product = Mage::getModel('catalog/product'); $new_product->setWebsiteIds(array(1)); $new_product->setSku('lu-'.$product['sku']); $new_product->setPrice((($product['price'])*$e_rate)); $new_product->setCategoryIds(array(1152)); $new_product->setAttributeSetId(4); $new_product->setVisibility(1); $new_product->setType('Simple Product'); $new_product->setName($product['name']); $new_product->setDescription(''); $new_product->setShortDescription(''); $new_product->setStatus(2); $new_product->setTaxClassId(2); $new_product->setWeight(0); $new_product->setCreatedAt(strtotime('now')); // call save() method to save your product with updated data
error_log(print_r($variable, TRUE));
Some people ask about the difference between Mage::getModel() and Mage::getSingleton() in Magento. Here is the difference between these two: Mage::getModel('module/model') will create a new instance of the model object (if such object exists
Here is an example: var signupForm = new Validation(\’form-validate\’); var result = signupForm.validate(); if(result == true) { $(\’#form-validate\’).submit(); return true; } else return false; another one var signupForm = new VarienForm('signupForm', true); if