DanielH Posted October 1, 2020 at 07:09 AM Share Posted October 1, 2020 at 07:09 AM 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
DanielH Posted October 1, 2020 at 07:34 AM Author Share Posted October 1, 2020 at 07:34 AM (edited) This section is only visible with a valid subscription. If you have a valid subscription, please login. Edited October 1, 2020 at 07:43 AM by DanielH Link to comment
Alejandro Posted October 1, 2020 at 10:50 AM Share Posted October 1, 2020 at 10:50 AM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
DanielH Posted October 1, 2020 at 02:44 PM Author Share Posted October 1, 2020 at 02:44 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Recommended Posts