Jump to content

listing type condition for submission_instructions override


DanielH

Recommended Posts

Hello,

Trying to override submission_instructions.thtml. The following is not working. Had a version of this working a while ago using ($listing['Listing']['cat_id'] == 1) using same format but also not working now.

Custom language for this is also in overrides. Tested before adding conditions and all language strings work.

What am I doing wrong in this example?

Much appreciated!

<div class="jrListingCreateHelp">

    <?php if($listing['ListingType']['listing_type_id'] == 1): ?>
	
	<h1><?php __t("Ad listing tips");?></h1>

	<ul>
	
		<li><?php __t("Have your vehicle information, summary and description prepared before starting your submission.");?></li>
		
		<li><?php __t("Check out the Help, FAQ, and How to sections.");?></li>
		
		<li><?php __t("For best results take photos and videos in landscape format.");?></li>
		
		<li><?php __t("Photos and other media uploads are processed after listing completion.");?></li>
		
		<li><?php echo sprintf(__t("All form inputs marked %s are required.",true),'<span class="jrIconRequired"></span>');?></li>

	</ul>

    <?php elseif($listing['ListingType']['listing_type_id'] == 2): ?>
	
	<h1><?php __t("Contact Support");?></h1>

	<ul>

		<li><?php __t("Send Mail to:");?></li>
		
		<li><?php __t("Some Street Address");?></li>
		
		<li><?php __t("- or contact us using the form below -");?></li>
		
		<li><?php __t("Please allow up to 72 hours for email response.");?></li>
		
		<li><?php echo sprintf(__t("All form inputs marked %s are required.",true),'<span class="jrIconRequired"></span>');?></li>

	</ul>

    <?php elseif(in_array($listing['ListingType']['listing_type_id'], array(3,4,5))): ?>
	
	<h1><?php __t("Submission instructions");?></h1>

	<ul>

		<li><?php echo sprintf(__t("All form inputs marked %s are required.",true),'<span class="jrIconRequired"></span>');?></li>

	</ul>	
	
	<?php endif; ?>
	
	

</div>

 

Link to comment
×
×
  • Create New...