Skip to content

Instantly share code, notes, and snippets.

@jasperf
Last active August 23, 2025 01:52
Show Gist options
  • Select an option

  • Save jasperf/80a1b7875dd18a90f3040f1628faa994 to your computer and use it in GitHub Desktop.

Select an option

Save jasperf/80a1b7875dd18a90f3040f1628faa994 to your computer and use it in GitHub Desktop.
PrestaShop 1.7.6.5 to 1.7.8.11 using the Git approach before loading in Development on Prestashop Platform
cd ~/code/site/
git status
git pull origin master
git log --oneline -10
git checkout -b prestashop-1.7.8-upgrade
wget https://github.com/PrestaShop/PrestaShop/releases/download/1.7.8.11/prestashop_1.7.8.11.zip
unzip prestashop_1.7.8.11.zip
unzip prestashop.zip -d prestashop_1.7.8.11/
mkdir prestashop_1.7.8.11
unzip prestashop.zip -d prestashop_1.7.8.11/
ls -la
ls -la prestashop*
unzip prestashop.zip -d prestashop_1.7.8.11/
pwd
mkdir prestashop_new
ls -la --time-style=full-iso | grep "2025-08-23"
unzip prestashop_1.7.8.11.zip -d prestashop_new
cd prestashop_new
unzip prestashop.zip
ls -la
cd ..
pwd
# Sync new PrestaShop core files
rsync -av --delete prestashop_new/app/ app/
rsync -av --delete prestashop_new/classes/ classes/
rsync -av --delete prestashop_new/controllers/ controllers/
rsync -av --delete prestashop_new/src/ src/
rsync -av --delete prestashop_new/js/ js/
rsync -av --delete prestashop_new/tools/ tools/
rsync -av --delete prestashop_new/localization/ localization/
rsync -av --delete prestashop_new/pdf/ pdf/
git status
git status > ~/Desktop/status.text
git diff --stat
git diff --stat > ~/Desktop/stat.txt
git diff -- autoload.php
git diff -- index.php
git diff -- autoload.php
# Copy updated core files
cp prestashop_new/autoload.php .
cp prestashop_new/index.php .
cp prestashop_new/init.php .
cp prestashop_new/images.inc.php .
cp prestashop_new/composer.lock .
cp prestashop_new/phpstan.neon.dist .
# Sync updated classic theme
rsync -av --delete prestashop_new/themes/classic/ themes/classic/
ls prestashop_new/themes/ | grep _core
# Merge admin (into custom /kanri folder)
rsync -av prestashop_new/admin/ kanri/ --exclude="*.php" --exclude="autoupgrade/"
git status > ~/Desktop/status-v2.text
ll
cd kanri
ls -lh
git add .
git commit -m "Upgrade PrestaShop core to 1.7.8.11"
git status
git add .
git push origin prestashop-1.7.8-upgrade
git status
git branch
cd ..
git add .
git commit -m "all files, not just kanri directory"
git push origin prestashop-1.7.8-upgrade
git status
git log --oneline -3
git branch -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment