OXID 6 - Updating theme to OXID 6

Could someone provide some tips and tricks or any good tutorial for updating existing theme that is working properly on OXID 4.10 to OXID 6?

Thank you!

you can compare flow from v4.10 with flow for v6
There are just couple of changes, so you can simply upload your teheme, activate it and fix errors appearing in logs.

Okay, thank you a lot for the suggestion.

I am trying to upgrade my own theme from OXID 4.10 to OXID 6.0 but I am getting this error:

[exception] [type OxidEsales\Eshop\Core\Exception\SystemComponentException] [code 0] [file /var/www/html/oxid6/oxideshop_ce/source/Core/Base.php] [line 74] [message Function ‘getShowFbConnect’ does not exist or is not accessible! (OxidEsales\Eshop\Core\ViewConfig)

This is the code in footer.tpl file:

        [{if $oViewConf->getShowFbConnect()}]
            <div class="altLoginBox corners clear">
                <span>[{ oxmultilang ident="LOGIN_WITH" suffix="COLON" }]</span>
                <div id="loginboxFbConnect">
                    [{include file="widget/facebook/enable.tpl" source="widget/facebook/connect.tpl" ident="#loginboxFbConnect" }]

I declared this in theme.php file:

‘group’ => ‘display’,
‘name’ => ‘getShowFbConnect’,
‘type’ => ‘arr’,
‘value’ => ’ '

Maybe the error is because of “value”, but I don’t know what to put there.

Thank you!

Function !== theme setting
Facebook functions were removed from OXID core in 6.0

So, I have to remove part where Facebook function is defined/called?

Yes, OXID announced to provide a module for Facebook integration, but I have not seen it yet

1 Like

The functionality was taken off the core and packaged as a module which can be found here: https://github.com/OXIDprojects/facebook-social-plugins-module

With help of this module, I don’t need to remove parts where Facebook functions are defined/called?

you definitely should remove this functions from template, because your shop will not work without this module.
And sometimes OXID disables modules by itself,
Its like wearing seat belts in a car. You can drive without them, but when something goes wrong, you wish you had them.

I hope that this will help to someone:

I recovered deleted function from template, and without installed Facebook module the template was not working.
But when I installed the module, the theme started to working perfectly, without any change inside.

Thank you.