Proceed to Checkout issue

  • Posts: 292
  • Thank you received: 5
  • Hikashop Business
13 years 10 months ago #4162

Error message from browser - The page isn't redirecting properly.
Initially referred to here .
I have started a new thread to separate it from the main discussion of the other thread.

Following a trace through the code found that Joomla/Hikashop was in a continuous redirect loop.
This happens both with a checkout link from the Joomla menu and proceed to checkout button in the cart.

The URLs look like this:

Proceed to basket button - http://.../component/hikashop/checkout?Itemid=112
Joomla Menu - http://.../component/hikashop/checkout

Making the following patch to .../com_hikashop/controllers/checkout.php solved the problem at my end:
// global $Itemid; ** Remove this line **
$redirect = false;
$ssl = false;
$new_item_id = $_REQUEST['Itemid']; //$Itemid; ** Change this line **
$itemid_for_checkout = $config->get('checkout_itemid','0');
if(!empty($itemid_for_checkout)){
  if($new_item_id!=$itemid_for_checkout){
    $new_item_id=$itemid_for_checkout;
    $redirect = true;
  }
}

Testing using Versions:
Joomla 1.6
Hikashop 1.4.1 (Essential)
PHP 5.3.3 (also happens with 5.2 with same code base).

This problem does not occur in the demo (also 1.4.1).
I redownloaded Hikashop 1.4.1 (Essential) and the problem still exists.

I notice $Itemid is used elsewhere in checkout.php, so I assume the real problem may lie elsewhere and my workaround just masks it for the time being.

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

  • Posts: 292
  • Thank you received: 5
  • Hikashop Business
13 years 10 months ago #4163

This might be relevant: forum.joomla.org/viewtopic.php?p=2111214
But then I have the same problem with both PHP 5.3 and 5.2 (and different machines).

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 10 months ago #4165

What is the id of the menu you selected in the option "Force a menu for the checkout" in the display tab of the config ?

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

  • Posts: 292
  • Thank you received: 5
  • Hikashop Business
13 years 10 months ago #4173

Checked and I did have it wrong - corrected but still no success.
I have uploaded a stripped down test site to a publicly accessible location.
Stripped out my template changes.
Reinstalled hikashop code.

Access details sent separately in an email.
Included mySQL access details in case this is a data issue.
I have no problem with going back to a complete clean start if thats needed, but while its in this state better see if there is anything useful which can be learnt.

Listed below test steps and results (* = unexpected behaviour).

*(a) Click on add to cart - shows as full cart.
(b) Refresh page now shows as mini-cart.
*(c) Click on cart - get 'The page isn't redirecting properly'
*(d) Hit back button - click delete icon - mini-cart still shows item.
(e) Refresh page mini-cart now empty.
(f) Goto Menu: Shop / Products / Aquariums
(g) In central region click nets link - displays OK.
(h) In left region click Aquariums.
*(i) In central region click nets link - No display.
Expected to be same as (g).
*(j) In left regision click nets link - No display.
Expected to be same as (g).
(k) Goto Menu: Shop / Checkout - Displays OK.
*(l) In central region click nets link - No display.
Expected to be same as (g).

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 10 months ago #4178

I was out today so I couldn't check that. I'll look at it tomorrow.
Yesterday, we compiled a pre version which should already fix these issues so I'll try to update to it and see if that works. Otherwise, I'll fix it more with the access you provided.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 10 months ago #4458

For other users wandering here: the problems have been fixed on the test website provided by brainforge and will be included in next release this week.

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

Time to create page: 0.059 seconds
Powered by Kunena Forum