first commit

This commit is contained in:
2025-01-06 20:47:25 +01:00
commit 3bdbd78c2f
25591 changed files with 3586440 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
<?php
class ProductController extends ProductControllerCore
{
public function canonicalRedirection($canonical_url = '')
{
if (is_object($this->product) && Configuration::get('X13LINKREWRITE_PRODUCT_R')) {
if (!$this->product->active) {
$category = new Category($this->product->id_category_default);
if ($category->active) {
Tools::redirect($this->context->link->getCategoryLink($category->id));
die();
}
}
}
parent::canonicalRedirection($canonical_url);
}
}