Add index.php file to googlemerchant XML module with redirect headers
This commit introduces a new index.php file in the googlemerchant XML module. The file contains headers to prevent caching and redirects users to the parent directory. This is part of the module's structure to ensure proper access control and user experience.
This commit is contained in:
16
modules/x13googlemerchant/upgrade/install-1.5.5.php
Normal file
16
modules/x13googlemerchant/upgrade/install-1.5.5.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
function upgrade_module_1_5_5()
|
||||
{
|
||||
Configuration::updateValue('X13_GOOGLEMERCHANT_CURRENCY_URL', 1);
|
||||
|
||||
// fix for not set shipping handling method
|
||||
if (!Configuration::get('X13_GOOGLEMERCHANT_SHIP_BEHAVIOR')) {
|
||||
Configuration::updateValue('X13_GOOGLEMERCHANT_SHIP_BEHAVIOR', 1);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user