Product Extra Field - product list
#1
Posted 27 July 2006 - 08:53 PM
I have installed the contribution Product extra fields who is perfect to do what i want.
It works great, but I can't let the extra fields show in the product_list. I would like to do something like that (http://www.wizardscupboard.com/singles-edition-c-100_3.html)
Someone can help me and i think all community because lot of ppl want to do that ^^
Thanks a lot
Eaque
ps : sorry for my english
#2
Posted 10 January 2007 - 07:05 AM
i am using Product Extra Fields which is a nice feature, but...
i would love to be able to set more options for each field, such as
* short text
* long text
* radio button
* select list
and not only shorttext as it is now.
do you know is anyone is working on this?
thanks
jacopo
#3
Posted 29 February 2008 - 12:20 PM
#4
Posted 15 June 2009 - 06:51 AM
jacopo, on Jan 10 2007, 07:05 AM, said:
i am using Product Extra Fields which is a nice feature, but...
i would love to be able to set more options for each field, such as
* short text
* long text
* radio button
* select list
and not only shorttext as it is now.
do you know is anyone is working on this?
thanks
jacopo
Hello Jacopo,
You told that you are using product extra fields contribution,
Can you please tell me which version or file you downloaded from the contribution list of Extra Fields contribution..
There are too many versions of that contribution there and i am not able to figure out which one to use.. So i want to know which version file did you downloaded for this..
Please Help me if possible i am really confused for this and i badly need it for my site..
Thanks in advance..
#5
Posted 15 June 2009 - 07:49 AM
I downloaded the v2_0j
and tried to follow those install instructions which have left me confused. I'm used to making edits to phpbb3 via these text files but this one is just crazy. The start of the edits goes on about if I am upgrading from an older version but I just want to do a full clean install.
I have gone through the steps i can see the boxes appear in the backend but when i enter information and click preview i dont see the boxes and when i click save it dont save anything.
If i go back to the product in backend the information does not show.
can somebody send me plain instructions for a clean install please.
Edited by DirtySnipe, 15 June 2009 - 07:50 AM.
#6
Posted 27 July 2009 - 08:35 PM
DirtySnipe, on Jun 15 2009, 03:49 AM, said:
I downloaded the v2_0j
and tried to follow those install instructions which have left me confused. I'm used to making edits to phpbb3 via these text files but this one is just crazy. The start of the edits goes on about if I am upgrading from an older version but I just want to do a full clean install.
I have gone through the steps i can see the boxes appear in the backend but when i enter information and click preview i dont see the boxes and when i click save it dont save anything.
If i go back to the product in backend the information does not show.
can somebody send me plain instructions for a clean install please.
I have the same exact problem with the same package mentioned above on rc2a! Does anyone have advice on why the sql is not saving the values for these fields? I started looking in the categories page. Is there a select statement that needs to be modified on admin/categories.php???
thanks!
#7
Posted 27 July 2009 - 08:37 PM
kenz, on Jul 27 2009, 04:35 PM, said:
thanks!
Is this statement right for the installation of this module towards mid bottom of categories.php?
<?php
// START: Extra Fields Contribution (chapter 1.4)
// Sort language by ID
for ($i=0, $n=sizeof($languages); $i<$n; $i++) {
$languages_array[$languages[$i]['id']]=$languages[$i];
}
$extra_fields_query = tep_db_query("SELECT * FROM " . TABLE_PRODUCTS_EXTRA_FIELDS . " ORDER BY products_extra_fields_order");
while ($extra_fields = tep_db_fetch_array($extra_fields_query)) {
// Display language icon or blank space
if ($extra_fields['languages_id']==0) {
$m=tep_draw_separator('pixel_trans.gif', '24', '15');
} else $m= tep_image(DIR_WS_CATALOG_LANGUAGES . $languages_array[$extra_fields['languages_id']]['directory'] . '/images/' . $languages_array[$extra_fields['languages_id']]['image'], $languages_array[$extra_fields['languages_id']]['name']);
?>
<tr bgcolor="#ebebff">
<td class="main"><?php echo $extra_fields['products_extra_fields_name']; ?>:</td>
<td class="main"><?php echo $m . ' ' . tep_draw_input_field("extra_field[".$extra_fields['products_extra_fields_id']."]", $pInfo->extra_field[$extra_fields['products_extra_fields_id']]); ?></td>
</tr>
<?php
}
// END: Extra Fields Contribution
?>
Edited by kenz, 27 July 2009 - 08:40 PM.
#8
Posted 27 July 2009 - 09:09 PM
if (isset($HTTP_GET_VARS['pID']) && empty($HTTP_POST_VARS)) {
//PRODUCT FIELDS (a) START: Extra Fields Contribution
$products_extra_fields_query = tep_db_query("SELECT * FROM " . TABLE_PRODUCTS_TO_PRODUCTS_EXTRA_FIELDS . " WHERE products_id=" . (int)$HTTP_GET_VARS['pID']);
while ($products_extra_fields = tep_db_fetch_array($products_extra_fields_query)) {
$extra_field[$products_extra_fields['products_extra_fields_id']] = $products_extra_fields['products_extra_fields_value'];
}
$extra_field_array=array('extra_field'=>$extra_field);
$pInfo->objectInfo($extra_field_array);
// END: Extra Fields Contribution
or something similar on that preview page section of categories.php?
thanks!
Edited by kenz, 27 July 2009 - 09:10 PM.
#9
Posted 27 July 2009 - 09:45 PM
#10
Posted 06 January 2010 - 08:13 PM
kenz, on 27 July 2009 - 09:45 PM, said:
Hi there, I am having exactly the same problem, and I don't know how it has happened.. I did all changes on categories.php, then did trials,.. all seemed to work fine.. and then, all of the sudden.. the data is not sent to the database.. I can see it in the preview page when I am editing.. but then.. after that, nothing goes to the database...
could you let me see you categories.php file.. to see where I am wrong.. this is really bugging me..
thanks for whatever help you can give me..
amanda.
#11
Posted 06 January 2010 - 08:28 PM
this change is critical.. as there are many "$languages = tep_get_languages();".. you have to make sure you put it where the rest of code appears.. then you won't go wrong.
------------------------------------------------------------------
13a) Around line 711 find the section of code that reads as follows:
$languages = tep_get_languages();
for ($i=0, $n=sizeof($languages); $i<$n; $i++) {
echo tep_draw_hidden_field('products_name[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($products_name[$languages[$i]['id']])));
echo tep_draw_hidden_field('products_description[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($products_description[$languages[$i]['id']])));
echo tep_draw_hidden_field('products_url[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($products_url[$languages[$i]['id']])));
}
Just before the } that closes the for loop INSERT the following:
// begin Extra Product Fields
foreach ($xfields as $f) {
echo tep_draw_hidden_field($f . '[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($extra[$f][$languages[$i]['id']])));
}
// end Extra Product Fields
--------------------------------------------------------------------------
#12
Posted 06 January 2010 - 09:49 PM
I looked at this contrib & much of the code needs to be re-hashed, I can't see the mod for the listing working, ever, as writen.
If you look at Product Listing Enhancements, Thumbnails & Manufacturer Headings http://addons.oscommerce.com/info/6051 I have added support to that for Product Extra Fields by creating a new function, if you wished that function could be used elsewhere. [img]http://forums.oscommerce.com/public/style_emoticons/default/wink.gif[/img]
Remember, What you think I ment may not be what I thought I ment when I said it.
Contributions:
Auto Backup your Database, Easy way
Multi Images with Fancy Pop-ups, Easy way
Products in columns with multi buy etc etc
Disable any Category or Product, Easy way
Secure & Improve your account pages et al.
#13
Posted 07 December 2010 - 03:24 PM
Button "Show Field In Product Listings" doesn't work at all.
Can I hide added in EPF META keywords from customer?
#14
Posted 17 March 2012 - 03:48 AM
But the list came out strangly:
peddlerbooks . net76 . net / catalog/index.php?cPath=22_23&language=en
There is no product name and the extra fields I added. Furthermore,
The "buy now" button came out twice (I disabled one).
Could anyone help me to make it nicer.
Thanks.
Edited by Jan Zonjee, 30 March 2012 - 06:01 AM.
#15
Posted 21 January 2013 - 03:07 AM
For example, I created a field called "Product Size" and one called "Band Size". Ho do I make sure that end up on the invoice and orders?
#16
Posted 21 January 2013 - 05:48 AM
#17
Posted 21 January 2013 - 10:56 PM









