Page 26 of 30 FirstFirst ... 162425262728 ... LastLast
Results 251 to 260 of 297
  1. #251
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,674
    Plugin Contributions
    0

    Default Re: Template Fluorspar

    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!"

  2. #252
    Join Date
    Jan 2015
    Posts
    726
    Plugin Contributions
    1

    Default Re: Template Fluorspar

    Quote Originally Posted by wmorris View Post
    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

    Code:
    <?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>';
      }
    ?>

  3. #253
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,674
    Plugin Contributions
    0

    Default Re: Template Fluorspar

    Quote Originally Posted by chadlly2003 View Post
    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

    Code:
    <?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>';
      }
    ?>
    Ok, I want it on the bottom the description area.

  4. #254
    Join Date
    Jan 2015
    Posts
    726
    Plugin Contributions
    1

    Default Re: Template Fluorspar

    I see you got it to work

    if you want to style the word "In stock" just add this to your stylesheet

    Code:
    .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;

  5. #255
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,674
    Plugin Contributions
    0

    Default Re: Template Fluorspar

    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?

  6. #256
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,706
    Plugin Contributions
    12

    Default Re: Template Fluorspar

    Quote Originally Posted by chadlly2003 View Post
    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.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  7. #257
    Join Date
    Jan 2015
    Posts
    726
    Plugin Contributions
    1

    Default Re: Template Fluorspar

    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.
    Last edited by chadlly2003; 25 Aug 2025 at 04:06 PM.

  8. #258
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,674
    Plugin Contributions
    0

    Default Re: Template Fluorspar

    Quote Originally Posted by chadlly2003 View Post
    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/hom...-wolf-bookends

  9. #259
    Join Date
    Jan 2015
    Posts
    726
    Plugin Contributions
    1

    Default Re: Template Fluorspar

    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.

  10. #260
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,674
    Plugin Contributions
    0

    Default Re: Template Fluorspar

    Quote Originally Posted by chadlly2003 View Post
    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.

 

 
Page 26 of 30 FirstFirst ... 162425262728 ... LastLast

Similar Threads

  1. theme277 from template monster and replacing with new template
    By DarkAngel in forum General Questions
    Replies: 0
    Last Post: 8 Nov 2012, 07:17 AM
  2. Can't seem to get template on the admin/tools/template selection
    By avmejias in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 19 Aug 2012, 07:39 AM
  3. Replies: 8
    Last Post: 29 Apr 2011, 07:53 PM
  4. Template selection page not viewable after uploading custom template
    By mek113 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 28 Apr 2011, 05:16 PM
  5. open_basedir restriction in effect - trying to use tm001 template monster template
    By prantiC in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 10 Aug 2007, 10:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg