Ok that will be my second attempt. As for my 1st attempt, I am trying to get this right, but it's giving me difficulties, I was trying to put some scripts in the other attributes page, but It is reading it, but not giving an output, I am trying to put an if statement in php to check the name, then from that name, I think I like your advice, on that page I am going to do that, I will use javascript to create the link, as well as create the popup window, when they close the window I will have javascript populate it, that will take care of all occurences of that. I think, hmm. This might get deeper than I thought, as far as php, is there a way I can get it to display using code on the
tpl_modules_attributes.php
page I wanted to put an if statement, but I don't know what to check for, for the option_name, or option_
here is an example
The first 3 lines i what they already had, my code is below that, but not producing any output, I copied and pasted it from the source code so it should have matched, the variables. for that attribute only, but it doesn't work for anything.
Once I get the url's to display dynamically I can move onto the second part, is there a way I can work this into what I have, to make it show the links, then I can reproduce this code, to show links for more variety of attributes, then even setup a switch statement to make the code shorter. That will eliminate my first problem.Code:<div class="wrapperAttribsOptions"> <h4 class="optionName back"><?php echo $options_name[$i] ; ?></h4> <div class="back"><?php echo $options_menu[$i]; ?></div> <?php if ($options_name[$i] == "<label class=\"attribsInput\" for=\"attrib-60-285\">Custom Laminate:</label></h4>") { ?> <br /> <a href="../../../wilsonart.php" title="Wilson Art">Choose Color!</a> <?php } ?>
I can set up a case to show a specific link for each condition, then if there are more than one attribute that needs links it will also show them all, but first I have to figure out how to get one to display?



