Intro: custom images slideshow glitch with multi-language

ThemeBurn SupportForumsOpenCart ThemesShoppica OpenCart ThemeIntro: custom images slideshow glitch with multi-language

This topic has been marked as resolved.

There seems to be issues adding slides to the intro (front page) when you have two languages or more installed. I have 6 slides on the English tab and can only add 1 slide to the second language. If I change or add slides on the second language tab, it will change the data on the first language tab. No doubt due to the double naming of ids.

The javascript is generating this on the first language tab:
img#previous_0_0.image
img#previous_1_1.image
img#previous_2_2.image
img#previous_3_3.image
img#previous_4_4.image
img#previous_5_5.image
img#previous_6_6.image

If I click [add] it will generate:
img#previous_1_7.image

On the second language tab, it is generating:
img#previous_0_0.image

If I click [add] it will generate:
img#previous_2_2.image
img#previous_2_3.image

Once I try to assign a slide to either the first or second slides on the second tab, it changes the data on the first tab since 0_0 and 2_2 exists on both sides.

I believe the first language tab is supposed to be generating 1_1, 1_2, 1_3, 1_4, etc. and for the second tab 2_1, 2_2, 2_3, and etc.

Due to this issue, the only way to add additional slides to a second language is to keep clicking add, until you get a number combination that isn’t on the first tab and using a DOM inspector.

Shoppica 1.0.12

  • This reply was modified 4430 days ago by  GreenMelon.
March 31, 2012 at 3:19 am #7684

Hi,

Could you try to change your language IDs to:

1
2

This may fix the problem.

Best,
ThemeBurn team

April 2, 2012 at 12:02 pm #7738

The languages are set at 1 and 2. This can’t possibly be the issue as both numbers in each slide is being incremented with the same number 0_0, 1_1, 2_2, 3_3, 4_4. This would indicate that the javascript is using the same slide increment variable for both the language id and the count. Also, the number zero is not used in the slide count if loaded correctly.

This happens when it loads the page and adds the saved slides initially. When adding new slides, it increments correctly as shown above.

Meaning the bug exists when it is loading the saved slides into the javascript on page load.

Shoppica 1.0.12 on 1.5.2.1 clean install (non upgraded or modded).

April 2, 2012 at 1:27 pm #7751

I confirm this bug. The fix is provided in the file, attached to this reply. You can upload it to your opencart installation, replacing the current one.

April 2, 2012 at 4:12 pm #7755

Thank you very much!

April 2, 2012 at 4:40 pm #7757
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.