product photos first commit - only upload base photo
This commit is contained in:
@@ -48,6 +48,7 @@ Configure::write('App', [
|
||||
'namespace' => 'TestApp',
|
||||
'encoding' => 'UTF-8',
|
||||
'paths' => [
|
||||
'webroot' => PLUGIN_ROOT . DS . 'webroot' . DS,
|
||||
'templates' => [
|
||||
PLUGIN_ROOT . DS . 'tests' . DS . 'test_app' . DS . 'templates' . DS,
|
||||
],
|
||||
@@ -55,6 +56,31 @@ Configure::write('App', [
|
||||
]);
|
||||
|
||||
Configure::write('debug', true);
|
||||
Configure::write('CakeProducts', [
|
||||
'photos' => [
|
||||
'directory' => PLUGIN_ROOT . DS . 'tests' . DS . 'test_app' . DS . 'webroot' . DS . 'images' . DS . 'products' . DS,
|
||||
],
|
||||
/**
|
||||
* internal CakeProducts settings - used in the source of truth/internal only system.
|
||||
* Can optionally manage external catalogs
|
||||
*
|
||||
* - syncExternally - defaults to false - product catalogs can have 1 or more external catalogs linked to them
|
||||
* which will receive changes to the catalogs and optionally allow for external API access.
|
||||
* Will have no effect if true but no external catalogs have been added or none are enabled
|
||||
*/
|
||||
'internal' => [
|
||||
'enabled' => true,
|
||||
/**
|
||||
* syncExternally defaults to false - product catalogs can have 1 or more external catalogs linked to them
|
||||
* which will receive changes to the catalogs and optionally allow for external API access.
|
||||
* Will have no effect if true but no external catalogs have been added or none are enabled
|
||||
*/
|
||||
'syncExternally' => false,
|
||||
],
|
||||
'external' => [ // product catalog settings for external use (as an API server to power an ecommerce site for example)
|
||||
'enabled' => false,
|
||||
],
|
||||
]);
|
||||
|
||||
$cache = [
|
||||
'default' => [
|
||||
|
||||
Reference in New Issue
Block a user