Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

Problem for Extra field in SJ Responsive Listing
(1 viewing) (1) Guest
User guides, update and bug fixes
  • Page:
  • 1

TOPIC: Problem for Extra field in SJ Responsive Listing

Problem for Extra field in SJ Responsive Listing 7 years, 3 months ago #31077

  • debugger
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
Hi
When I use Multiple choice "Extra field"(Drop-down selection,Multi-select list,Radio buttons) for show in SJ Responsive Listing in default_items.php

Show error: Notice: Array to string conversion


<?php 
					$metas = ($item->extra_fields==null)?0:json_decode($item->extra_fields);
					if( $metas[1]->value != '' || $metas[2]->value != '' || $metas[3]->value != '' || $metas[4]->value != '' || $metas[5]->value != '' || $metas[6]->value != '' || $metas[7]->value != '' || $metas[8]->value != '' ){
				?>
				<div class="tooltip-meta">
					<?php if( $metas[1]->value != '' ){ ?>
						<p><span><?php echo JText::_('IMDB_LABEL') ?></span>: <?php echo $metas[4]->value ?></p>
					<?php }if( $metas[2]->value != '' ){ ?>
						<p><span><?php echo JText::_('RELEASE_LABEL') ?></span>: <?php echo $metas[5]->value ?></p>
					<?php }if( $metas[3]->value != '' ){ ?>
						<p><span><?php echo JText::_('GENRE_LABEL') ?></span>: <?php echo $metas[6]->value) ?></p>
					<?php }if( $metas[4]->value != '' ){ ?>
						<p><span><?php echo JText::_('RATING_LABEL') ?></span>: <?php echo $metas[7]->value ?></p>

					<?php } ?>
				</div>
				
				<div class="tooltip-meta">
					<?php if( $metas[5]->value != '' ){ ?>
						<p><span><?php echo JText::_('DIRECTOR_LABEL') ?></span>: <?php echo $metas[1]->value ?></p>
					<?php }if( $metas[6]->value != '' ){ ?>
						<p><span><?php echo JText::_('WRITER_LABEL') ?></span>: <?php echo $metas[2]->value ?></p>
					<?php }if( $metas[7]->value != '' ){ ?>
						<p><span><?php echo JText::_('ACTOR_LABEL') ?></span>: <?php echo $metas[3]->value ?></p>
					<?php } ?>
				</div>


How to solve it?
Last Edit: 7 years, 3 months ago by debugger.

Re: Problem for Extra field in SJ Responsive Listing 7 years, 3 months ago #31139

  • thuygtn
Dear debugger,

Because we processed the Extra field as String, so please try use textarea field

Thanks
  • Page:
  • 1
Time to create page: 0.20 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes