Jump to content
xt:Commerce Community Forum

Wie komme ich an diese Variable?


jwinkel
 Share

Recommended Posts

Moin zusammen,

ich bin zu blöd. In einer selbst gebastelten Shop-Erweiterung (6.6.4) habe ich die Variable $smarty. Mit var_dump($smarty) bekomme ich:

object(Smarty\Template)#876 (25) {
["smarty":protected]=> object(Smarty\Smarty)#836 (73) {
["smarty":protected]=> NULL
["tpl_vars"]=> array(14) {
   ["success_order"]=> object(Smarty\Variable)#865 (10) {
      ["value"]=> object(order)#262 (18) {
         ["order_products"]=> array(1) {
            [0]=> array(25) {
               ["orders_products_id"]=> int(29060)
               ["orders_id"]=> int(98013248)
               ["products_id"]=> int(6495)
               ["products_model"]=> string(19) "DCDC-1212-VEitr-110"
               ["products_name"]=> string(54) "Victron Energy Orion TR Spannungswandler 12V->12V 110W"
 

So weit, so gut. Wie bitte greife ich nun auf die Variable "products_model" zu???

 
  •  
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
  • Create New...