![]() |
Short and Detailed description
I've added a lot of information in our shopping cart and now I've added tabs for the products. Though I've found where X-Cart calls out the description as {$product.fulldescr} but I need to distinguish between the short and detailed descriptions. Having information in both the short and detailed description with {$product.fulldescr} only shows the detailed description in my tab. If I have a product that has only the short description, then X-Cart displays that information with the {$product.fulldescr}. I'd like the short description to be my "features" and the detailed description to be my "specifications". Can someone tell me what each tpl calls out for short description and seperately for detailed description?
|
Re: Short and Detailed description
Hi,
In skin1/customer/main/product.tpl ->you can find this line {if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{ /if} so, to get full description->$product.fulldescr to get short description->$product.descr I think this will help you. Quote:
|
Re: Short and Detailed description
Awesome! Thank you Vetrivel. I got the tabs working. There is a problem though, when I added text to my detailed description in my product, another tab appeared with the text that I added within my product detailed description. Any thoughts as to why or how I can fix this?
Quote:
|
Re: Short and Detailed description
Double check whether you provide the same detailed description for both the tabs.
Quote:
|
Re: Short and Detailed description
1 Attachment(s)
Hi Vetrivel,
I double checked my code, but nothing is obvious to me. Other than in the Tabs area (code posted below), what should I look for in product.tpl that would resolve this? ...see attached image {* TABS MENU START (v4.1.x) *} <a name="tabs" id="tabs"></a> <ul id="maintab" class="shadetabs"> <li class="selected"><a href="#tabs" rel="tcontent1">Features</a></li> {if $product.fulldescr ne ""}{$product.fulldescr} <li><a href="#tabs" rel="tcontent2">Specifications</a></li> {/if} {if $active_modules.Detailed_Product_Images ne "" && ($config.Detailed_Product_Images.det_image_popup ne 'Y' || $js_enabled ne 'Y')} {if $images ne ""} <li><a href="#tabs" rel="tcontent3">Dimensions</a></li> {/if}{/if} {if $active_modules.Upselling_Products ne ""} <li><a href="#tabs" rel="tcontent4">Related Items</a></li> {/if} </ul> <div class="tabcontentstyle"> <div id="tcontent1" class="tabcontent"> {if $product.descr ne ""}{$product.descr}{ /if} </div> <div id="tcontent2" class="tabcontent"> {if $product.fulldescr ne ""}{$product.fulldescr}{/if} </div> {if $active_modules.Detailed_Product_Images ne "" && ($config.Detailed_Product_Images.det_image_popup ne 'Y' || $js_enabled ne 'Y')} <div id="tcontent3" class="tabcontent"> {include file="modules/Detailed_Product_Images/product_images.tpl" } </div> {/if} {if $active_modules.Upselling_Products ne ""} <div id="tcontent4" class="tabcontent"> {include file="modules/Upselling_Products/related_products.tpl" } </div> {/if} </div> <script type="text/javascript"> //Start Tab Content script for UL with id="maintab" Separate multiple ids each with a comma. initializetabcontent("maintab") </script> {* TABS MENU END *} Quote:
|
Re: Short and Detailed description
If i am right .Your question is Why you get the TAB called test ?
then this is my answer Remove the content marked in red. Check it and tell me. <li class="selected"><a href="#tabs" rel="tcontent1">Features</a></li> {if $product.fulldescr ne ""}{$product.fulldescr} <li><a href="#tabs" rel="tcontent2">Specifications</a></li> {/if} Quote:
|
Re: Short and Detailed description
Awesome, it worked. Thank you! Though I'm a novice at X-Cart, I'm actually customizing our cart with your expertise Vetrivel, and with what I've read on the forums.
Thanks again, Christine Quote:
|
Re: Short and Detailed description
Welcome.
Have a nice day. Quote:
|
All times are GMT -8. The time now is 11:26 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.