No se han encontrado widgets en la barra lateral

Mover la imagen de categoría sobre el breadcrum en layout

Para mover la imágen de categoría y sacarla del contenedor derecho sobre el breadcrum se utilizxa el sgte código en el archivo catalog_category_view.xml del módulo magento_catalog <move element="category.image" destination="page.top" before="breadcrumbs"/>

Leer más

Obtener Wishlist por usuario

/** * @param int $customerId */ public function getWishlistByCustomerId($customerId) { $wishlist = $this->wishlist->loadByCustomerId($customerId)->getItemCollection(); return $wishlist; } getWishlistByCustomerId($customerId); if(count($wishlistCollection)) { foreach ($wishlistCollection as $_item) { /* You can get ID, Name,…

Leer más

Subir módulo a Magento

Subir carpeta a del modulo (Verificar que la carpeta no esté en el servidor, si la carpeta está, solamente subir las carpetas internas que no estén) /html/app/code Ingresar por Putty…

Leer más

Datos adjuntos en correo

En el controlador del formulario de envío recibimos los datos. Como medida de seguridad en Magento hay que usar el $this->request heredado desde el action. En este caso inyectamos mediante…

Leer más

Eliminar todos los productos por MySQL

SET FOREIGN_KEY_CHECKS = 0; TRUNCATE TABLE `catalog_category_product`; TRUNCATE TABLE `catalog_category_product_index`; TRUNCATE TABLE `catalog_category_product_index_tmp`; TRUNCATE TABLE `catalog_compare_item`; TRUNCATE TABLE `catalog_product_bundle_option`; TRUNCATE TABLE `catalog_product_bundle_option_value`; TRUNCATE TABLE `catalog_product_bundle_price_index`; TRUNCATE TABLE `catalog_product_bundle_selection`; TRUNCATE TABLE…

Leer más

Hacer Zoom In dentro de la galería en Pdp

Buscar el archivo view.xml dentro de la carpeta etc ubicada en el tema del sitio y en las líneas 223 aprox agregar al nodo de magnifier el subnodo mode con…

Leer más

Habilitar modo mantención

1 - Ingresar en la consola2 - Dirigirse a la raíz del sitio3 - Ejecutar bin/magento maintenance:enable --ip={ ip 1} --ip={ ip 2 } Deshabilitar modo mantención bin/magento maintenance:disable

Leer más

Reindexar

1 - Ingresar a la consola2 - Dirigirse a la raíz del sitio3 - Ejecutar: php -dmemory_limit=5G bin/magento indexer:reindex

Leer más

Borrar caché por ssh

1 - Ingresar a la consola2 - Dirigirse a la raíz del sitio3 - Ejecutar: php -dmemory_limit=5G bin/magento cache:clean php -dmemory_limit=5G bin/magento cache:flush

Leer más

Recompilar todo el Magento 2

1 - Ir a la consola2 - Dirigirse a la raíz del sitio3 - Ejecutar rm -rf var/cache/* var/page_cache/* var/generation/* var/view_preprocessed/* pub/static/* php -dmemory_limit=2G bin/magento setup:upgrade php -dmemory_limit=7G bin/magento setup:di:compile…

Leer más