Zen Cart Logo
Forums / Addon Admin Tools / Product Extra Fields for text, pdfs and flash

Product Extra Fields for text, pdfs and flash

Views: 74,446

Results 141 to 160 of 381
8 Oct 2010, 4:36 PM
#141
brushwoodnursery avatar

brushwoodnursery

Zen Follower

Join Date:
Dec 2006
Posts:
199
Plugin Contributions:
0

Product Extra Fields for text, pdfs and flash

Delia,
Thanks for building and supporting this mod! I'm looking at a major upgrade of our product info pages and I think this will help. What we need is a short bit of description on the right-top of the page with the image on the left-top then below that we want the main description area where we'd like to use Tabbed Products Pro. Do you know if they're compatible? Also, if we have Quick Updates but we don't use it for the descriptions (only quantity and model number) will we be OK or do we still need to do a merge?

11 Oct 2010, 10:09 PM
#142
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,769
Plugin Contributions:
20

Re: Product Extra Fields for text, pdfs and flash

Hy Delia! Great to see you've fixed many things about your contrib, it has now become almost a standard install on my shops...

Do you perhaps know how I could get the advanced search to look in the extra description field? I have some parameters in that field, but when I do a search on the exact keyword from the extra description, no results are found.

Thank you!

11 Oct 2010, 11:11 PM
#143
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Product Extra Fields for text, pdfs and flash

The search only searches on the product title and description so it would have to be altered to include that new table. I'm not sure how possible it would be - it's kinda like the attributes - just maybe not possible tho I think it should be. I'll keep it in mind tho; I had it come up this morning as well.

14 Oct 2010, 2:47 PM
#144
lowie avatar

lowie

New Zenner

Join Date:
Oct 2009
Posts:
12
Plugin Contributions:
0

Re: Product Extra Fields for text, pdfs and flash

I have the new zencart, but when i install the latest product extra fields addon and i type some text int the extra field, it also outputs the html code. So the page looks like this:

When i put in this:
##########_
HOOOI

HOI
##########_

it outputs this on the product page:

HOOOI<br /><br /><br /><br />HOI

I tried reuploading and stuff, and changing browsers but nothing works. Also moving in to plain text mode does not work. it keeps outputting the HTML code too.

14 Oct 2010, 4:49 PM
#145
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Product Extra Fields for text, pdfs and flash

You must be using 1.3.9g?

14 Oct 2010, 5:00 PM
#146
lowie avatar

lowie

New Zenner

Join Date:
Oct 2009
Posts:
12
Plugin Contributions:
0

Re: Product Extra Fields for text, pdfs and flash

yes i am

14 Oct 2010, 5:15 PM
#147
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Product Extra Fields for text, pdfs and flash

1.3.9g has screwed up a lot of things that will be fixed with the next version.

There is a fix published that will correct this in many areas of zen cart such as the define pages but in the case of this mod, I simply recommend only using text for the moment until the zen cart folks decide how they are going to handle the next set of changes.

22 Oct 2010, 9:42 AM
#148
lowie avatar

lowie

New Zenner

Join Date:
Oct 2009
Posts:
12
Plugin Contributions:
0

Re: Product Extra Fields for text, pdfs and flash

That kinda sucks very bad. I need this contrib asap. Oh well, I'll wait then

23 Oct 2010, 4:31 PM
#149
graphic_content avatar

graphic_content

New Zenner

Join Date:
Nov 2008
Location:
Gex, France
Posts:
71
Plugin Contributions:
0

Re: Product Extra Fields for text, pdfs and flash

HI there,

I am building a site in EN, FR and DE. How would I edit this mod to make it offer the 3 language text boxes. I don't need it to offer different language for the file uploads, just the text input fields.

Your help would be great!

Thanks
Matt

23 Oct 2010, 5:55 PM
#150
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Product Extra Fields for text, pdfs and flash

I've never done a mod with the languages in mind so I'm a little fuzzy on that myself.

