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
Forum Search
Google Site Search
 All Forums
 Technical
 Tips and Tricks - HALL OF FAME
 CSS product image overlays, options and more
Previous Page | Next Page
Author « Topic »
Page: of 5

kelleymoore
Ecommerce Template Expert

USA
986 Posts

Posted - 07/20/2023 :  06:44:22  
Yes, it is in there! css/style.css. Also, the link is in the proddetail.asp head section. I checked all of that. I even made the font color change, uploaded the file to css, deleted it on my PC and redownloaded it again to make sure the change was in there. The modified file date on the server checks out, too.

Edited by - kelleymoore on 07/20/2023 06:45:48

quadrant
Ecommerce Template Guru

United Kingdom
1110 Posts

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

Posted - 07/20/2023 :  06:48:05  
I can see your change now in the options dropdown.

Regards,
David

quadrant
Ecommerce Template Guru

United Kingdom
1110 Posts

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

Posted - 07/20/2023 :  06:59:49  
Actually it's fine in Firefox but for some reason in Chrome 114 it doesn't show

kelleymoore
Ecommerce Template Expert

USA
986 Posts

Posted - 07/20/2023 :  07:02:56  
Wow. I don't even see it in Firefox.

I was going to try adding it inline, but I'm not sure which file to do that in. inc/incproddetail.asp doesn't have the oostock tag anywhere.

I even added the custom.css link to proddetail.asp and the option.oostock is the only thing in that file. Still not showing. I can't imagine it's bumping heads with any other css file. There's only a couple in there.

Ugh!

Kelley

Edited by - kelleymoore on 07/20/2023 07:20:20

quadrant
Ecommerce Template Guru

United Kingdom
1110 Posts

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

Posted - 07/20/2023 :  07:27:10  
It seems there were issues with text-decoration in Chrome but that was some time ago. Very odd!

I think the function you are looking for is in incfunctions.php but I am not sure adding inline will make any difference TBH.

kelleymoore
Ecommerce Template Expert

USA
986 Posts

Posted - 07/20/2023 :  07:39:26  
David,

You mentioned that you do see it in FireFox, though. I cannot see it in my FireFox browser. Are you able to provide a screenshot of what you're seeing?

Thanks,
Kelley

quadrant
Ecommerce Template Guru

United Kingdom
1110 Posts

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

Posted - 07/20/2023 :  07:46:15  
Hi Kelley,

Here is the screenshot link

[url]https://pasteboard.co/vbTjIzara6zO.jpg[/url]

Regards,
David

quadrant
Ecommerce Template Guru

United Kingdom
1110 Posts

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

Posted - 07/20/2023 :  08:08:25  
Chrome has me stumped for now.

Done a text-decoration test and all looks fine so I am not sure why your page isn't working and I can't see an obvious clash.

Regards,
David

kelleymoore
Ecommerce Template Expert

USA
986 Posts

Posted - 07/20/2023 :  08:23:27  
Well, thank you for all your time in trying to figure this out for me.

I guess I need Vince to take a look at this and see if he has any suggestions.

Kelley

quadrant
Ecommerce Template Guru

United Kingdom
1110 Posts

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

Posted - 07/20/2023 :  09:48:58  
Hi Kelley,

What you could do is add a background color to the out of stock options.

option.oostock {
color: #A0A0A0;
text-decoration: line-through black;
background-color: #f4f4f4;
}

Tested in Chrome and it makes the out of stock stand out more.

Still not sure why that works but not the text-decoration.

Regards,
David

kelleymoore
Ecommerce Template Expert

USA
986 Posts

Posted - 07/20/2023 :  12:36:29  
Thanks for the suggestion, but I don't want to confuse the customers even more. lol Some folks can't seem to understand that the lighter color means that it is out of stock, which is why I am wanting to cross it off.

Kelley

dbdave
ECT Moderator

USA
10406 Posts

Posted - 07/20/2023 :  13:51:04  
Stock management should put a number next to the option...
Are you using stock management?

It's well documents online the problems with styling HTML select options in some browsers.
I have a mod to place some text there (out of stock, or low stock) and use color from there.
If I recall, it's an easy mod in the ectcart.js file.

