Cómo eliminar órdenes en Magento
julio 12th, 2012 Posted by freelo magento 0 thoughts on “Cómo eliminar órdenes en Magento”Hay una extensión de Magento que funciona muy bien y encima es gratuita 🙂
La extensión se llama Seamless Delete Order.
Hay una extensión de Magento que funciona muy bien y encima es gratuita 🙂
La extensión se llama Seamless Delete Order.
chmod -R 777 var/
Luego de desarrollar mi site de Magento en local y subirlo al servidor me encontré con el siguiente error:
Mage registry key "_resource_helper/core" already exists
El problema lo pude resolver con los siguientes pasos:
Eliminando la cache y las sessiones :
rm -rf var/cache/* var/session/*
Y luego haciendo un fix de los permisos de los archivos:
#for magento 1.5+
find . -type f -exec chmod 644 {} ;
find . -type d -exec chmod 755 {} ;
chmod o+w var var/.htaccess app/etc
chmod 550 mage
chmod -R o+w media
Para obtener todos los posibles valores de los atributos un producto configurable se puede utilizar el siguiente código:
// Collect options applicable to the configurable product
$productAttributeOptions = $product->getTypeInstance(true)->getConfigurableAttributesAsArray($product);
$attributeOptions = array();
foreach ($productAttributeOptions as $productAttribute) {
foreach ($productAttribute['values'] as $attribute) {
$attributeOptions[$productAttribute['label']][$attribute['value_index']] = $attribute['store_label'];
}
}
Estoy haciendo un Magento para vender remeras.
Cada remera es un producto configurable que tiene dos atributos: Color y Talla.
Por defecto salía primero el Color y luego la Talla, y yo necesitaba mostrar primero el Color. Aparentemente Magento ordena los atributos por el ID de manera descendiente.
La solución que encontré es la lanzando esta query por phpMyAdmin
UPDATE catalog_product_super_attribute SET position = 1 WHERE attribute_id = ‘your_attribute_id’
Más info acá.
Hay que ir en el administrador a System > Config > Catalog y eliminar el sufijo “.html”.
Luego hay que volver a reindexar. System > Index Management > Reindex all
http://connect20.magentocommerce.com/community/banner
Para quitar el módulo View By del front de Magento hay que ir a Sistema > Catalog > Catalog y seleccionar o bien “Grid only” o bien “List only”.
Luego de hacer un upgrade de Magento 1.4.2 a Magento 1.6.2 el script de importación de productos dejó de funcionar.
Estuve horas buscando este error
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or
update a child row: a foreign key constraint fails
(`magento_sdny_new`.`catalog_product_entity`, CONSTRAINT
`FK_CAT_PRD_ENTT_ATTR_SET_ID_EAV_ATTR_SET_ATTR_SET_ID` FOREIGN KEY
(`attribute_set_id`) REFERENCES `eav_attribute_set` (`attribute_set_i)
Finalmente descubrí aquí que este error se debe a esta línea específicamente:
$pr_simple->setAttributeSetId(9);
Y se puede deber a dos razones:
Otra cosa que tuve que hacer es ir a Sistema > Index Management y setear el índice “Product Prices” como manual.
<config>
<modules>
<mage_page> //relates to file structure
<active>true</active> //set to active
<codepool>local</codepool> //tell which folder to look in
<depends> //requires the mage core
<mage_core>
</mage_core>
</depends>
</mage_page>
</modules>
</config>
<four_columns module="page" translate="label">
<label>4 columns</label>
<template>page/4columns.phtml</template>
<layout_handle>page_four_columns</layout_handle>
</four_columns>