Skip to content

Instantly share code, notes, and snippets.

@evgv
Last active August 29, 2016 09:42
Show Gist options
  • Save evgv/e51e68ceb2197639afd7782d9de4462f to your computer and use it in GitHub Desktop.
Save evgv/e51e68ceb2197639afd7782d9de4462f to your computer and use it in GitHub Desktop.
Magento. SQL. Copy product description attribute to short description.
UPDATE catalog_product_entity_text AS A

SET A.value = (
			SELECT B.value
			FROM (SELECT * FROM catalog_product_entity_text) AS B
			WHERE B.attribute_id = 72
			AND B.entity_id = A.entity_id
			AND B.store_id = A.store_id
		)
					
WHERE A.attribute_id = 73
#AND A.entity_id = 388
#AND A.store_id = 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment