Cart module

  • Posts: 18
  • Thank you received: 2
  • Hikashop Business Hikashop Essential
1 year 8 months ago #349765

-- HikaShop version -- : 4.7.1
-- Joomla version -- : 4.2.8
-- PHP version -- : 8.x

Hello,
I have a question regarding the button "proceed to checkout" in the cart module.
The link leads to the "component/hikashop/..." view.
Because of that, i can not control the assigned modules.

As far as I understand, the url for the button is build in the following code in the cart.php

$itemid_for_checkout = $this->config->get('checkout_itemid','0');
if(!empty($itemid_for_checkout)){
$url_checkout = hikashop_completeLink('checkout&Itemid='.$itemid_for_checkout);
}else{
$url_checkout = hikashop_completeLink('checkout'.$url_itemid);
}
Is it possible to change it to the regular "checkout(legacy)" link.
Thank you for support.
Regards
Maurizio

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 8 months ago #349772

Hi,

That's not the code used in cart.php to generate the URL of the "proceed to checkout" button of the cart module.
This might have been the case a few years ago. Are you using a view override based on an old version of HikaShop ?

With that old code, the best is to fill in the "force menu on checkout" setting of the HikaShop configuration with a HikaShop menu item. That way, the link will use that menu item and you'll be able to configure the modules on that menu item.

The following user(s) said Thank You: maurizio.dematteis@gmail.com

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

  • Posts: 18
  • Thank you received: 2
  • Hikashop Business Hikashop Essential
1 year 8 months ago #349782

Hello Nicolas,
that works fine.
You are right. The overrides of the Storefront Template from Gavicvk haven't been updated for a longer time.
Hope, i don't find many bugs more.

Thank you for your great support!
Maurizio

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

Time to create page: 0.050 seconds
Powered by Kunena Forum