Order product list on the frontend- PROBLEM

  • Posts: 44
  • Thank you received: 0
13 years 5 months ago #18001

Hi,

I don't know what went wrong here:


can somebody help me?

Last edit: 13 years 5 months ago by gerard_pp. Reason: image removed

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

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
13 years 5 months ago #18003

What code do you have on that line in that file ?

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

  • Posts: 44
  • Thank you received: 0
13 years 5 months ago #18005
Attachments:

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

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
13 years 5 months ago #18006

There is no foreach on that 198 line. Are you sure that you did the screenshot for the correct file ?

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

  • Posts: 44
  • Thank you received: 0
13 years 5 months ago #18008

Sorry about that. This is the file:

Attachments:

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

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
13 years 5 months ago #18009

You don't have the code of the latest version so that's why you have that message.
The easiest will be to just change that line to:
foreach(@$product->files as $file){

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

  • Posts: 44
  • Thank you received: 0
13 years 5 months ago #18011

Looks like it is still messed up

Is the php file on my template's folder the same as the joomla views/orders/tmpl/show.php?

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

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
13 years 5 months ago #18012

No.In the latest version of HikaShop, the code is not like that and this error does not appear. You must be using the code from a previous release.

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

  • Posts: 44
  • Thank you received: 0
13 years 5 months ago #18014

I recently updated to hikashop 1.5.1 Looks like the code is messed... Can you please send me the updated code to replace what i have on my template's folder?

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

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
13 years 5 months ago #18015

Just click on the "remove customization" icon on the views listing for that view and you will use automatically the new version.

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

  • Posts: 44
  • Thank you received: 0
13 years 5 months ago #18018

:laugh:
I was surprised on how easy this error got fixed. If i knew from the beginning it was so easy, i wouldn't bother you.
Thanks again bro.

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

Time to create page: 0.081 seconds
Powered by Kunena Forum