Use basic theme from version 4.7 and 5.0 on

Replace ALL removed theme basic getters with global theme getters:

Add needed widgets:

Vendorlist

You will get error message that getVendorList() do not exists in _left.tpl. This functions was moved to vendorlist widget.

So you have to move the template code to a widget.

  • At the moment vendor List has no separated template. So, create new template for example in widgets directory and name it “vendorlist.tpl”.
  • Copy vendor list code to this new template:

and replace this code with widget include:

The parameter oxwtemplate represents the name of the template, that the current widget should call. In this case it is “widget/vendorlist.tpl”.

TagCloud

You will get error that getTagCloudManager does not exists. So let’s create a new widget. As tagcloud is already in separate template inc/tags.tpl, we just need to change the template include to widget include.

Change

to

in the following templates:

  • page/details/details.tpl
  • page/shop/start.tpl
  • page/tags/tags.tpl

CategoryList

You will get error that getCatMore dosn’’t exists. You need to change category loading in template. We recommend to move this part to a widget.

  • Create a new template in the widget directory, something like categorylist.tpl
  • Copy all the code of category loading from _header.tpl to this new template:

from line

  • Replace this code with this widget include:

To see the difference how the category tree was used before and now, please have a look at the diff file for categorylist.tpl used in OXID eShop 4.6.x and the categorylist.tpl as used in OXID eShop version 4.7/5.0.

ServiceMenu

You will get error getCompareItemsCnt does not exist. So you need to add a new widget.

  • Create new template in widget directory, something like servicemenu.tpl
  • Copy user login code from _riht.tpl to this new template:

and replace this code with widget include in _right.tpl

  • In dyn/cmp_login_right.tpl change $oViewConf->getActiveClassName() to $oViewConf->getTopActiveClassName()

RecomendationList

You will get an error that getSimilarRecommLists() does not exist.

  • Create a new template in the widget directory, something like recommendation.tpl
  • Copy recommendation code from _riht.tpl to this new template:

and replace this code with widget include in _right.tpl

Smarty Plugins

getSubCatThumb

4.7.x no longer has the Smarty Plugin getSubCatThumb that at least 4.6.5 used to have e.g. out/basic/tpl/page/list/list.tpl

Copying function.getSubCatThumb.php from and to core/smarty/plugins/ brings it back.

Be advised not to mess with the files in the core directory unless you perfectly know what you are doing.

misc. arrangements

OXID bug #0004701

As the issue mentions, one might encounter

If price of a variant is set to zero, this variant inherits price from parent. “price from” of parent incorrectly shows: “from 0,00€”.

application/views/basic/tpl/inc/product.tpl

Replacing the content between [{if $product->getFPrice()}] and [{else}] from azure’s application/views/azure/tpl/widget/product/listitem_infogrid.tpl seemed to do the trick.

Of course, if your list type is different than infogrid, you might want to check the two other options ‘grid’ and ‘line’ in the same directory.


0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *