We currently have an issue with Hikashop 2.1.0 (but the same occured in 1.6 before we upgraded):
We have two main categories for products: Online Shop and Library. The Online shop is publicly accessible and the Library is accessible only to a registered users group called 'Members'.
We have the following settings configured in the Configuration -> Cart section:
- After a product is added to the cart: stay and display a popup notice
- Notice popup display time: 2000 ms
When a person adds something to their cart in the Online Shop area, the pop-up displays an error message:
"404 - Page not found : notice"
If we login and add a product to our cart in the Library section, the error does not appear.
So, we changed the Library menu item from 'Member' access to 'Public' access thinking that perhaps that would help - it didn't.
We also removed all customisations from the test site to ensure the code changes weren't causing an issue but that didn't help either.
Next we tried the SEO settings:
In backend -> global configuration -> site -> SEO settings and set
Search Engine Friendly URLs = No
Use URL rewriting = No
Now the cart pop-up works fine on all categories.
My developers investigated further and found that if we change the following code, it works OK with SEF settings on:
File Path : /administrator/components/com_hikashop/helpers/Cart.php
Original Code :
echo '<div style="display:none;">'.
'<a rel="{handler: \'iframe\',size: {x: 480, y: 140}}" id="hikashop_notice_box_trigger_link" href="'.hikashop_completeLink('checkout&task=notice'.$url_itemid,true).'"></a>'.
'<a rel="{handler: \'iframe\',size: {x: 480, y: 140}}" id="hikashop_notice_wishlist_box_trigger_link" href="'.hikashop_completeLink('checkout&task=notice&cart_type=wishlist'.$url_itemid,true).'"></a>'.
'</div>';
Updated code :
echo '<div style="display:none;">'.
'<a rel="{handler: \'iframe\',size: {x: 480, y: 140}}" id="hikashop_notice_box_trigger_link" href="/index.php?option=com_hikashop&ctrl=checkout&task=notice&tmpl=component"></a>'.
'<a rel="{handler: \'iframe\',size: {x: 480, y: 140}}" id="hikashop_notice_wishlist_box_trigger_link" href="'.hikashop_completeLink('checkout&task=notice&cart_type=wishlist'.$url_itemid,true).'"></a>'.
'</div>';
Any thoughts on why this might be?
thanks,
B.