Passing Variable from Backend to Frontend

Hello oxid-esales-Community,

i am trying to create an Oxid Module, which contains a backend-site where a user could type a text in a formular - and with the click on a “submit” Button this Text will be shown in the sourcecode of every page in the frontend. I already read a few tutorials, so i know how to register my new module and how to set the basics. But i could not find any references by passing variables from the backend to the frontend (and saving them of course…)

So, summarized:
Im trying to pass a user defined variable (input by html-form) from the backend to the frontend, where it simply should be “echoed” :slight_smile:

I hope you have some interesing and good links or documentation for me (i already tried the forum- and googlesearch)

thanks!

i just managed to reach my first questioned tasks. but now i am trying to access the information and data from the articles in the basket. im getting an oxBasket object by calling

oxSession::getInstance()->getBasket();

but how do i access the protected elements like :

[_sProductId:protected] => 6b65c82bfe8fa19865d560f8c1a905b4
                    [_sTitle:protected] => Kuyichi Jeans ANNA, W 30/L 30 | Smoke Gray
                    [_sVarSelect:protected] => W 30/L 30 | Smoke Gray
                    [_sIcon:protected] => icon_ico(4)sg(2)_ico.jpg
                    [_sLink:protected] => http://localhost/oxid/Bekleidung/Fashion/Fuer-Sie/Jeans/Kuyichi-Jeans-ANNA-W-30-L-30-Smoke-Gray.html
                    [_oPrice:protected] => oxPrice Object
                        (
                            [_dBrutto:protected] => 99.9
                            [_dNetto:protected] => 0
                            [_dVat:protected] => 19
                            [_aDiscounts:protected] => 
                            [_blNetPriceMode:protected] => 
                        )

or is there any other possibility to access the articles in the basket? i only need to read the data, now to change or write new!

thanks.

Hi !
If I got it right and remember well, the content of an oxBasket is made of oxBasketItems that you can get via the function ‘getItems()’ - although not so sure about the function name. Then check the oxBasketItem function to access the properties :slight_smile: