Proceed to Checkout button on Cart(s) page broken

  • Posts: 48
  • Thank you received: 1
10 years 3 months ago #188290

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 2.5.28
-- PHP version -- : 5.4.37

The shop is mostly working. There are two instances where the "proceed to cart" button works fine. The popup when an item is added to the cart, and the "proceed to cart" button on the cart module.

However, I have a "Shopping Cart" menu item in the shop menu that gives a wider format view of the cart, has a save button, and a proceed to checkout button.

Pressing the proceed to checkout button does a page load, but the only change is that an additional /cart is appended to the URL (once, it doesn't continuously append).

Updating/deleting cart items works fine from this page.

Not sure if this is potentially a SEF issue (I have no additional SEF modules installed, just Joomla SEF enabled)

Attached is a screenshot of the cart page in question.

Attachments:

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

  • Posts: 2143
  • Thank you received: 747
10 years 3 months ago #188307

Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

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

  • Posts: 48
  • Thank you received: 1
10 years 3 months ago #188412

I missed that thread somehow, sorry. Didn't resolve my issue however.

My "force menu on checkout" is set to a Hikashop checkout menu item. URL would be /hikashop/checkout, and navigating to it directly works fine.

Doesn't seem to have any effect on the behavior of the /hikashop/cart page's checkout button, still goes to /hikashop/cart/cart

Unfortunately, in the thread referenced above, the user just dropped the cart menu item entirely and loaded a cart module into an article. That isn't exactly resolving the cart menu item issue.

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

  • Posts: 83832
  • Thank you received: 13572
  • MODERATOR
10 years 3 months ago #188591

Hi,

If you have the force menu on checkout set to a hikashop checkout menu item and that you're using the latest version of HikaShop, it should work fine.
So the only thing left I can think about is that there is a template override which doesn't handle that properly.
Please look for the file templates/YOUR_TEMPLATE/html/com_hikashop/cart/showcart.php
If you have it, rename it to something else in order to deactivate the view override and it should help.

Otherwise, please provide a backend access with a link to this thread via our contact form so that we can look at your settings.

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

  • Posts: 83832
  • Thank you received: 13572
  • MODERATOR
10 years 3 months ago #189142

Hi,

Thank you for the access.
We found the issue and fixed it by changing the line:

if($cart_type == 'cart' && $this->params->get('show_cart_proceed',1)) echo $this->cart->displayButton(JText::_('PROCEED_TO_CHECKOUT'),'checkout',$this->params,$url_checkout,'');
to:
if($cart_type == 'cart' && $this->params->get('show_cart_proceed',1)) echo $this->cart->displayButton(JText::_('PROCEED_TO_CHECKOUT'),'checkout',$this->params,$url_checkout,'window.location=\''.$url_checkout.'\';return false;');
in the file "showcart" of the view "cart" via the menu Display>Views.

The following user(s) said Thank You: Llarian, auron89

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

  • Posts: 846
  • Thank you received: 92
10 years 3 months ago #189163

Hi
Could we have more information to understand more about your modification in the php side since the code mix php and javascript ? it seem to be relative to javascript DOM ? does it concern all HKS user ? Do we need an update ?
Thank's

Last edit: 10 years 3 months ago by lionel75.

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

  • Posts: 48
  • Thank you received: 1
10 years 3 months ago #189172

Confirmed, that fixed it. Thank you for the help.

Your support has been fantastic while I've been trying to get some of the initial kinks worked out of our new storefront.

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

  • Posts: 83832
  • Thank you received: 13572
  • MODERATOR
10 years 3 months ago #189175

Hi,

@lionel75:
It's simple. Some javascript was missing. It doesn't concern everyone. If the button works on your website, or if you don't display it, or if you don't use the multiple cart system you don't need the patch.
And in any case, you can just apply the change I talked about if you want to fix it.
It will be included in the next version of HikaShop, as always.

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

  • Posts: 20
  • Thank you received: 0
  • Hikashop Business
10 years 3 months ago #190525

I have the same problem with the latest business edition (HikaShop Business: 2.3.5) and do not find that bit of code in the file specified (I even did a Ctrl+F for "PROCEED" and comes up with zero).
Can you tell me what line it is on? (Am building on localhost, so cannot show you the site)

The Proceed to Checkout button does not work from a cart display menu item that shows the cart contents in the main content area.
The same button does however work from a cart module.

Last edit: 10 years 3 months ago by TwoFatFingers. Reason: updating

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

  • Posts: 16
  • Thank you received: 1
10 years 3 months ago #190527

same thing happened to me, for uknown reasons chrome cannot find the words lol..

look at the end of the file, it's one of the last "if"

Last edit: 10 years 3 months ago by auron89.
The following user(s) said Thank You: TwoFatFingers

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

  • Posts: 20
  • Thank you received: 0
  • Hikashop Business
10 years 3 months ago #190528

Perfect! thank you!!!

(should probably go to Google forum and notify them of the find error! LOL )

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

Time to create page: 0.119 seconds
Powered by Kunena Forum