In Product/product.tpl two times same block of code

ThemeBurn SupportForumsOpenCart ThemesPavilion OpenCart ThemeIn Product/product.tpl two times same block of code

This topic has been marked as not resolved.

Hi support,

in order to modify the template better and to understand, what’s going on, could you explain me, why there are two similar blocks for the tabs?

1) One block with <?php foreach ($row['columns'] as $column): ?> at the beginning.

2) And the other one starting with <?php foreach ($column['slots'] as $slot_name): ?>

I am using custom tabs and trying to implement an accordion style for the tabs. I would like to better understand the code.

 axanne
April 1, 2015 at 9:17 pm #39740

Hi,

This code outputs page content wrapped in the layout markup: rows and column (something like Bootstrap). There are two similar code blocks as there are two levels of rows (row in a column).

If you want to modify the tabs logic, you will need to modify it in the two places.

BR,
ThemeBurn team

April 7, 2015 at 1:04 pm #39844
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.