Proceed to Checkout in MiniCart is not working

  • Posts: 2
  • Thank you received: 0
7 years 4 months ago #274133

-- url of the page with the problem -- : www.barschule-muenchen.de
-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.3
-- PHP version -- : 7.0.19
-- Browser(s) name and version -- : All

After adding products to the cart, clicking on the mini cart shows a button "zur Kasse" which means "proceed to checkout". Pressing that button just reloads to current page instead of leading the user to the checkout process.

Any help deeply appreciated.

Thanks in advance
Stefan

Attachments:

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

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
7 years 4 months ago #274136

Hi,

The issue is that the cart module on your website is not the default one we have in HikaShop. It seems to be a customized version of the cart module from HikaShop 2.x. That cart module isn't fully compatible with HikaShop3.x, especially that button.
So you'll have to contact the developer of that module (I suppose it is your template provider) so that they can update the code for that button.
If it is a HikaShop cart module that has been customized, you can also edit the file "cart" of the view "product" via the menu Display>Views and fix the code of the button near the end of the view file.

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

  • Posts: 234
  • Thank you received: 4
6 years 10 months ago #285953

Hi,

I too am having this problem however this is the standard hikashop cart. I am not sure where to look for answers.

Cheers
Iain

www.craven-equipment.co.uk

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
6 years 10 months ago #285954

Hello,

If you're talking about the module in the top menu ; I'm afraid that is not the HikaShop cart module but it's something customized by the template.
You have the exact same cart than in the first post of this thread.
And the content "The Basket is empty" is provided by the template itself ; the module is called "gkPopupCart"

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 234
  • Thank you received: 4
6 years 10 months ago #286007

Here is the solution to the problem,

Hi all

I made a few ajustments to cart.php to make it work in Hikashop 3.2.0

Line 11 add this:
CODE: SELECT ALL

global $Itemid;
$css_button = $this->config->get('css_button', 'hikabtn');
$css_button_checkout = $this->config->get('css_button_checkout', '');
$module_id = (int)$this->params->get('id', 0);

Around line 120 replace form tag with:
CODE: SELECT ALL
<form action="<?php echo hikashop_completeLink('product&task=updatecart'.$this->url_itemid, false, true); ?>" method="post" name="hikashop_<?php echo $this->element->cart_type; ?>_form" onsubmit="if(window.hikashop) return window.hikashop.submitCartModule(this, 'hikashop_cart_<?php echo $module_id; ?>', '<?php echo $this->element->cart_type; ?>');">

Around line 327 replace with this:
CODE: SELECT ALL
<?php
if ($this->params->get('cart_type', 'cart') != 'wishlist' && $this->params->get('from', 'display') == 'module') :
   if($this->params->get('show_cart_proceed',1)) {
?>
   <a class="<?php echo $css_button . ' ' . $css_button_checkout; ?>" href="<?php echo $this->url_checkout; ?>" onclick="if(this.disable) return false; this.disable = true;"><span><?php
   echo JText::_('PROCEED_TO_CHECKOUT');
?></span></a>               
<?php
}
endif; ?>

Regards,
Henrik

My regards to Henrik

Last edit: 6 years 9 months ago by Jerome. Reason: [code] tag is nice
The following user(s) said Thank You: nicolas

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

  • Posts: 1
  • Thank you received: 0
6 years 9 months ago #287233

Great work. Thanks. I can confirm that the code changes above by mad-q will fix the Gavick custom cart issues.

Much appreciated.

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

Time to create page: 0.078 seconds
Powered by Kunena Forum