Check the drop down on this product
trophykitsDOTcom/proddetail.asp?prod=ALUM900

kelleymoore
Ecommerce Template Expert

USA
986 Posts

Posted - 07/21/2023 :  04:10:57  
Hi Dave,

Yes, I am using Stock Management, but I have it set to not show the numbers.

It appears that the mod only shows the stock numbers if it's out or low. Can you can tweak the low number to trigger that to whatever you want?

Thanks,
Kelley

Edited by - kelleymoore on 07/21/2023 04:12:44

dbdave
ECT Moderator

USA
10406 Posts

Posted - 07/21/2023 :  08:09:00  
There is a parameter you can set the point at which it shows the low stock message.
Our is set to 500, but you can adjust that to whatever you want.
I don't remember if you are .asp or .php so if you have trouble locating that parameter, let me know what version you run and I'll locate it for you.

David

kelleymoore
Ecommerce Template Expert

USA
986 Posts

Posted - 07/21/2023 :  11:44:32  
Hi David,

I'm Ecommerce Plus ASP v7.6.1

Thank you!

Kelley

dbdave
ECT Moderator

USA
10406 Posts

Posted - 07/21/2023 :  14:42:04  
In that case, this is what you want...

quote:
stockdisplaythreshold=1000

...where any stock above 1000 units won't show the In Stock message and quantity in stock to the public.


David

kelleymoore
Ecommerce Template Expert

USA
986 Posts

Posted - 07/24/2023 :  07:50:58  
Thank you, David. What is the mod you are using to put the text next to the number?

Kelley

dbdave
ECT Moderator

USA
10406 Posts

Posted - 07/24/2023 :  09:41:36  
ectcart.js - Modify to use stock levels in product options - hide when stock below set threshold and add message

There are three instances of this bit of code in the file - if(usestockmanagement && showinstock && !noshowoptionsinstock && (theoptstock<stockdisplaythreshold||stockdisplaythreshold==0)) you can perform a search (for that bit of code) and this will involve the first instance - for current versions, it should be around Line 790 - Just locate that line and replace it with the entire code block below.
NOTE - You care basically commenting the one old line and replacing it with two lines and adding a few other comments so it will make it easier to update in the future - assuming you use a file compare program to merge in your mods.
This splits the low stock to what is out, and what is less than low stock threshold and adds the custom text

// line below changed to two lines added after to show low and out of stock message on options.
//if(usestockmanagement && showinstock && !noshowoptionsinstock && (theoptstock<stockdisplaythreshold||stockdisplaythreshold==0))if(stkbyopts&&canresolve)optns.options[i].text+=xxOpSkTx.replace('%s',Math.max(theoptstock,0));
if(usestockmanagement && showinstock && !noshowoptionsinstock && (theoptstock>=1&&theoptstock<stockdisplaythreshold||stockdisplaythreshold==0))if(stkbyopts&&canresolve)optns.options[i].text+=xxOpSkTx.replace('%s',Math.max(theoptstock,0))+' Low Stock'; //line added
if(usestockmanagement && showinstock && !noshowoptionsinstock && (theoptstock<=0||stockdisplaythreshold==0))if(stkbyopts&&canresolve)optns.options[i].text+=xxOpSkTx.replace('%s',Math.max(theoptstock,0))+' Out of Stock'; // line added


Edited by - dbdave on 07/24/2023 09:49:24

kelleymoore
Ecommerce Template Expert

USA
986 Posts

Posted - 07/24/2023 :  14:04:07  
Thanks very much, David. I'll give it a go.

Kelley

midvalleydrifter001
Ecommerce Template Expert

USA
933 Posts

Posted - 07/24/2023 :  20:21:12  
I am trying this and have updated the ectcart.js file as suggested but I can't get the Low Stock wording to show up.

I have the following in my includes file

$stockdisplaythreshold=10;

$noshowoptionsinstock=TRUE;


I have a sample product option set to only 1 in stock.

I'm sure I'm missing something simple here.

Patrick

Page: of 5 « Topic »  
Previous Page | Next Page
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000