Jump to content
Nathum

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>

Share this post


Link to post
Share on other sites

Nice, I like it. Its a good little tweak if you sell game servers or similar. might have to check it out myself :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines