Visitors can save and edit wishlists

  • Posts: 69
  • Thank you received: 11
12 years 3 weeks ago #73527

Hi,

I noticed that visitors are able to add, save, list and edit wishlists.

The problem I see is that visitors are seeing a list of all wishlists made by all visitors and modify, even delete them.

I'm able to see the same list from 2 different computers at the same time..

Is this a bug ( I'm trying to get it prevented from the showcart and showcarts tmpl overrides, or is this an expected behavior?

If this is an expected behavior, what is the reason?


Eduardo Chongkan - Likan Development
http://likandevelopment.com

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

  • Posts: 69
  • Thank you received: 11
12 years 3 weeks ago #73531

Update:

I added the following code to the showcarts tmpl override on line 10.


$user = JFactory::getUser();
if ($user -> guest) {
	$app = &JFactory::getApplication();
	$app -> enqueueMessage(JText::_('PLEASE_LOGIN_FIRST'));
	global $Itemid;
	$url = '';
	if (!empty($Itemid)) {
		$url = '&Itemid=' . $Itemid;
	}
	if (version_compare(JVERSION, '1.6', '<')) {
		$url = 'index.php?option=com_user&view=login' . $url;
	} else {
		$url = 'index.php?option=com_users&view=login' . $url;
	}
	$app -> redirect(JRoute::_($url . '&return=' . urlencode(base64_encode(hikashop_currentUrl())), false));
	return false;
}


Eduardo Chongkan - Likan Development
http://likandevelopment.com
Last edit: 12 years 3 weeks ago by likandev.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
12 years 3 weeks ago #73597

Hi,

Thanks for the report.
I have already see this bug in our bug tracker and I am quite sure that the it is fixed in HikaShop 2.0
We would verify it, for more security :)

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 69
  • Thank you received: 11
12 years 3 weeks ago #73651

Hi, you are welcome. Do you know if by any chance there is a bug when adding items to a new wishlist?

I create a new wishlist, but every product I add goes to the 1 list I have, I never get to have more than 1.


Eduardo Chongkan - Likan Development
http://likandevelopment.com

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

Time to create page: 0.045 seconds
Powered by Kunena Forum