Jump to content

Modern Products Template MOD


Recommended Posts

I think this should be a permanent change to the template.

 

Description: Add's Sold Out to products so customers don't have to see the out of stock page.

 

Before

1493636481.png

After

1493636506.png

 

 

Edit /public_html/whmcs/templates/orderforms/modern/products.tpl

 

 

Remove (Line 65-69)

                        {if $product.qty}
                           <span class="qty">
                               ({$product.qty} {$LANG.orderavailable})
                           </span>
                       {/if}

 

Replace

                    <div class="text-right">
                       <a href="cart.php?a=add&{if $product.bid}bid={$product.bid}{else}pid={$product.pid}{/if}" class="btn btn-success btn-lg"><i class="fa fa-shopping-cart"></i> {$LANG.ordernowbutton}</a>
                   </div>

               </div>
           </div>

With

                    <div class="text-right">
                   	<div class="name">
                           <span class="qty"><br>
                               ({$product.qty} {$LANG.orderavailable})
                           </span>
                       </div>
                       <a href="cart.php?a=add&{if $product.bid}bid={$product.bid}{else}pid={$product.pid}{/if}" class="btn btn-success btn-lg {if $product.qty lt '1'} btn-danger disabled{/if}"><i class="fa fa-shopping-cart"></i>  {if $product.qty lt '1'} Sold Out{else}{$LANG.ordernowbutton} {/if}</a>
                   </div>
               </div>
           </div>

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated