Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

[-] BO : Permit "product_rule_group.tpl" override #1452

Merged
merged 1 commit into from

2 participants

@cinscaen

We need to use createTemplate() instead of getContext()->smarty->fetch(), like other call of tpl in this file, if we want override "product_rule_group.tpl".

Il est nécessaire d'utiliser la fonction createTemplate() au lieu de getContext()->smarty->fetch(), comme utilisé pour les autres appels dans ce fichier, si l'on veut surcharger le fichier "product_rule_group.tpl".

@cinscaen cinscaen [-] BO : Permit "product_rule_group.tpl" override
We need to use createTemplate() instead of getContext()->smarty->fetch(), like other call of tpl in this file, if we want override "product_rule_group.tpl".

Il est nécessaire d'utiliser la fonction createTemplate() au lieu de getContext()->smarty->fetch(), comme utilisé pour les autres appels dans ce fichier, si l'on veut surcharger le fichier "product_rule_group.tpl".
fbc45e5
@gRoussac gRoussac merged commit e451712 into from
@gRoussac
Collaborator

Hi,

Thank you for your PR and contribution.

Best regards

@gRoussac
Collaborator

Hi,

Sorry you made it on master branch.

Please do your PR an 1.6 branch.

Regards

@gRoussac gRoussac referenced this pull request from a commit
@gRoussac gRoussac // follwo up #1452 f570f5f
@gRoussac gRoussac referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 25, 2014
  1. @cinscaen

    [-] BO : Permit "product_rule_group.tpl" override

    cinscaen authored
    We need to use createTemplate() instead of getContext()->smarty->fetch(), like other call of tpl in this file, if we want override "product_rule_group.tpl".
    
    Il est nécessaire d'utiliser la fonction createTemplate() au lieu de getContext()->smarty->fetch(), comme utilisé pour les autres appels dans ce fichier, si l'on veut surcharger le fichier "product_rule_group.tpl".
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 controllers/admin/AdminCartRulesController.php
View
4 controllers/admin/AdminCartRulesController.php
@@ -290,7 +290,7 @@ public function getProductRuleGroupDisplay($product_rule_group_id, $product_rule
Context::getContext()->smarty->assign('product_rule_group_id', $product_rule_group_id);
Context::getContext()->smarty->assign('product_rule_group_quantity', $product_rule_group_quantity);
Context::getContext()->smarty->assign('product_rules', $product_rules);
- return Context::getContext()->smarty->fetch('controllers/cart_rules/product_rule_group.tpl');
+ return $this->createTemplate('product_rule_group.tpl')->fetch();
}
public function getProductRuleDisplay($product_rule_group_id, $product_rule_id, $product_rule_type, $selected = array())
@@ -584,4 +584,4 @@ public function displayAjaxSearchCartRuleVouchers()
$found = true;
echo Tools::jsonEncode(array('found' => $found, 'vouchers' => $vouchers));
}
-}
+}
Something went wrong with that request. Please try again.