Visitors can save and edit wishlists

  • Posts: 69
  • Thank you received: 11
11 years 5 months 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
11 years 5 months 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: 11 years 5 months ago by likandev.

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

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
11 years 5 months 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
11 years 5 months 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.061 seconds
Powered by Kunena Forum