Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 786955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T21:07:28+00:00 2026-05-14T21:07:28+00:00

I’m trying to access a variable in a smarty array. The array is called

  • 0

I’m trying to access a variable in a smarty array. The array is called product and contains loads of values. A print_r dump of the array is shown below

Array
(
    [0] => Array
        (
            [itemid] => 4
            [productid] => 31
            [productcode] => 1658303
            [product] => ENERGIZER 628504 COMP RECHARGABLE TORCH
            [provider] => master
            [distribution] => 
            [weight] => 0.00
            [list_price] => 29.80
            [descr] => Torches
            [fulldescr] => Energizer Rechargeable Emergency Torch Complete With Krypton Bulb
            [avail] => 6
            [rating] => 2
            [forsale] => Y
            [add_date] => 0
            [views_stats] => 1
            [sales_stats] => 0
            [del_stats] => 0
            [shipping_freight] => 0.00
            [free_shipping] => N
            [discount_avail] => Y
            [min_amount] => 1
            [length] => 0.00
            [width] => 0.00
            [height] => 0.00
            [low_avail_limit] => 10
            [free_tax] => N
            [product_type] => N
            [manufacturerid] => 0
            [return_time] => 0
            [keywords] =>  
            [meta_description] => 
            [meta_keywords] => 
            [small_item] => N
            [separate_box] => N
            [items_per_box] => 1
            [title_tag] => 
            [orderid] => 2
            [price] => 11.96
            [amount] => 2
            [product_options] => 
            [extra_data] => Array
                (
                    [product_options] => 
                    [taxes] => Array
                        (
                        )

                    [display] => Array
                        (
                            [price] => 11.96
                            [discounted_price] => 23.92
                            [subtotal] => 23.92
                        )

                )

            [is_deleted] => 
            [returns] => 
            [extra_fields] => Array
                (
                    [0] => Array
                        (
                            [fieldid] => 1
                            [provider] => master
                            [field] => ESW Carbon Points
                            [value] => 50
                            [active] => Y
                            [orderby] => 1
                            [service_name] => SERVICE_NAME01
                            [productid] => 31
                        )

                )

            [display_price] => 11.96
            [display_discounted_price] => 23.92
            [display_subtotal] => 23.92
            [product_options_txt] => 
            [ordered_price] => 11.96
            [original_price] => 11.96
            [price_deducted_tax] => Y
        )

)

I want to access the “value” field within the extra fields array but I don’t understand what the syntax is to get to it.

Any help greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T21:07:29+00:00Added an answer on May 14, 2026 at 9:07 pm
    {$var[0].extra_fields[0].value}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 509k
  • Answers 509k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Use posix_isatty. This function accepts both a file descriptor (an… May 16, 2026 at 4:45 pm
  • Editorial Team
    Editorial Team added an answer mysqli_connect() always returns a MySQLi object. To check for connection… May 16, 2026 at 4:45 pm
  • Editorial Team
    Editorial Team added an answer vapply is in the base package, so something may be… May 16, 2026 at 4:45 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Does anyone know how can I replace this 2 symbol below from the string
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
Seemingly simple, but I cannot find anything relevant on the web. What is the
this is what i have right now Drawing an RSS feed into the php,
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.