This does not work for me.
I tried to print the row array with its data, but I dont see file download arrays anywhere. see blow.
<?php
ini_set('xdebug.var_display_max_data', 0);
echo '<pre>';
print_r($this->row);
echo '</pre>';?>
I get following result with above php, I dont see downloadable file arrays.
stdClass Object
(
[product_id] => 260
[product_parent_id] => 0
[product_name] => Networking & O/S installation Services
[product_description] =>
Professional services that includes networking installation, troubleshooting, configuration and installation of operating systems across the entire network.
[product_quantity] => -1
[product_code] => networking-os-installation
[product_published] => 1
[product_hit] => 53
[product_created] => 1378243587
[product_sale_start] => 0
[product_sale_end] => 0
[product_delay_id] => 0
[product_tax_id] => 0
[product_type] => main
[product_vendor_id] => 0
[product_manufacturer_id] => 0
[product_url] =>
[product_weight] => 0.000
[product_keywords] =>
[product_weight_unit] => kg
[product_modified] => 1378243587
[product_meta_description] =>
[product_dimension_unit] => m
[product_width] => 0.000
[product_length] => 0.000
[product_height] => 0.000
[product_max_per_order] => 0
[product_access] => all
[product_group_after_purchase] =>
[product_min_per_order] => 0
[product_contact] => 0
[product_last_seen_date] => 1396391193
[product_sales] => 1
[product_waitlist] => 0
[product_layout] =>
[product_average_score] => 0
[product_total_vote] => 0
[product_page_title] =>
[product_alias] =>
[product_price_percentage] => 0.0000000
[product_msrp] => 0.0000000
[product_canonical] =>
[cond] => used
[alias] => networking-o-s-installation-services
[file_id] => 766
[file_name] =>
[file_description] =>
[file_path] => computer-networking.jpg
[file_type] => product
[file_ref_id] => 260
[file_free_download] => 0
[file_ordering] => 0
[file_limit] => 0
[prices] => Array
(
[0] => stdClass Object
(
[price_id] => 243
[price_currency_id] => 4
[price_product_id] => 260
[price_value] => 500.00000
[price_min_quantity] => 0
[price_access] => all
[price_value_with_tax] => 500.00000
[taxes] => Array
(
)
)
)
[badges] => Array
(
)
)
My question is how I can access the file download array elements in Hikashop listing_img_title view.
For example I want to echo a text "True" if free downloadable file exists for a product.
<?php
if (array_key_exists($this->row->downloadable_file)) {
echo "True";
}
echo $this->row->downloadable_file;
?>
</div>
Please help