网络营销电子商务研究中心  
How to buy the best prescription safety glasses in Canada? Let's study!
Go Back   网络营销电子商务研究中心 > 网站建设 > X-Cart
User Name
Password
 
FAQ Members List Calendar Cheap Glasses Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1   IP: 49.82.124.215
Old 2015-11-06, 07:54 AM
Eagle Rock Eagle Rock is offline
初级会员
 
Join Date: 2005-09-06
Posts: 1
Eagle Rock 现在声名狼藉
Default Extra Fields by Category

We have about 25 categories (and sub cats) with anywhere from 5 -50 products in each

Each category product has a bunch of extra field information which I need to collect.

I added all the "extra fields" via the admin - but now there are so many - so when a new product comes up - like 100 extra fields come up - when really maybe only 15-20 apply to that product.

Is there a way I can show only the fields for that category ? I numbered them in batches - so if I could say

if catid = "devices" show fields 100-150 ...I would be good.

Just not sure where to look for this code ? SInce this is in the admin

Thanks
Reply With Quote
  #2   IP: 49.82.124.215
Old 2015-11-06, 07:56 AM
Eatonville Eatonville is offline
初级会员
 
Join Date: 2007-11-13
Posts: 1
Eatonville 现在声名狼藉
Default

Under skin - modules/Extra_Fields/product_modify.tpl

First copy the products_modify.tpl to your skin/skinname/modules/Extra_fields folder - so you always have the original to go back to then add this into the loop

replacing the code that writes out the field/ value

Code:
{if $geid ne ''} <td width="15" class="TableSubHead"><input type="checkbox" value="Y" name="fields[efields][{$ef.fieldid}]" /> </td>{/if}

{if $product.categoryid eq '31' && $ef.orderby lt '400' }
<td class="FormButton" nowrap="nowrap"> {product.categoryid} {$ef.field}: </td>
<td class="ProductDetails">
<input type="text" name="efields[{$ef.fieldid}]" size="70" value="{if $ef.is_value eq 'Y'}{$ef.field_value|escape:html}{else}{$ef.value| escape:html} {/if}" />
</td>
{elseif $product.categoryid eq '49' }
{if $ef.orderby gt '400' && $ef.orderby lt '500' }
<td class="FormButton" nowrap="nowrap"> 49 only {$ef.field}: </td>
<td class="ProductDetails">
<input type="text" name="efields[{$ef.fieldid}]" size="70" value="{if $ef.is_value eq 'Y'}{$ef.field_value|escape:html}{else}{$ef.value| escape:html}{/if}" />
</td>
{/if}
{else}
<td> Other specs needed here </td>
{/if}

</tr>
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 2 (0 members and 2 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Magento Get most popular products in a category Rangeley Magento 0 2015-04-24 04:38 AM
How to Show Category and Tag Descriptions In WordPress Theme topvip WordPress 0 2010-11-03 09:46 PM
Becoming an editor at the Open Directory yahoo 闲话灌水 0 2009-05-24 01:08 PM
Adding Description to the Category page (phpld) topvip Web Directory 0 2007-08-17 01:44 AM
Category descriptions (phpld) topvip Web Directory 1 2007-07-10 02:04 AM

Prescription-glasses.com offers prescription glasses online at discount prices.
All times are GMT +8. The time now is 11:01 AM.


Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.