Posted - 04/21/2021 : 18:52:47
The people on the forum have been so helpful for me that I thought I'd share edits I made that (in my opinion) look much better than the original code. I think the cart code should be edited to something similar in the next updater.
The current "Out of Stock" popup opens 100% wide with a transparent background with all the content left aligned. The code I am posting changes the background to a solid blue color with white text and centers the content on the page. Looks much better to me. I am not a coding guru like the people on this forum but what I am posting works for me.
I edited the code starting on line 594 of the latest version of vsadmin/inc/incfunctions.php:
<!-- START EDITS --> <div id="notifyinstockcover" style="display:none;position:fixed;width:100%;height:100%;color:white;background-color:rgba(24,51,94);top:0px;left:0px;z-index:1000"> <div class="notifyinstock" style="text-align:center;"> <div style="padding:6px;height:31px;font-size:1.4em"><?php print $GLOBALS['xxNotSor']?></div> <div style="padding:6px;float:right"><img src="images/close.gif" style="cursor:pointer" alt="Close" onclick="closeinstock()" /></div> <div style="clear:both;padding:6px;"><?php print $GLOBALS['xxNotCur']?></div> <div style="padding:5px;font-size:0.8em"><?php print $GLOBALS['xxNotEnt']?></div> <div style="padding:2px 0px 4px 4px;"><input style="border:1px solid #333;padding:5px;width:220px" id="nsemailadd" type="text" /></div> <div style="padding:4px 6px 6px 4px;"><input type="button" class="ectbutton" value="<?php print $GLOBALS['xxEmaiMe']?>" onclick="regnotifystock()" /></div> </div> </div> <!-- END EDITS -->
Ray Cramblit
|