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

Product Extra Fields for text, pdfs and flash

Views: 74,657

Results 41 to 60 of 381
27 Aug 2009, 8:54 PM
#41
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

Product Extra Fields for text, pdfs and flash

Ou. :(

I was reading here meanwhile the code of easypopulate.php but there are lots of stuff indeed...
tips could be welcome!

I may be blond but at least I found Zen.

27 Aug 2009, 9:04 PM
#42
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 even looked at the code but it would be primarily twofold. Adding the table to import and the text file for export. There is some other stuff there too but that's about all I actually know about it.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

7 Sep 2009, 5:50 PM
#43
diannev avatar

diannev

New Zenner

Join Date:
Jul 2007
Location:
Johannesburg
Posts:
27
Plugin Contributions:
1

Re: Product Extra Fields for text, pdfs and flash

Hi Delia,

I've asked a forum question under "General" about some additional functionality I need that looks very similar in concept to what you have done here. From the comments on the forum you look like an expert!

Basically I need to add a set of check-boxes (from a table) to each product. I suspect it is too complicated for me to do, and I have a little budget available if it is going to take up your time.

Please have a look at the general area and email me if you might be prepared to look at a new or adapted module for me.

Kind regards

Dianne

The world is divided into 10 kinds of people, those who understand binary and those who don't.

10 Sep 2009, 1:20 PM
#44
patrickuzu avatar

patrickuzu

New Zenner

Join Date:
Aug 2009
Posts:
6
Plugin Contributions:
1

Re: Product Extra Fields for text, pdfs and flash

hello
I have this message when I copy an item, how to solve this problem?

Warning: reset() [function.reset]: Passed variable is not an array or object in C:\Program Files\EasyPHP 2.0b1\www\xxx\admin\includes\classes\object_info.php on line 29

Warning: Variable passed to each() is not an array or object in C:\Program Files\EasyPHP 2.0b1\www\xxx\admin\includes\classes\object_info.php on line 30

Thank you very much for your help
Patrick

Version Zencart 1.3.8

10 Sep 2009, 1:54 PM
#45
patrickuzu avatar

patrickuzu

New Zenner

Join Date:
Aug 2009
Posts:
6
Plugin Contributions:
1

Re: Product Extra Fields for text, pdfs and flash

I just see it when you copy the product, the table "product_extra_fields" is not updated.
An idea?
Thank you
Patrick

14 Sep 2009, 2:25 PM
#46
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Product Extra Fields for text, pdfs and flash

OK, I applied the product_extra_files mod and am unclear as to how/where the extra files' definitions should appear. I've got an off-line installation of zen-cart 1.38a with the security mods applied.

There is currently 1 category with 2 products in my database. I tried creating a new category and adding a new product to it, but there is no opportunity to define the additional files.

Please help ...

14 Sep 2009, 2:57 PM
#47
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Product Extra Fields for text, pdfs and flash

Never mind, it's just me being dumb (again!). I loaded my store directory, but never applied the admin patches.:oops:

9 Oct 2009, 12:40 AM
#48
ziamo avatar

ziamo

New Zenner

Join Date:
May 2009
Posts:
4
Plugin Contributions:
0

Re: Product Extra Fields for text, pdfs and flash

Hi Delia,

After read all the threads, I still can not find the answer with my problem now.

I had added 'Product Extra Fields' without any problem and then I also added another module 'Ceon URI Mapping (SEO)' before I copy the completely folder for moving to under my another domain name.

When I check every modules which I have added that I found out the 'Product Extra Fields' doesn't exsist in my admin any more, so I check it back if every files are located in the correct locations and they are all correctly. Check on my shop, the extra information and files which I added/uploaded are still showed on the site. So, I decided to re-write the admin file of 'Product Extra Fields'. And then it appear again on the admin, but at the same time the 'Ceon URI Mapping (SEO)' select/add box is gone.

Could you please tell me how/what I should do for those two modules appear on the same page when I add the new product?

Christine

9 Oct 2009, 1:02 PM
#49
ziamo avatar

ziamo

New Zenner

Join Date:
May 2009
Posts:
4
Plugin Contributions:
0

Re: Product Extra Fields for text, pdfs and flash

ziamo:

Hi Delia,

After read all the threads, I still can not find the answer with my problem now.

I had added 'Product Extra Fields' without any problem and then I also added another module 'Ceon URI Mapping (SEO)' before I copy the completely folder for moving to under my another domain name.

When I check every modules which I have added that I found out the 'Product Extra Fields' doesn't exsist in my admin any more, so I check it back if every files are located in the correct locations and they are all correctly. Check on my shop, the extra information and files which I added/uploaded are still showed on the site. So, I decided to re-write the admin file of 'Product Extra Fields'. And then it appear again on the admin, but at the same time the 'Ceon URI Mapping (SEO)' select/add box is gone.

Could you please tell me how/what I should do for those two modules appear on the same page when I add the new product?

Christine

Hi,

I've got the answer of my problem and fix it already. Just like to post and share it with people who also have the same problem with those 2 modules "Product Extra Fields & Ceon URI Mapping (SEO)".

I change those two modules with the software "Winmerge" from below 3 files:

#admin/includes/modules/update_product.php
#admin/includes/modules/product/collect_info.php
#admin/includes/modules/product/preview_info.php

Right now, everything is functional. :clap:

12 Oct 2009, 9:20 PM
#50
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

diannev - contact me via private message if you will. I cant' seem to find your info.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

13 Oct 2009, 3:31 PM
#51
emilio avatar

emilio

New Zenner

Join Date:
May 2005
Location:
san francisco - California
Posts:
49
Plugin Contributions:
0

Re: Product Extra Fields for text, pdfs and flash

i installed the module in my test site but i don't know how to add the product id in the product_extra_fields table through excel with phpmyadmin and than import again in the database
Could someone explain me please how to do that ?

:frusty:

thank you

"You cannot step into the same river twice, for fresh waters are ever flowing in upon you."
*Heraclitus

Most of the universe is made of emptyness

all i know is that i don't know

*http://sualojanaweb.googlepages.com
http://www.insitesolutions.com.br

14 Oct 2009, 5:57 PM
#52
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Product Extra Fields for text, pdfs and flash

You're not going to affect the "product id" with an extra field - that is set automatically when the product is created, and you should not try to change it. If you mean the product's model number, that is something you can input when creating/editing the product, but not subject to the extra fields in this mod.

You will have to explain in more detail what number you are talking about, and Delia will have to be the one to answer, as I don't know the code for this mod.

14 Oct 2009, 7:01 PM
#53
emilio avatar

emilio

New Zenner

Join Date:
May 2005
Location:
san francisco - California
Posts:
49
Plugin Contributions:
0

Re: Product Extra Fields for text, pdfs and flash

right ..i mean when Delia says

If you are installing this into a cart that already has products, you will have to populate the new table with every product id in order for the products to be visible. This is not hard to do with excel and phpmyadmin. If you have access to your database, export the file to excel, add the fields and import it back in.When i try to upload a file into the description the product disappears due to Product Master Category: ID# that is missing

how does i do that in practice ?

"You cannot step into the same river twice, for fresh waters are ever flowing in upon you."
*Heraclitus

Most of the universe is made of emptyness

all i know is that i don't know

*http://sualojanaweb.googlepages.com
http://www.insitesolutions.com.br

16 Oct 2009, 8:32 PM
#54
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

Re: Product Extra Fields for text, pdfs and flash

I got enough of dealing HTMLarea and installed FCKeditor. All went fine with the installation itself and the new editor appears when making a new product on the standard text areas but in the "Extra Text Field" it comes just as plain text, no editor at all.

What shall I do?

I may be blond but at least I found Zen.

16 Oct 2009, 8:45 PM
#55
emilio avatar

emilio

New Zenner

Join Date:
May 2005
Location:
san francisco - California
Posts:
49
Plugin Contributions:
0

Re: Product Extra Fields for text, pdfs and flash

ellivir:

I got enough of dealing HTMLarea and installed FCKeditor. All went fine with the installation itself and the new editor appears when making a new product on the standard text areas but in the "Extra Text Field" it comes just as plain text, no editor at all.

What shall I do?
personally i prefer tiny mce on zen ..anyway have you activated it in the admin and under the products /category ?
Personally it's a week that i'm waiting a reply from delia about her "easy" phpmyadmin product id modify.
Maybe i'm retarded but i didn't understand

"You cannot step into the same river twice, for fresh waters are ever flowing in upon you."
*Heraclitus

Most of the universe is made of emptyness

all i know is that i don't know

*http://sualojanaweb.googlepages.com
http://www.insitesolutions.com.br

22 Oct 2009, 2:07 PM
#56
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Product Extra Fields for text, pdfs and flash

@emilio: Here's what I did to get the product_extra_fields on products that were in my catalog before I applied the PEF add-on:

NOTE: Backup your database before you do this stuff (in case it goes wrong).

Start phpMyAdmin. If you've installed PEF correctly, you'll see a product_extra_fields table within your zen-cart database.

If that's there, go to your product table and write down the products_id values for all the products that you want to have the extra fields. Now, click on the product_extra_fields table name on the left-side of the display. Up at the top of the screen, click the *Insert *tab and you're presented with an entry screen to create a new entry in the PEF table.

For each of the products_id values that you want to have the extra fields: enter the products_id number in the products_id *Value *element of the form, enter   in the extra_field Value element of the form, and keep the *Null *checkbox checked for all other elements. Click "Go"; that will add an element in the PEF table for that products_id.

Note: If you have a bunch of products_id's to add, make sure to look at the bottom of the page and select "Insert another new row" as the action to take after the current row is added.

It's cumbersome, but it worked for me!

22 Oct 2009, 2:16 PM
#57
emilio avatar

emilio

New Zenner

Join Date:
May 2005
Location:
san francisco - California
Posts:
49
Plugin Contributions:
0

Re: Product Extra Fields for text, pdfs and flash

lat9:

@emilio: Here's what I did to get the product_extra_fields on products that were in my catalog before I applied the PEF add-on:

NOTE: Backup your database before you do this stuff (in case it goes wrong).

Start phpMyAdmin. If you've installed PEF correctly, you'll see a product_extra_fields table within your zen-cart database.

If that's there, go to your product table and write down the products_id values for all the products that you want to have the extra fields. Now, click on the product_extra_fields table name on the left-side of the display. Up at the top of the screen, click the *Insert *tab and you're presented with an entry screen to create a new entry in the PEF table.

For each of the products_id values that you want to have the extra fields: enter the products_id number in the products_id *Value *element of the form, enter   in the extra_field Value element of the form, and keep the *Null *checkbox checked for all other elements. Click "Go"; that will add an element in the PEF table for that products_id.

Note: If you have a bunch of products_id's to add, make sure to look at the bottom of the page and select "Insert another new row" as the action to take after the current row is added.

It's cumbersome, but it worked for me!

thank you buddy for the help.
is very difficult to have support here in zen-cart
i started with zen about 6 7 years ago but now i'm moving to joomla + vm because of this .... poor support especially international (...)
It's a pity because zen was a milestone in ecommerce ....
People needs to be more in collaboration and take off the nerd coder behaviour ..using simple words ...thinking that everyone can give his support.

thanks again

Emilio

"You cannot step into the same river twice, for fresh waters are ever flowing in upon you."
*Heraclitus

Most of the universe is made of emptyness

all i know is that i don't know

*http://sualojanaweb.googlepages.com
http://www.insitesolutions.com.br

22 Oct 2009, 2:18 PM
#58
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Product Extra Fields for text, pdfs and flash

There's (at a minimum) an extra empty <li> generated when a product is created after the product_extra_fields add-on is installed. The problem is that the default value for the extra_field element is   (which is not an empty string).

What I did to correct this was to take the code at line 37 in \includes\modules\pages\product_info\main_page_vars_product_type.php:

  $extra_field  = $files->fields['extra_field'];

and expand it to:

  $extra_field  = $files->fields['extra_field'];
  if (!empty($extra_field) && $extra_field == ' ') $extra_field = '';

That makes empty($extra_field) to be true for the processing in the product_info display.

22 Oct 2009, 2:53 PM
#59
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

Sorry about being awol, guys! Been under the weather.

First of all, the absolute best way to create the correct fields and rows after installing this is to do it via excel. lat9 is right about the way he did his cart. However, some folks may find that to be cumbersome and may not even work for others. You need to create a row for every product you have not just the ones you think you need this on.

First, export the product_extra_fields table via phpmyadmin. Choose excel csv as the type of export and you may need to experiment to see which opens correctly in your version of excel but the csv works for me. Be sure not to leave NULL in the blank for filler for empty space.

Open that file in excel. Fill in the product id numbers for every product (type 1,2,3,4,5 - select and draw the column down to easily create your product id numbers). Save the file as csv and import in phymyadmin. Put a comma in Fields terminated by where it defaults to semicolon. Be sure to check the box to replace the table data.

I am aware that copying and deleting the product does not work correctly and will be fixing once I get a chance to do that.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

24 Oct 2009, 6:44 AM
#60
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

Re: Product Extra Fields for text, pdfs and flash

emilio:

personally i prefer tiny mce on zen ..anyway have you activated it in the admin and under the products /category ?
Personally it's a week that i'm waiting a reply from delia about her "easy" phpmyadmin product id modify.
Maybe i'm retarded but i didn't understand

So, the editor DOES APPEAR with the normal product description area but not with the extra field that this Delia's contribution adds into product information.
Editor is activated but just doesn't appear for the extra field, for other places it comes visible.

Elli

I may be blond but at least I found Zen.