product supplier field?

Locked

Views: 2,492

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
8 Jun 2009, 1:02 PM
#1
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,808
Plugin Contributions:
22

product supplier field?

I need to add "Product supplier" field in my db and see it in admin, but not in site catalog.

I have multiple suppliers and when I get an order, I need to know from which supplier that product is, but I don't want my customers to see that.

How do I do that?

My site - Pro ZC Help
My portfolio | My plugins

8 Jun 2009, 1:16 PM
#2
angeli avatar

angeli

New Zenner

Join Date:
Aug 2007
Posts:
43
Plugin Contributions:
0

Re: product supplier field?

You could use your model field for this, but you would need make sure that the model doesn't then show up in you product display.

You would also have to remove it from you invoices.

How about using a shorthand code that you know in this field? So it wouldn't matter if other people see it?

8 Jun 2009, 1:53 PM
#3
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,808
Plugin Contributions:
22

Re: product supplier field?

actually, i'm already using the model field and I wouldn't like to loose it. My model field is a 4-6 digit code and when a customer calls me on the phone, I just ask for the product model to find the product. So, I'd like to keep the model field intact...

Plus, I use EasyPopulate to update my catalog on a daily basis (over 8000 products) and EP requires model field so it would be impossible to use it. I think... :blush:

My site - Pro ZC Help
My portfolio | My plugins

8 Jun 2009, 10:15 PM
#4
skipwater avatar

skipwater

Totally Zenned

Join Date:
Jun 2008
Location:
Washington, DC
Posts:
775
Plugin Contributions:
1

Re: product supplier field?

balihr:

actually, i'm already using the model field and I wouldn't like to loose it. My model field is a 4-6 digit code and when a customer calls me on the phone, I just ask for the product model to find the product. So, I'd like to keep the model field intact...

Plus, I use EasyPopulate to update my catalog on a daily basis (over 8000 products) and EP requires model field so it would be impossible to use it. I think... :blush:

I would add a suppliers code to the Products Model Number.

Skip

• 446F63746F722057686F •

8 Jun 2009, 10:40 PM
#5
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,808
Plugin Contributions:
22

Re: product supplier field?

Yeah, I was thinking about it... There is another problem - adding any suffix or prefix or anything to the model field causes other problems.

You see, i have over 8000 products and most products have a picture. Pictures are named after product model (p.m. 85645 has picture 85645.jpg), so if I change the product model, sooner or later I'll get confused and mix it all up...

It's really a lot of work and concentration required to manage it like that. I'm not sure if I'm capable to do it... :blush::blush:

A few days ago I was looking at Virtuemart (joomla webshop module) and it has a supplier field so I thought "if joomla can have it, why not ZenCart?". I mean, ZenCart is number one for me - i just love it, and I would hate to see joomla have something better...

Of course, if nobody gives me any solution, I'll have to go for this one and see what happens...

My site - Pro ZC Help
My portfolio | My plugins

8 Jun 2009, 11:52 PM
#6
aliepinieks avatar

aliepinieks

Zen Follower

Join Date:
Jun 2009
Location:
Brisbane, QLD AUS
Posts:
209
Plugin Contributions:
0

Re: product supplier field?

i looked for numerous methods for adding additional information and generally came up with a mod that did half of what i wanted, but never everything that i wanted.

i therefore tried to do it myself, with some success. i managed to duplicate the manufacturers field (for reasons different to yours) without too much pain, although it did take me around 4hrs (depends on what you call pain). this effectively gave me a second dropdown in each product definition, along with it's own management interface (i used it for categorisation independent of anything else) for creating/removing/editing entries, as well as mimicing the "URL" and image fields that you see with manufacturer. mine is not complete yet, predominantly because i'm still trying to add it this new field as a second filter to the user interface but i would imagine it would work perfectly for you as you don't want the user to see it, and it would take half the time as you are only interested in admin files.

  1. i duplicated the manufacturers, and manufacturers_info tables in phpMyAdmin, renaming all columns appropriately to the new category (without the data of course)
  2. i added a new "xxxxxxx_id" column to the products table (replacing xxxxxxx with the entity you are interested in)
  3. i used the "look-up in all files" facility (developers toolkit in the admin interface) to search all instances of the word "manufacturer". yes, i got a lot of results, but depending on your knowledge of zen-cart, and the product types you are using you may get away with only modifying 10-15 files. i printed this out so i could cross items off as i went.
  4. for each instance of the word manufacturer, i effectively duplicated the code for my purposes. this means for all global variables, all page variables, all PHP code and all sql. really not as daunting as it sounds, however...
  5. the last step was to create the files necessary to display the appropriate management tools in admin. as they all appeared in my previous search, this became quite evident simply by looking at the filename i was editing and the code calling/including the file

obviously, i haven't tested advanced searches and reports through the admin interface as this was not my desire, but i think you would probably have success within a days work if you put your mind to it.

last comment would be to ensure you back everything up, and use overrides! obviously, the layout of manufacturers requires modifications to the products table, so upgrades might get tricky down the track and it would be advisable to dump the database to file before upgrading t oavoid problems.

8 Jun 2009, 11:54 PM
#7
aliepinieks avatar

aliepinieks

Zen Follower

Join Date:
Jun 2009
Location:
Brisbane, QLD AUS
Posts:
209
Plugin Contributions:
0

Re: product supplier field?

sorry, swap steps 1 & 2 as you'll need to point the index from the new table to the new field in products table.

9 Jun 2009, 2:05 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: product supplier field?

Just to tantalize, the upcoming v2.0 contains the ability to specify who the supplier is for each product. :clap:

When it's ready for release, an announcement will be posted in the Release Announcements area of the forum.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

9 Jun 2009, 8:04 AM
#9
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,808
Plugin Contributions:
22

Re: product supplier field?

DrByte:

Just to tantalize, the upcoming v2.0 contains the ability to specify who the supplier is for each product. :clap:

When it's ready for release, an announcement will be posted in the Release Announcements area of the forum.

Really? Wow, that's great!

Although, I have a question. Will I be able to upgrade to v2.0 without loosing any settings of my current site? I'm using approx. 15 modules and have set up the site just the way I want it so I wouldn't like to loose these settings.

My site - Pro ZC Help
My portfolio | My plugins

9 Jun 2009, 8:07 AM
#10
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,808
Plugin Contributions:
22

Re: product supplier field?

ALiepinieks:

sorry, swap steps 1 & 2 as you'll need to point the index from the new table to the new field in products table.

Thanks! I'll give it a try. But I'm not sure if my programing skills are good enough to see it through... But i'll definitely give it a try!

My site - Pro ZC Help
My portfolio | My plugins

28 Sep 2009, 3:44 AM
#11
newbie76 avatar

newbie76

Zen Follower

Join Date:
Aug 2009
Posts:
100
Plugin Contributions:
0

Re: product supplier field?

DrByte:

Just to tantalize, the upcoming v2.0 contains the ability to specify who the supplier is for each product. :clap:

When it's ready for release, an announcement will be posted in the Release Announcements area of the forum.

Care to tantalize even further with an estimate of when that may be available? (don't know unless you ask)

I do not currently need the supplier option as I only use one, although I hopefully will do soon as I am researching for later on in the year, gradually building up, and hopefully within the next 6-12 months offering over 10,000 products from 5 different suppliers (including myself for some).

Although, I have a question. Will I be able to upgrade to v2.0 without loosing any settings of my current site? I'm using approx. 15 modules and have set up the site just the way I want it so I wouldn't like to loose these settings.

I have the same question, anyone?