Definitely would require major changes to the mod and the database. Not simply edits.

27 Oct 2010, 7:05 PM
#151
billswebbiz avatar

billswebbiz

New Zenner

Join Date:
Aug 2010
Posts:
5
Plugin Contributions:
0

Re: Product Extra Fields for text, pdfs and flash

Hi Delia,

I installed this but unfortunately, I was using ZC 1.39g. There is now ZC 1.39h released. Do you know yet if your addon will work with it?

Also, after installing this, where are we supposed to see your extra fields? In the product editing area? As of now, I don't see any extra fields.

Thanks,
Bill

10 Nov 2010, 10:25 AM
#152
lowie avatar

lowie

New Zenner

Join Date:
Oct 2009
Posts:
12
Plugin Contributions:
0

Re: Product Extra Fields for text, pdfs and flash

is it possible to show the SWF (flash) upload in a lightbox/fancybox mode? To make it a little more fancy instead of a popup.

Thanks!

10 Nov 2010, 12:54 PM
#153
lowie avatar

lowie

New Zenner

Join Date:
Oct 2009
Posts:
12
Plugin Contributions:
0

Re: Product Extra Fields for text, pdfs and flash

Nevermind i found the solution

10 Nov 2010, 1:07 PM
#154
lowie avatar

lowie

New Zenner

Join Date:
Oct 2009
Posts:
12
Plugin Contributions:
0

Re: Product Extra Fields for text, pdfs and flash

People who also want to show the flash file in a dynamic popup (example: http://www.devuurwerkhandel.nl/kruitvaatje-17-shots-p-26.html)

  • Download Fancybox: http://fancybox.net/

  • Upload the following files into: includes/templates/YOURTEMPLATEFOLDER/templates

    • the map fancybox (drag and drop)
    • the file jquery-1.4.3.min.js
  • Open de example index.html file included in the .rar file

    • now copy the javascript out of it (you can also copy this one):
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
	<script>
		!window.jQuery && document.write('<script src="http://www.URL.nl/includes/templates/TEMPLATE/templates/jquery-1.4.3.min.js"><\/script>');
	</script>
	<script type="text/javascript" src="http://www.URL.nl/includes/templates/TEMPLATE/templates//fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
	<script type="text/javascript" src="http://www.URL.nl/includes/templates/TEMPLATE/templates//fancybox//jquery.fancybox-1.3.3.pack.js"></script>
	<link rel="stylesheet" type="text/css" href="http://www.URL.nl/includes/templates/TEMPLATE/templates//fancybox/jquery.fancybox-1.3.3.css" media="screen" />
	<script type="text/javascript">
		$(document).ready(function() {
			/*
			*   Examples - images
			*/

			$("a#example1").fancybox();

			$("a#example2").fancybox({
				'overlayShow'	: false,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic'
			});

			$("a#example3").fancybox({
				'transitionIn'	: 'none',
				'transitionOut'	: 'none'	
			});

			$("a#example4").fancybox({
				'opacity'		: true,
				'overlayShow'	: false,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'none'
			});

			$("a#example5").fancybox();

			$("a#example6").fancybox({
				'titlePosition'		: 'outside',
				'overlayColor'		: '#000',
				'overlayOpacity'	: 0.9
			});

			$("a#example7").fancybox({
				'titlePosition'	: 'inside'
			});

			$("a#example8").fancybox({
				'titlePosition'	: 'over'
			});

			$("a[rel=example_group]").fancybox({
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? '   ' + title : '') + '</span>';
				}
			});

			/*
			*   Examples - various
			*/

			$("#various1").fancybox({
				'titlePosition'		: 'inside',
				'transitionIn'		: 'none',
				'transitionOut'		: 'none'
			});

			$("#various2").fancybox();

			$("#various3").fancybox({
				'width'			: '80%',
				'height'			: '80%',
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});

			$("#various4").fancybox({
				'padding'			: 0,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none'
			});
		});
	</script>

