Totally Zenned
- Join Date:
- Jan 2015
- Posts:
- 744
- Plugin Contributions:
- 0
Template Fluorspar
clear your cache on your browser... it there . I see it on my firefox and chrome
Views: 135,981
Totally Zenned
clear your cache on your browser... it there . I see it on my firefox and chrome
Totally Zenned
chadlly2003:
clear your cache on your browser... it there . I see it on my firefox and chrome
Its working now. Maybe you can help me with another area. I am using the attribute for POSM is it possible to hide the attribute on the product info page. Also, I need to change this (###) units in stock. I was wondering if its possible just to say In Stock! then when I have say example I have 8 left in stock and it will say that?
Totally Zenned
Yes. Give me an example of the product on the attribute page. So I can create a css element for it
Totally Zenned
chadlly2003:
Yes. Give me an example of the product on the attribute page. So I can create a css element for it
Its on all my products.
Totally Zenned
i mean show me an example with an attribute in it. You said you wanted to hide it correct me if i am wrong.
Totally Zenned
chadlly2003:
i mean show me an example with an attribute in it. You said you wanted to hide it correct me if i am wrong.
https://www.galaxyhomedecor.us/index.php?main_page=product_info&cPath=9_10&products_id=19
Were you see it where it says "Please Choose".
Totally Zenned
add this to your stylesheet
#productAttributes {
display:none;
}
to change "in stock unit" go to
\includes\languages\your_template\lang.english.php
Totally Zenned
chadlly2003:
add this to your stylesheet
#productAttributes {
display:none;
}
>
>
> to change "in stock unit" go to
>
> \includes\languages\your_template\lang.english.php
Ok, I don't see the code?
Totally Zenned
if you dont see the file just go to
copy this file
\includes\languages\lang.english.php (this file do not touch could effect upgrade in future)
Copy the lang.english.php and put it in this path
\includes\languages\your_template_name\lang.english.php
Its not code its a text file. From here you can make the change
Totally Zenned
chadlly2003:
if you dont see the file just go to
copy this file
\includes\languages\lang.english.phpand create
\includes\languages\your_template_name\lang.english.phpIts not code its a text file
Are you saying that I need to copy this file:
\includes\languages\lang.english.php
and replace it with this file?
\includes\languages\fluorspar\lang.english.php
Totally Zenned
Ok, I was able to change the stock from Units in Stock to In Stock! But, It still show the quantity I don't want to show the quantity on that. Then when I have low stock I want it to say "5 left in Stock!"
Totally Zenned
wmorris:
Ok, I was able to change the stock from Units in Stock to In Stock! But, It still show the quantity I don't want to show the quantity on that. Then when I have low stock I want it to say "5 left in Stock!"
This should be what your looking for
Disable Show Quantity in Stock via Admin
Go to Admin > Catalog > Product Types > Layout Setting > Show Quantity in Stock -- set to false
includes\templates\yuor_template\templates\tpl_product_info_display.php
Add this where you want it to display on product page
<?php
if ($products_quantity >= 5) {
echo '<p class="stock-message in-stock">In Stock</p>';
} elseif ($products_quantity > 0) {
echo '<p class="stock-message low-stock">Only ' . (int)$products_quantity . ' left in stock!</p>';
} else {
echo '<p class="stock-message out-of-stock">Out of Stock</p>';
}
?>
Totally Zenned
<?php if ($products_quantity >= 5) { echo '<p class="stock-message in-stock">In Stock</p>'; } elseif ($products_quantity > 0) { echo '<p class="stock-message low-stock">Only ' . (int)$products_quantity . ' left in stock!</p>'; } else { echo '<p class="stock-message out-of-stock">Out of Stock</p>'; } ?>chadlly2003:
This should be what your looking for
Disable Show Quantity in Stock via Admin
Go to Admin > Catalog > Product Types > Layout Setting > Show Quantity in Stock -- set to falseincludes\templates\yuor_template\templates\tpl_product_info_display.php
Add this where you want it to display on product page
Ok, I want it on the bottom the description area.
Totally Zenned
I see you got it to work
if you want to style the word "In stock" just add this to your stylesheet
.stock-message {
font-weight: bold;
margin-top: 10px;
font-size: 1.1em;
}
.stock-message.in-stock {
color: green;
}
.stock-message.low-stock {
color: orange;
}
.stock-message.out-of-stock {
color: red;
Totally Zenned
Ok, I have another issue with the bullet in description. Some sentence will use the bullets and some other sentences doesn't. How can I fix that?
Totally Zenned
chadlly2003:
This should be what your looking for
Disable Show Quantity in Stock via Admin
Go to Admin > Catalog > Product Types > Product - General >Layout Settings > Show Quantity in Stock -- set to false
The Product - General covers most items, but if you have others, substitute them.
Totally Zenned
wmorris,
Might be tough because we are using css to force the bullets on any <p> tag within the description.
Show me an example and I might be able to help you out.
Totally Zenned
chadlly2003:
wmorris,
Might be tough because we are using css to force the bullets on any <p> tag within the description.
Show me an example and I might be able to help you out.
Ok, here is the company I get my products from. https://sigmaslc.com/collections/home-decor/products/howling-wolf-bookends
Totally Zenned
I am sorry not getting a clear picture here. On your site can you show me where the issue is happening. Its easier for me to see the actual issue.
Totally Zenned
chadlly2003:
I am sorry not getting a clear picture here. On your site can you show me where the issue is happening. Its easier for me to see the actual issue.
Its the description area. Where all the bullets is. As I was saying is some of the lines I don't need the bullets and some other lines I do. That's what I am talking about.
Tell staff why this post should be reviewed.