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

#   Prevent google indexing cart links

##

- **[BeLlSiBuB](/forum/user/17367-bellsibub "View BeLlSiBuB's Profile")**
- [![BeLlSiBuB's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/17367-bellsibub "View BeLlSiBuB's Profile") Topic Author
- [ Offline](/forum/user/17367-bellsibub)

Less More

- Posts: 43
- Thank you received: 0
-
-

11 years 6 months ago -  11 years 6 months ago [\#200044](#200044) by [BeLlSiBuB](/forum/user/17367-bellsibub "View BeLlSiBuB's Profile")  *[Prevent google indexing cart links](/forum/25-install-update/876643-prevent-google-indexing-cart-links#200044 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : Joomla! 3.3.6 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Firefox 37.0.2  Hi, I have found that google keeps indexing component links to carts/wishlists. I don't think it's a good idea to have potential customers clicking on these links to get to the website only to be greeted with virtually a blank page and a messege saying either &quot;You must be logged in to use wishlists&quot; or &quot;Product successfully added to the cart&quot;.  Please refer to the hidden URL and attachment.  Is there a way to stop this other than robots.txt please?")* was created by *[BeLlSiBuB](/forum/user/17367-bellsibub "View BeLlSiBuB's Profile")*

-- HikaShop version -- : 2.4.0
-- Joomla version -- : Joomla! 3.3.6
-- PHP version -- : 5.3.29
-- Browser(s) name and version -- : Firefox 37.0.2

Hi,
I have found that google keeps indexing component links to carts/wishlists. I don't think it's a good idea to have potential customers clicking on these links to get to the website only to be greeted with virtually a blank page and a messege saying either "You must be logged in to use wishlists" or "Product successfully added to the cart".

Please refer to the hidden URL and attachment.

Is there a way to stop this other than robots.txt please?

- [ ![wishlists-carts.jpg](/forum/attachment/24104) ](/forum/attachment/24104 "...ists-carts.jpg") [ ](/forum/attachment/24104?download=1 "...ists-carts.jpg")

Last edit: 11 years 6 months ago by [BeLlSiBuB](/forum/user/17367-bellsibub "View BeLlSiBuB's Profile").

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 6 months ago [\#200081](#200081) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Prevent google indexing cart links](/forum/25-install-update/876643-prevent-google-indexing-cart-links#200081 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : Joomla! 3.3.6 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Firefox 37.0.2  Hi, I have found that google keeps indexing component links to carts/wishlists. I don't think it's a good idea to have potential customers clicking on these links to get to the website only to be greeted with virtually a blank page and a messege saying either &quot;You must be logged in to use wishlists&quot; or &quot;Product successfully added to the cart&quot;.  Please refer to the hidden URL and attachment.  Is there a way to stop this other than robots.txt please?")*

Hi,

We just added code on our end based on your request, in the file "administrator/components/com_hikashop/helpers/cart.php", function "getJS()", replace: Code:

echo '&lt;div style="display:none;"&gt;'. '&lt;a rel="{handler: \'iframe\',size: {x: '.$popupWidth.', y: '.$popupHeight.'}}" id="hikashop_notice_box_trigger_link" href="'.hikashop_completeLink('checkout&amp;task=notice&amp;cart_type=cart'.$url_itemid,true).'"&gt;&lt;/a&gt;'. '&lt;a rel="{handler: \'iframe\',size: {x: '.$popupWidth.', y: '.$popupHeight.'}}" id="hikashop_notice_wishlist_box_trigger_link" href="'.hikashop_completeLink('checkout&amp;task=notice&amp;cart_type=wishlist'.$url_itemid,true).'"&gt;&lt;/a&gt;'. '&lt;/div&gt;';

By: Code:

echo '&lt;div style="display:none;"&gt;'. '&lt;a rel="{handler: \'iframe\',size: {x: '.$popupWidth.', y: '.$popupHeight.'}} nofollow" id="hikashop_notice_box_trigger_link" href="'.hikashop_completeLink('checkout&amp;task=notice&amp;cart_type=cart'.$url_itemid,true).'"&gt;&lt;/a&gt;'. '&lt;a rel="{handler: \'iframe\',size: {x: '.$popupWidth.', y: '.$popupHeight.'}} nofollow" id="hikashop_notice_wishlist_box_trigger_link" href="'.hikashop_completeLink('checkout&amp;task=notice&amp;cart_type=wishlist'.$url_itemid,true).'"&gt;&lt;/a&gt;'. '&lt;/div&gt;';

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

- **[BeLlSiBuB](/forum/user/17367-bellsibub "View BeLlSiBuB's Profile")**
- [![BeLlSiBuB's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/17367-bellsibub "View BeLlSiBuB's Profile") Topic Author
- [ Offline](/forum/user/17367-bellsibub)

Less More

- Posts: 43
- Thank you received: 0
-
-

11 years 6 months ago [\#200119](#200119) by [BeLlSiBuB](/forum/user/17367-bellsibub "View BeLlSiBuB's Profile")  Replied by *[BeLlSiBuB](/forum/user/17367-bellsibub "View BeLlSiBuB's Profile")* on topic *[Prevent google indexing cart links](/forum/25-install-update/876643-prevent-google-indexing-cart-links#200119 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : Joomla! 3.3.6 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Firefox 37.0.2  Hi, I have found that google keeps indexing component links to carts/wishlists. I don't think it's a good idea to have potential customers clicking on these links to get to the website only to be greeted with virtually a blank page and a messege saying either &quot;You must be logged in to use wishlists&quot; or &quot;Product successfully added to the cart&quot;.  Please refer to the hidden URL and attachment.  Is there a way to stop this other than robots.txt please?")*

Thanks for looking at this. I replaced what looked like the code on cart.php using dreamweaver although I could not find the exact text. So I guess I will wait and see what happens with google?

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

11 years 6 months ago [\#200124](#200124) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Prevent google indexing cart links](/forum/25-install-update/876643-prevent-google-indexing-cart-links#200124 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : Joomla! 3.3.6 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Firefox 37.0.2  Hi, I have found that google keeps indexing component links to carts/wishlists. I don't think it's a good idea to have potential customers clicking on these links to get to the website only to be greeted with virtually a blank page and a messege saying either &quot;You must be logged in to use wishlists&quot; or &quot;Product successfully added to the cart&quot;.  Please refer to the hidden URL and attachment.  Is there a way to stop this other than robots.txt please?")*

Hi,

The extra text ?

Regards,

---

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

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

- **[BeLlSiBuB](/forum/user/17367-bellsibub "View BeLlSiBuB's Profile")**
- [![BeLlSiBuB's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/17367-bellsibub "View BeLlSiBuB's Profile") Topic Author
- [ Offline](/forum/user/17367-bellsibub)

Less More

- Posts: 43
- Thank you received: 0
-
-

11 years 6 months ago [\#200176](#200176) by [BeLlSiBuB](/forum/user/17367-bellsibub "View BeLlSiBuB's Profile")  Replied by *[BeLlSiBuB](/forum/user/17367-bellsibub "View BeLlSiBuB's Profile")* on topic *[Prevent google indexing cart links](/forum/25-install-update/876643-prevent-google-indexing-cart-links#200176 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : Joomla! 3.3.6 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Firefox 37.0.2  Hi, I have found that google keeps indexing component links to carts/wishlists. I don't think it's a good idea to have potential customers clicking on these links to get to the website only to be greeted with virtually a blank page and a messege saying either &quot;You must be logged in to use wishlists&quot; or &quot;Product successfully added to the cart&quot;.  Please refer to the hidden URL and attachment.  Is there a way to stop this other than robots.txt please?")*

Ahh, I forgot to include "Ignore whitespace". So will this stop google indexing these links or does it do something else?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg3NjY0My1wcmV2ZW50LWdvb2dsZS1pbmRleGluZy1jYXJ0LWxpbmtzP3RtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

11 years 6 months ago [\#200213](#200213) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Prevent google indexing cart links](/forum/25-install-update/876643-prevent-google-indexing-cart-links#200213 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : Joomla! 3.3.6 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Firefox 37.0.2  Hi, I have found that google keeps indexing component links to carts/wishlists. I don't think it's a good idea to have potential customers clicking on these links to get to the website only to be greeted with virtually a blank page and a messege saying either &quot;You must be logged in to use wishlists&quot; or &quot;Product successfully added to the cart&quot;.  Please refer to the hidden URL and attachment.  Is there a way to stop this other than robots.txt please?")*

Yes, it will stop google indexing these links, nothing else.

The following user(s) said Thank You: [BeLlSiBuB](/forum/user/17367-bellsibub "View BeLlSiBuB's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg3NjY0My1wcmV2ZW50LWdvb2dsZS1pbmRleGluZy1jYXJ0LWxpbmtzP3RtcGw9bWFya2Rvd24=) 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.070 seconds

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