Skip to content

Instantly share code, notes, and snippets.

@keuzenkamp
Forked from yevgenko/email.sh
Last active December 27, 2015 06:59
Show Gist options
  • Save keuzenkamp/7285230 to your computer and use it in GitHub Desktop.
Save keuzenkamp/7285230 to your computer and use it in GitHub Desktop.
#!/bin/sh
phone='+31 (0)13 785 24 47'
email='info@pieterkeuzenkamp.nl'
basedir='app/design/frontend/pkw_responsive/default'
find $basedir/locale/en_US/template/email/sales -type f -exec sed -i 's/alt="Magento"/alt="{{var order.getStoreGroupName()}}"/g' '{}' \;
find $basedir/locale/en_US/template/email/sales -type f -exec sed -i 's/Magento Demo Store/{{var order.getStoreGroupName()}} /g' '{}' \;
find $basedir/locale/en_US/template/email/sales -type f -exec sed -i 's/Demo Store/{{var order.getStoreGroupName()}} /g' '{}' \;
find $basedir/locale/en_US/template/email/sales -type f -exec sed -i "s/mailto:magento@varien.com/mailto:$email/g" '{}' \;
find $basedir/locale/en_US/template/email/sales -type f -exec sed -i "s/dummyemail@magentocommerce.com/$email/g" '{}' \;
find $basedir/locale/en_US/template/email -type f -exec sed -i 's/alt="Magento"/alt="{{var customer.store.name}}"/g' '{}' \;
find $basedir/locale/en_US/template/email -type f -exec sed -i 's/Magento Demo Store/{{var customer.store.name}} /g' '{}' \;
find $basedir/locale/en_US/template/email -type f -exec sed -i 's/Demo Store/{{var customer.store.name}} /g' '{}' \;
find $basedir/locale/en_US/template/email -type f -exec sed -i "s/mailto:magento@varien.com/mailto:$email/g" '{}' \;
find $basedir/locale/en_US/template/email -type f -exec sed -i "s/dummyemail@magentocommerce.com/$email/g" '{}' \;
find $basedir/locale/en_US/template/email -type f -exec sed -i "s/(555) 555-0123/$phone/g" '{}' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment