Cart Module Option ....

  • Posts: 54
  • Thank you received: 0
9 years 10 months ago #216139

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.4
-- PHP version -- : 5.5.12

Hello:
I upgraded Hikashop to 2.6.0 from 2.5.0 and noticed that the label for empty cart message has changed.
In 2.5.0, the label was

Empty cart message override

. In 2.6.0, this message is

Empty message

. The word

Override

is missing in 2.6.0.

I believe this change is causing the cart module for my template not working properly. To begin, the cart module always shows default message for empty cart.

How can I change the label back to what was in 2.5.0? Where can I find the configuration fields (The fields used to customized a module)

Thanks,
<<< Ali >>>

Please Log in or Create an account to join the conversation.

  • Posts: 84233
  • Thank you received: 13673
  • MODERATOR
9 years 10 months ago #216147

Hi,

The label of the setting was changed in order to optimized the display of the new interface for the options of the cart module.
That change of the label has no link with the behavior of the cart module. Changing back the label won't "fix" anything.

The options are now available directly in the main Joomla settings of the module when you edit it via the Joomla modules manager.

Please Log in or Create an account to join the conversation.

  • Posts: 54
  • Thank you received: 0
9 years 10 months ago #216176

Hello:

In this case, I am not sure why the empty error message I entered is not picked up by the template (See attachments)






Mini cart suppose to show "0" (Zero).






Thanks,
<<< Ali >>>

Attachments:
Last edit: 9 years 10 months ago by QureshiMo. Reason: Replace last attachment with screen print that highlight Mini cart

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
9 years 10 months ago #216258

Hi,

Please check if you have an override on the view "product / cart" via HikaShop > Display > Views.
If it is, do a backup of the view and reset it.

In the view, you should have a code like:

$desc = trim($this->params->get('msg'));
if(empty($desc) && $desc != '0') {
	$this->params->set('msg', $emptyText);
	$desc = $emptyText;
}

if(empty($this->rows)) {
	if(!empty($desc) || $desc == '0') {
		echo $this->notice_html;
?>
		<div id="hikashop_cart" class="hikashop_cart"><?php
			echo $desc;
		?></div>
		<div class="clear_both"></div>
<?php
	}

	if(JRequest::getWord('tmpl', '') == 'component') {
		if(!headers_sent())
			header('Content-Type: text/css; charset=utf-8');
		exit;
	}
	return;
}

Please Log in or Create an account to join the conversation.

  • Posts: 54
  • Thank you received: 0
9 years 10 months ago #216370

Hello:

Still not picking up the message. Here is the code (Except for debug statement which I added, all the code seems to be be expected code)

$desc = trim($this->params->get('msg'));

echo "Debug: " . $this->params;
if(empty($desc) && $desc != '0') {
	$this->params->set('msg', $emptyText);
	$desc = $emptyText;
}

if(empty($this->rows)) {
	if(!empty($desc) || $desc == '0') {
		echo $this->notice_html;
?>
		<div id="hikashop_cart" class="hikashop_cart"><?php
			echo $desc;
		?></div>
		<div class="clear_both"></div>
<?php
	}

Here the output from the debug statement:



Thanks,
<<< Ali >>>

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
9 years 10 months ago #216425

Hi,

We are not able to reproduce the issue on our end.
Are you sure that you have the latest version of HikaShop ? (still 2.6.0 but with some bug fixes)

A solution could be to edit the view "product / cart" and add the following code at the top between php tags:

$modParams = $this->params->get('hikashopcartmodule', '');
foreach($modParams as $k => $v){
	$this->params->set($k, $v);
}

Please Log in or Create an account to join the conversation.

Time to create page: 0.090 seconds
Powered by Kunena Forum