Be sure to edit the URLS at the top of this script. Then copy the whole script into your tpl_products_info_display.php page somewhere at the top.

  • You now need to edit the link that opens the flash file/video:
    • go to: includes/modules/pages/product_info/main_template_vars_product_type.php
    • edit this line:
      <a href="javascript:popupWindow(\''.zen_href_link(FILENAME_FLASH).'&id='.$_GET[products_id]. '\') ">'. $products_video_title . '</a>

into this:
if (!empty($products_video)) $products_video_link = '<a id="various3" href="'.zen_href_link(FILENAME_FLASH).'&id='.$_GET[products_id]. ' ">'. $products_video_title . '</a>';

Thats it!

Please keep in mind this is just a quick solution and not very smart. I just needed this done asap. When you use lightbox (or slimbox) for your product images to enlarge, fancybox will possibly disable that.

You need to use fancybox for your images also by doing this:
go to includes/templates/yourtemplatefolder/templates/tpl_modules_main_product_image.php and add id="example1" to the <a> functions. Very easy.

:D

11 Nov 2010, 3:36 PM
#155
lowie avatar

lowie

New Zenner

Join Date:
Oct 2009
Posts:
12
Plugin Contributions:
0

Re: Product Extra Fields for text, pdfs and flash

When i try to upload a flash movie i get the same error over and over!

Anyone know whats wrong?

1054 Unknown column 'pe.products_code' in 'field list'
in:
[select p.products_id, pd.language_id, pd.products_name, pd.products_description, pd.products_url, p.products_quantity, p.products_model, p.products_image, p.products_price, p.products_virtual, p.products_weight, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status, p.manufacturers_id, pe.products_code, pe.file_1, pe.file_2, pe.file_3, pe.file_4, pe.file_1_title, pe.file_2_title, pe.file_3_title, pe.file_4_title, pe.video,pe.video_title, p.products_quantity_order_min, p.products_quantity_order_units, p.products_priced_by_attribute, p.product_is_free, p.product_is_call, p.products_quantity_mixed, p.product_is_always_free_shipping, p.products_qty_box_status, p.products_quantity_order_max, p.products_sort_order from products p, products_description pd, product_extra_fields pe where p.products_id = pd.products_id and p.products_id = pe.products_id and p.products_id = '0']
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields 
12 Nov 2010, 1:26 PM
#156
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Product Extra Fields for text, pdfs and flash

Now that's just bizarre, Lowie. I'm not sure how that happened because no one has reported that error before but it sure is an error.

I've updated to the 1.3.9h version and corrected the bug. I just uploaded it to contributions so you won't be able to see it yet.

12 Nov 2010, 3:24 PM
#157
billswebbiz avatar

billswebbiz

New Zenner

Join Date:
Aug 2010
Posts:
5
Plugin Contributions:
0

Re: Product Extra Fields for text, pdfs and flash

delia:

Now that's just bizarre, Lowie. I'm not sure how that happened because no one has reported that error before but it sure is an error.

I've updated to the 1.3.9h version and corrected the bug. I just uploaded it to contributions so you won't be able to see it yet.

:clap:

Hi Delia,

How long does it take before we will see it?

Thanks!

12 Nov 2010, 3:32 PM
#158
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Product Extra Fields for text, pdfs and flash

I can't forecast - depends on when they get to it.

12 Nov 2010, 5:19 PM
#159
billswebbiz avatar

billswebbiz

New Zenner

Join Date:
Aug 2010
Posts:
5
Plugin Contributions:
0

Re: Product Extra Fields for text, pdfs and flash

Thanks! :D

15 Nov 2010, 9:57 PM
#160
lowie avatar

lowie

New Zenner

Join Date:
Oct 2009
Posts:
12
Plugin Contributions:
0

Re: Product Extra Fields for text, pdfs and flash

Well this is for another website with version 1.38 and i never had the error before untill some days back!