[Skip to main content](#vessel-content)

#   Inconsistent behaviour of the wishlist 'Share' feature.

##

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

10 years 4 days ago [\#255860](#255860) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  *[Inconsistent behaviour of the wishlist 'Share' feature.](/forum/41-wishlist/887590-inconsistent-behaviour-of-the-wishlist-share-feature#255860 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.6.25 -- Browser(s) name and version -- : Any  I'm testing with users, carts and wishlists and i have found some inconsistence in the share wishlist feature.  1. I have a brand new wishlist with several products. As of default it has as 'Share property NOBODY'.  I tested with two other users from different browsers and they can not access the wishlist using the same URL.  2. Then, I changed 'Share property to Registered users&quot; and it properly works being accessible for logged users.  3. Then I changed to email. Tested with logined and non logined users and works properly.  4. This is the end. When I go back to Nobody for the Shared property, it is forever viewable by any user, being it registered or not, being it logined or not.  So it seems like after using the URL obtained with the email selection of the Share dropdown list it stays forever viewable by everybody.  But if, then, I put Registered users in the share list, then it behaves as expected, but going back to nobody offers the list to any visitor.  ISN'T THIS A BUG?  Best regards,")* was created by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")*

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.4
-- PHP version -- : 5.6.25
-- Browser(s) name and version -- : Any

I'm testing with users, carts and wishlists and i have found some inconsistence in the share wishlist feature.

1. I have a brand new wishlist with several products. As of default it has as 'Share property NOBODY'.

I tested with two other users from different browsers and they can not access the wishlist using the same URL.

2. Then, I changed 'Share property to Registered users" and it properly works being accessible for logged users.

3. Then I changed to email. Tested with logined and non logined users and works properly.

4. This is the end. When I go back to Nobody for the Shared property, it is forever viewable by any user, being it registered or not, being it logined or not.

So it seems like after using the URL obtained with the email selection of the Share dropdown list it stays forever viewable by everybody.

But if, then, I put Registered users in the share list, then it behaves as expected, but going back to nobody offers the list to any visitor.

ISN'T THIS A BUG?

Best regards,

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQxLXdpc2hsaXN0Lzg4NzU5MC1pbmNvbnNpc3RlbnQtYmVoYXZpb3VyLW9mLXRoZS13aXNobGlzdC1zaGFyZS1mZWF0dXJlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86586
- Thank you received: 14325
-
-

10 years 4 days ago [\#255864](#255864) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Inconsistent behaviour of the wishlist 'Share' feature.](/forum/41-wishlist/887590-inconsistent-behaviour-of-the-wishlist-share-feature#255864 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.6.25 -- Browser(s) name and version -- : Any  I'm testing with users, carts and wishlists and i have found some inconsistence in the share wishlist feature.  1. I have a brand new wishlist with several products. As of default it has as 'Share property NOBODY'.  I tested with two other users from different browsers and they can not access the wishlist using the same URL.  2. Then, I changed 'Share property to Registered users&quot; and it properly works being accessible for logged users.  3. Then I changed to email. Tested with logined and non logined users and works properly.  4. This is the end. When I go back to Nobody for the Shared property, it is forever viewable by any user, being it registered or not, being it logined or not.  So it seems like after using the URL obtained with the email selection of the Share dropdown list it stays forever viewable by everybody.  But if, then, I put Registered users in the share list, then it behaves as expected, but going back to nobody offers the list to any visitor.  ISN'T THIS A BUG?  Best regards,")*

Hi,

Thank you for your feedback. That's indeed a bug and we were able to reproduce it and fix it.
Add the code: Code:

} elseif($cartVal-&gt;cart_share=='nobody' &amp;&amp; $cartVal-&gt;user_id!=JFactory::getUser()-&gt;id){ $cartVal-&gt;display = false; }

after the code: Code:

else if(JRequest::getString('link','link') == $cartVal-&gt;cart_share &#124;&#124; strlen($cartVal-&gt;cart_share) == 20){ $cartVal-&gt;display = $cartVal-&gt;cart_share;

in components/com_hikashop/views/cart/view.html.php and that will work properly as far as I could test.

The following user(s) said Thank You: [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQxLXdpc2hsaXN0Lzg4NzU5MC1pbmNvbnNpc3RlbnQtYmVoYXZpb3VyLW9mLXRoZS13aXNobGlzdC1zaGFyZS1mZWF0dXJlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

10 years 4 days ago [\#255892](#255892) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  Replied by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")* on topic *[Inconsistent behaviour of the wishlist 'Share' feature.](/forum/41-wishlist/887590-inconsistent-behaviour-of-the-wishlist-share-feature#255892 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.6.25 -- Browser(s) name and version -- : Any  I'm testing with users, carts and wishlists and i have found some inconsistence in the share wishlist feature.  1. I have a brand new wishlist with several products. As of default it has as 'Share property NOBODY'.  I tested with two other users from different browsers and they can not access the wishlist using the same URL.  2. Then, I changed 'Share property to Registered users&quot; and it properly works being accessible for logged users.  3. Then I changed to email. Tested with logined and non logined users and works properly.  4. This is the end. When I go back to Nobody for the Shared property, it is forever viewable by any user, being it registered or not, being it logined or not.  So it seems like after using the URL obtained with the email selection of the Share dropdown list it stays forever viewable by everybody.  But if, then, I put Registered users in the share list, then it behaves as expected, but going back to nobody offers the list to any visitor.  ISN'T THIS A BUG?  Best regards,")*

Thanks, now it's working properly.

-- Víctor

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQxLXdpc2hsaXN0Lzg4NzU5MC1pbmNvbnNpc3RlbnQtYmVoYXZpb3VyLW9mLXRoZS13aXNobGlzdC1zaGFyZS1mZWF0dXJlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.048 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
