[-] MO productcomments and loyalty: loyalty doesn't disconnect current user anymore
This commit is contained in:
1 parent
a1555c3fc8
commit
bdd84771b7
2 files changed
+7
-1
No files matched your search
@@ -85,7 +85,8 @@ class LoyaltyModule extends ObjectModel
|
|||||||
$total = 0;
|
$total = 0;
|
||||||
if (Validate::isLoadedObject($cart))
|
if (Validate::isLoadedObject($cart))
|
||||||
{
|
{
|
||||||
$context = Context::getContext();
|
$currentContext = Context::getContext();
|
||||||
|
$context = clone $currentContext;
|
||||||
$context->cart = $cart;
|
$context->cart = $cart;
|
||||||
$context->customer = new Customer($context->cart->id_customer);
|
$context->customer = new Customer($context->cart->id_customer);
|
||||||
$context->language = new Language($context->cart->id_lang);
|
$context->language = new Language($context->cart->id_lang);
|
||||||
|
|||||||
@@ -27,6 +27,11 @@ var productcomments_controller_url = '{$productcomments_controller_url}';
|
|||||||
var confirm_report_message = "{l s='Are you sure you want report this comment?' mod='productcomments'}";
|
var confirm_report_message = "{l s='Are you sure you want report this comment?' mod='productcomments'}";
|
||||||
var secure_key = "{$secure_key}";
|
var secure_key = "{$secure_key}";
|
||||||
var productcomments_url_rewrite = '{$productcomments_url_rewriting_activated}';
|
var productcomments_url_rewrite = '{$productcomments_url_rewriting_activated}';
|
||||||
|
var productcomment_added = '{l s='Your comment has been added!' mod='productcomments'}';
|
||||||
|
var productcomment_added_moderation = '{l s='Your comment has been added and will be available once approved by a moderator' mod='productcomments'}';
|
||||||
|
var productcomment_title = '{l s='New comment' mod='productcomments'}';
|
||||||
|
var productcomment_ok = '{l s='OK' mod='productcomments'}';
|
||||||
|
var moderation_active = {$moderation_active};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div id="idTab5">
|
<div id="idTab5">
|
||||||
|
|||||||
Reference in new issue
Block a user