Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Extra Fields: Creating and making available for all Providers.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 04-30-2008, 10:18 AM
  ScrapProfessor's Avatar 
ScrapProfessor ScrapProfessor is offline
 

Advanced Member
  
Join Date: Mar 2008
Posts: 90
 

Default Re: Extra Fields: Creating and making available for all Providers.

Dear Yuri,

I need some more help here. Let me explain. I would like to have a specific extra field (Designer) to be listed on the product listing page. I've created and setup the extra field just as you specified above (works BEAUTIFULLY! Thanks!). When a customer clicks on any of the categories the product listing page is brought up. It currently shows the following:

Product Image: Name of Product
SKU of Product
Short Description of Product
Market Price
Our Price
Quantity
Buy Now button, Add to Wishlist button

I would also like it to display the extra field "Designer" (provider name) in the list as well, preferrably below the SKU. How would I do this?

Your help and time is appreciated! THANK YOU!!
__________________
Joli Kirk,
"Life is not measured by the number of breaths we take, but by the number of moments that take our breath away"

X-Cart PRO 4.3.1 | Linux | PHP 5 | MySQL 5


AlteredCart.com - Download Expander; Product Page Downloads
BCSEngineering.com - On Sale Products; Newest Added Products
Reply With Quote
  #12  
Old 05-02-2008, 07:13 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: Extra Fields: Creating and making available for all Providers.

Quote:
Originally Posted by ScrapProfessor
Dear Yuri,

I need some more help here. Let me explain. I would like to have a specific extra field (Designer) to be listed on the product listing page. I've created and setup the extra field just as you specified above (works BEAUTIFULLY! Thanks!). When a customer clicks on any of the categories the product listing page is brought up. It currently shows the following:

Product Image: Name of Product
SKU of Product
Short Description of Product
Market Price
Our Price
Quantity
Buy Now button, Add to Wishlist button

I would also like it to display the extra field "Designer" (provider name) in the list as well, preferrably below the SKU. How would I do this?

Your help and time is appreciated! THANK YOU!!

Name "Extra field " - "Designer". If not, pls. change all"Designer" (in the entire code below) on your name.


1. Edit file "skin1/modules/Extra_Fields/product.tpl":
PHP Code:
{* $Idproduct.tpl,v 1.9 2005/11/21 12:42:06 max Exp $ *}
{
section name=field loop=$extra_fields}
{if 
$extra_fields[field].active eq "Y" && $extra_fields[field].field_value && $extra_fields[field].field ne "Designer"}
<
tr>
    <
td width="30%">{$extra_fields[field].field}</td>
    <
td>{$extra_fields[field].field_value}</td>
</
tr>
{/if}
{/
section

2. Create file "skin1/modules/Extra_Fields/product2.tpl":

PHP Code:
{* $Idproduct.tpl,v 1.9 2005/11/21 12:42:06 max Exp $ *}
{
section name=field loop=$extra_fields}
{if 
$extra_fields[field].active eq "Y" && $extra_fields[field].field_value && $extra_fields[field].field eq "Designer"}
<
tr>
    <
td width="30%">{$extra_fields[field].field}</td>
    <
td>{$extra_fields[field].field_value}</td>
</
tr>
{/if}
{/
section
Reply With Quote
  #13  
Old 05-02-2008, 07:33 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: Extra Fields: Creating and making available for all Providers.

3. For "PRODUCTS DETAILS PAGE":

3.1 Edit file "skin1/customer/main/product.tpl", after this lines:

PHP Code:
<tr><td colspan="2">&nbsp;</td></tr>
<
tr>
    <
td width="30%">{$lng.lbl_sku}</td>
    <
td nowrap="nowrap" id="product_code">{$product.productcode}</td>
</
tr

Insert the following code

PHP Code:
{if $active_modules.Extra_Fields ne ""}
{include 
file="modules/Extra_Fields/product2.tpl"}
{/if} 


3. For SUBCATEGORY page (config.Appearance.products_per_row="", Display products list in multiple columns (1-3) (leave empty to use standard format)):

3.1. Create file "skin1/modules/Extra_Fields/product3.tpl":
PHP Code:
{* $Idproduct.tpl,v 1.9 2005/11/21 12:42:06 max Exp $ *}
{
section name=field loop=$extra_fields}
{if 
$extra_fields[field].active eq "Y" && $extra_fields[field].value && $extra_fields[field].field eq "Designer"}
<
tr>
    <
td width="30%">{$extra_fields[field].field}</td>
    <
td>{$extra_fields[field].value}</td>
</
tr>
{/if}
{/
section

3.2. Edit file "skin1/customer/main/products.tpl", after this lines:
PHP Code:
{if $config.Appearance.display_productcode_in_list eq "Y" and $products[product].productcode ne ""}
<
br />
{
$lng.lbl_sku}: {$products[product].productcode}
{/if} 

Insert the following code

PHP Code:
{if $active_modules.Extra_Fields ne ""}
    <
table border="0">
    {include 
file="modules/Extra_Fields/product3.tpl" extra_fields=$products[product].extra_fields}
    </
table>
{/if} 
Reply With Quote
  #14  
Old 05-02-2008, 07:38 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: Extra Fields: Creating and making available for all Providers.

3. For SUBCATEGORY page (config.Appearance.products_per_row!=""):

3.1. Create file "skin1/modules/Extra_Fields/product3.tpl":
PHP Code:
{* $Idproduct.tpl,v 1.9 2005/11/21 12:42:06 max Exp $ *}
{
section name=field loop=$extra_fields}
{if 
$extra_fields[field].active eq "Y" && $extra_fields[field].value && $extra_fields[field].field eq "Designer"}
<
tr>
    <
td width="30%">{$extra_fields[field].field}</td>
    <
td>{$extra_fields[field].value}</td>
</
tr>
{/if}
{/
section

3.2. Edit file "skin1/customer/main/products_t.tpl", after this lines:
PHP Code:
{if $config.Appearance.display_productcode_in_list eq "Y" and $products[product].productcode ne ""}
{
$lng.lbl_sku}: {$products[product].productcode}<br />
{/if} 

Insert the following code

PHP Code:
{if $active_modules.Extra_Fields ne ""}
    <
table border="0">
    {include 
file="modules/Extra_Fields/product3.tpl" extra_fields=$products[product].extra_fields}
    </
table>
{/if} 
Reply With Quote
  #15  
Old 05-14-2008, 05:47 AM
 
shanda shanda is offline
 

Member
  
Join Date: May 2008
Posts: 10
 

Default Re: Extra Fields: Creating and making available for all Providers.

This answer came right on time! Thanks a million!
__________________
http://www.eBookAd.com
X-Cart Pro 4.1.10
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:05 AM.

   

 
X-Cart forums © 2001-2020