Author Topic: Free definable Fields will not display (in 2 shops too)  (Read 1340 times)

Offline seanie_morris

  • Posts: 287
  • Gender: Male
Free definable Fields will not display (in 2 shops too)
« on: September 11, 2015, 12:45:11 PM »
Hi there Bakers,

This hasn't surfaced in a search of this site, so I need to ask help on the following: I am using 2 of the 3 'Free definable Field' options in General Settings, but they will not display for me in the product's live view. I can confirm that the names I gave the fields exist in the database ('ISBN#' and 'Product Dimensions'), but they do not display in the product view (both when empty and with details added). This is occurring on 2 sites using Bakery at the moment.

Any clues as to where I went wrong?


Thanks,

Seanie.

Offline Gast

  • Posts: 5920
Re: Free definable Fields will not display (in 2 shops too)
« Reply #1 on: September 11, 2015, 01:14:18 PM »
do you read the instructions? you have to change the item template to show the definable field

see http://www.bakery-shop.ch/#definable_fields

Offline seanie_morris

  • Posts: 287
  • Gender: Male
Re: Free definable Fields will not display (in 2 shops too) [SOLVED]
« Reply #2 on: September 11, 2015, 02:17:27 PM »
do you read the instructions? you have to change the item template to show the definable field

see http://www.bakery-shop.ch/#definable_fields

Perfect, that worked, thanks! I might as well add the steps for everyone else to read (rather than leave an un-ended thread!)

First, you need to include some CSS for the Free definable Field:

1. Download frontend.css from the modules/bakery directory.

2. At line 104 where the property:
Code: [Select]
.mod_bakery_item_stock_f {
font-weight: bold;
}
is located, add the following underneath it for a new property:
Code: [Select]
.mod_bakery_item_definable_field_f {
font-weight: bold;
}

3. Save and re-upload to your modules/bakery directory.


Now, you need to add the fields to be displayed to the template. Go to Page Settings in your Bakery's admin backend.

1. Go to the 'Item Detail (footer)' section.

(1a. Tip: It might be easier to copy the text from this box and paste it into Notepad (Win) or Text Edit (Mac) to make it easier to edit. Then when you have finished the edit, copy and paste it back into 'Item Detail (footer)')

2. After you have located the following table row of text:
Code: [Select]
<tr>
<td align="left" valign="top"><span class="mod_bakery_item_stock_f">[TXT_STOCK]:</span></td>
<td align="left" valign="top">[STOCK]</td>
</tr>
paste the following code after it:
Code: [Select]
<tr>
<td align="left" valign="top"><span class="mod_bakery_item_definable_field_f">[TXT_FIELD_1]:</span></td>
<td align="left" valign="top">[FIELD_1]</td>
</tr>
<tr>
<td align="left" valign="top"><span class="mod_bakery_item_definable_field_f">[TXT_FIELD_2]:</span></td>
<td align="left" valign="top">[FIELD_2]</td>
</tr>
<tr>
<td align="left" valign="top"><span class="mod_bakery_item_definable_field_f">[TXT_FIELD_3]:</span></td>
<td align="left" valign="top">[FIELD_3]</td>
</tr>

3. Save the page, making sure you have checked the box for Update Page Settings (without "Continue Shopping URL") of all Shop Pages.

4. And you're done!


Hope this helps,

Seanie.

P.S. If an Admin can add [SOLVED] to the original thread title, brilliant.
« Last Edit: September 11, 2015, 02:25:31 PM by seanie_morris »