Skip to main content

Itemid is not respected

More
3 years 7 months ago #349861 by neo191987
Hi, now I do tests with Joomla 4 and found this problem. When the Empty the Cart, the page will be reloaded, but it will not retain itemid even though it is entered. In the demo with Joomla 3 works properly. It may have affected the features - Set As Current Cart and Delete Cart in User control panel>Carts.
Code:
hikashop_completeLink('cart&task=remove&cid='.$cart->cart_id.'&'.hikashop_getFormToken().'=1&Itemid='.$Itemid)

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

More
3 years 7 months ago #349868 by nicolas
Replied by nicolas on topic Itemid is not respected
Hi,

Note that this is the URL to empty the cart. Once the cart is empty, the system will automatically redirect to the "URL where to redirect when the cart is empty" configured in the HikaShop configuration.
So check that setting. If that setting is empty, HikaShop should try to keep the current Itemid if it's a HikaShop menu item type. If not, it will automatically select another one.

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

More
3 years 7 months ago - 3 years 7 months ago #349983 by neo191987
Replied by neo191987 on topic Itemid is not respected
Hi, I want to ask if there is a way to make after executing the function to be redirected to a given url.
For example
Code:
hikashop_completeLink('cart&task=remove&cid='.$cart->cart_id.'&'.hikashop_getFormToken().'=1&Itemid='.$Itemid. '&redirect=another url address')
or something like this,
Last edit: 3 years 7 months ago by neo191987.

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

More
3 years 7 months ago #349988 by nicolas
Replied by nicolas on topic Itemid is not respected
Hi,

There is no direct parameter you can use for that.
However, in a plugin of the group "hikashop" or "system", you can implement the event onAfterCartDelete(&$ids) and in it, you can redirect the user wherever you want before HikaShop redirects to the "URL where to redirect when the cart is empty".

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

Time to create page: 0.063 seconds
Powered by Kunena Forum