Skip to content
Permalink
Browse files

AdminThemes: update config.xml after copying of theme, part 3.

This is related to #655.
  • Loading branch information...
Traumflug committed Aug 28, 2019
1 parent b5bb206 commit fc1c228503dd21d4477b7f1a34fde4e95cf1faa6
Showing with 15 additions and 0 deletions.
  1. +15 −0 controllers/admin/AdminThemesController.php
@@ -559,6 +559,21 @@ public function processAdd()
$variation->attributes()['name'] = Tools::getValue('name');
$variation->attributes()['directory'] = $newDir;
$value = Tools::getValue('product_per_page');
if ($value) {
$variation->attributes()['product_per_page'] = (int) $value;
}
foreach ([
'responsive',
'default_left_column',
'default_right_column',
] as $key) {
$value = Tools::getValue($key);
if ($value !== false) {
$variation->attributes()[$key] = (int) $value;
}
}
// Write XML coming with the package into the theme.
// Use DOMDocument to get formatted output.
$dom = new DOMDocument();

0 comments on commit fc1c228

Please sign in to comment.
You can’t perform that action at this time.