Tags » Magento

Magento Site from Scratch: Create First Online Magento eCommerce Store

Times have changed, bringing with it a new era of digital revolution which has made the world a much smaller place. Today, business ventures are realizing their cherished dream of higher visibility and reaching out to a much wider audience with the click of a button. 363 more words

Hire Magento Developer

How to solve Invalid blocktype - Magento

2015-03-27T09:10:06+00:00 ERR (3):
exception 'Mage_Core_Exception' with message 'Invalid block type: ' in /home/xxxxx/public_html/app/Mage.php:595
Stack trace:
#0 /home/xxxxx/public_html/var/cache/ew/files/Mage/Core/Model/Layout/a98f181a3dc22489d2af4466edf817fa.php(514): Mage::throwException('Invalid block t...')
#1 /home/xxxxx/public_html/var/cache/ew/files/Mage/Core/Model/Layout/a98f181a3dc22489d2af4466edf817fa.php(456): Mage_Core_Model_LayoutOverriddenClass->_getBlockInstance('', Array)
#2 /home/xxxxx/public_html/var/cache/ew/files/Mage/Core/Model/Layout/a98f181a3dc22489d2af4466edf817fa.php(491): Mage_Core_Model_LayoutOverriddenClass->createBlock('', 'checkout.cart')
597 more words

Magento

copy one attribute to other in magento

observer.php

class Namespace_Module_Model_Observer
{

private $_processFlag; //to prevent infinite loop of event-catch situation
public function  copyAttribute($observer){

    if(!$this->_processFlag):

    $this->_processFlag=true;
    $_store = $observer->getStoreId();
    $_product = $observer->getProduct();
    $_productid = $_product->getId();

    $attrA = $_product->getAttributeText('attributeA'); //get attribute A's value

    $action = Mage::getModel('catalog/resource_product_action');
    $action->updateAttributes(array($_productid), array('attributeB'=>$attrA),$_store); //assign attrA's value to attrB
    $_product->save();
    endif;
} 56 more words
Magento

How to change magento default admin url - Magento

To protect your magento website backend against hackers we recommend you to change the default url of the magento admin.It is easy to change the admin url from default… 214 more words

Magento

Magento 1.9.1.0 Order mail not sending

quick solution is:

Go to the following location: /app/code/core/Mage/Core/Model/Email/Template.php

Change Line 407

if ($this->hasQueue() && $this->getQueue() instanceof Mage_Core_Model_Email_Queue) {

to

if (!($this->hasQueue() && $this->getQueue() instanceof Mage_Core_Model_Email_Queue)) {

It will work.

Magento

Magento: TRUNCATE All Products Using PhpMyAdmin

SET FOREIGN_KEY_CHECKS = 0;
TRUNCATE TABLE `catalog_product_bundle_option`;
TRUNCATE TABLE `catalog_product_bundle_option_value`;
TRUNCATE TABLE `catalog_product_bundle_selection`;
TRUNCATE TABLE `catalog_product_entity_datetime`;
TRUNCATE TABLE `catalog_product_entity_decimal`;
TRUNCATE TABLE `catalog_product_entity_gallery`;
TRUNCATE TABLE `catalog_product_entity_int`;
TRUNCATE TABLE `catalog_product_entity_media_gallery`;
TRUNCATE TABLE `catalog_product_entity_media_gallery_value`;
TRUNCATE TABLE `catalog_product_entity_text`;
TRUNCATE TABLE `catalog_product_entity_tier_price`;
TRUNCATE TABLE `catalog_product_entity_varchar`;
TRUNCATE TABLE `catalog_product_link`;
TRUNCATE TABLE `catalog_product_link_attribute`;
TRUNCATE TABLE `catalog_product_link_attribute_decimal`;
TRUNCATE TABLE `catalog_product_link_attribute_int`;
TRUNCATE TABLE `catalog_product_link_attribute_varchar`;
TRUNCATE TABLE `catalog_product_link_type`;
TRUNCATE TABLE `catalog_product_option`;
TRUNCATE TABLE `catalog_product_option_price`;
TRUNCATE TABLE `catalog_product_option_title`;
TRUNCATE TABLE `catalog_product_option_type_price`;
TRUNCATE TABLE `catalog_product_option_type_title`;
TRUNCATE TABLE `catalog_product_option_type_value`;
TRUNCATE TABLE `catalog_product_super_attribute_label`;
TRUNCATE TABLE `catalog_product_super_attribute_pricing`;
TRUNCATE TABLE `catalog_product_super_attribute`;
TRUNCATE TABLE `catalog_product_super_link`;
TRUNCATE TABLE `catalog_product_enabled_index`;
TRUNCATE TABLE `catalog_product_website`;
TRUNCATE TABLE `catalog_category_product_index`;
TRUNCATE TABLE `catalog_category_product`;
TRUNCATE TABLE `cataloginventory_stock_item`;
TRUNCATE TABLE `cataloginventory_stock_status`;
TRUNCATE TABLE `cataloginventory_stock`;
INSERT  INTO `catalog_product_link_type`(`link_type_id`,`code`) VALUES (1,'relation'),(2,'bundle'),(3,'super'),(4,'up_sell'),(5,'cross_sell');
INSERT  INTO `catalog_product_link_attribute`(`product_link_attribute_id`,`link_type_id`,`product_link_attribute_code`,`data_type`) VALUES (1,2,'qty','decimal'),(2,1,'position','int'),(3,4,'position','int'),(4,5,'position','int'),(6,1,'qty','decimal'),(7,3,'position','int'),(8,3,'qty','decimal');
INSERT  INTO `cataloginventory_stock`(`stock_id`,`stock_name`) VALUES (1,'Default');
TRUNCATE TABLE `catalog_product_entity`;
SET FOREIGN_KEY_CHECKS = 1;
Magento

Magento: Removing dropdowns from Product List Pager

1. Open up template/catalog/product/list/toolbar.phtml, and look for the “Sort By” div. Completely replace the select and dropdown options

<?php foreach($this->getAvailableOrders() as $_key=>$_order): ?>
<a href="<?php echo $this->getOrderUrl($_key, 'asc') ?>" >
<?php echo $this->__($_order) ?></a>
<?php endforeach; ?>

… 86 more words
Magento