Jump to content

[Solved] Is it possible to hide short discripton of product when viewing specific category products?


Recommended Posts

Dear Friend,

I want to hide short description of products which displayed when we browse products from a particular category due to which text not seen properly.

Please find image for reference.

Regards
Vilas

45956_e9zjABSW6JcJuQLkfNAR_t

Link to comment
Share on other sites

Hi - I am not an expert but I think you can do this if you edit your product.tpl line 145 and cut or comment out the line with "short_description_content" as I have done here:

    
{if $product->description_short}
           <!-- {$product->description_short}-->
           {/if}
           {if $product->description}

{l s='More details'}
           {/if}

Link to comment
Share on other sites

Hi - I am not an expert but I think you can do this if you edit your product.tpl line 145 and cut or comment out the line with "short_description_content" as I have done here:
    
{if $product->description_short}
           <!-- {$product->description_short}-->
           {/if}
           {if $product->description}

{l s='More details'}
           {/if}



This will remove the description from the actual product page. This not what Vilas is wanting (see image). See my post for the file that needs to be modified.

Marty Shue
Link to comment
Share on other sites

Dear Marty Shue & ukmacnut,

You both are simply great. You resolved my issue without any trouble. I have one more query is it possible to remove the background color to white?

Please check image for reference.

Thanks
Vilas

45959_zG48sDz6Zi2zdC7FExcu_t

Link to comment
Share on other sites

Dear Marty Shue,

You are great. Your resolved my issues. Thanks a lot for it. Sorry but I have one more query. Hope this time also you will help me. I want to do same thing which I asked about category. I want to make white background to featured products. Please find image.

Thanks in advance. Sorry for troubling you.

Regards
Vilas

45974_LaWsJrCur02Z6TF1zaSb_t

Link to comment
Share on other sites

You are welcome!

To do this you will need to edit two lines of code. If you don't edit both when you hover over the product the background will change colors.

Change line 891 from

background-color: #d0d3d8;



to this

background-color: #fff;



then you will need to change line 888 from

#center_column .products_block ul li:hover { background-color: #bdc2c9 }



to this

#center_column .products_block ul li:hover { background-color: #fff }



This will give you the look you want. It is no trouble......this is what the forum is for :-)

Marty Shue

Link to comment
Share on other sites

Dear Marty Shue,

Thanks a lot it also worked. I want to give one more trouble to you. I want to insert boarder to whole home page. A thick boarder and also to featured products also want to insert thick boarder. Is it possible? Please find image for reference.

Thanks
Vilas

46017_IrnhLlmM6RIv0awNySJp_t

Link to comment
Share on other sites

Hi Vilas!

I'll be glad to help you do this :)

Follow these steps:

First go to themes>yourtheme>css>global.css

change line 881 to something like this

#center_column .products_block {
   border: 1px solid #000;
}



this will put a black line around the entire Featured Products div

Next, change the following (around line 889)(only add the border-right and border-top)

#center_column .products_block ul li {
   float: left;
   background-color: #fff;
   margin-top: 0;
   padding: 0 0 1px;
   width: 133px;
   border-right:solid 1px #000;
   border-top:solid 1px #000;
}



Again, this will put a thin black line around each product. This needs to equal the border you put around the entire Featured Products div so it will look correct.

Hope that helps you!

Marty Shue

Link to comment
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
×
×
  • Create New...