Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Out of Stock Popup Poor Layout
Author « Topic »  

RayCramblit
Advanced Member

USA
173 Posts

Pre-sales questions only
(More Details...)

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

insight
ECT Moderator

USA
4476 Posts

Posted - 04/21/2021 :  21:45:52  
quote:
The current "Out of Stock" popup opens 100% wide with a transparent background with all the content left aligned.


I don't think it does, though. You mean the "notify me" popup I suppose, check it out how it is supposed to look here: http://www.ectdemostore.com/proddetail.php?prod=lprinter001 Probably you just have an out of date ectcart.css stylesheet.

Peter


Professional ecommerce web hosting services
Shared hosting Windows & Linux | Dedicated servers | Domains | SSL
Ecommerce Templates specialists since 2003
https://servelink.com

RayCramblit
Advanced Member

USA
173 Posts

Pre-sales questions only
(More Details...)

Posted - 04/21/2021 :  23:17:49  
I just realized that the proddetail.php page did not have a link to the ectcart.css style sheet.

I replaced my edited code with the original code and linked to the style sheet and now it looks like yours.

Too bad I wasted an hour of my time editing something that was not screwed up in the first place.

Thanks for the reply.

Ray Cramblit
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000