Zen Cart Logo
Forums / General Questions / Customising the Admin/Product entry page?

Customising the Admin/Product entry page?

Locked

Views: 828

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
9 Aug 2009, 9:25 PM
#1
touranman avatar

touranman

New Zenner

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

Customising the Admin/Product entry page?

Hi all,

I'm customising my site and I'm having trouble finding the correct file to edit for the product entry/edit in Admin.

I have modified admin/includes/modules/document_product/collect_info.php but I'm trying to change what the drop down box for the 'manufacturer' is populated with but I'm having trouble with it.

Am I in the right place or is there something else I've missed?

Thanks :frusty:

9 Aug 2009, 9:39 PM
#2
touranman avatar

touranman

New Zenner

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

Re: Customising the Admin/Product entry page?

The URL for updating the product is: admin/product.php?page=1&product_type=1&cPath=66&pID=181&action=new_product but I can't make head nor tail of it!

9 Aug 2009, 10:30 PM
#3
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Customising the Admin/Product entry page?

Could you say a little more about the change that you want to make?

10 Aug 2009, 5:24 AM
#4
touranman avatar

touranman

New Zenner

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

Re: Customising the Admin/Product entry page?

Hi Kuroi,

I'm using the 'manufacturers_id' field as a list of 'designers'. My 'customers' table has a boolean field called 'is_designer' and I want to populate the 'manufacturers' drop down with customers who are 'designers' but can't seem to find it!

Thanks

10 Aug 2009, 8:40 PM
#5
touranman avatar

touranman

New Zenner

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

Re: Customising the Admin/Product entry page?

Anybody help?

10 Aug 2009, 9:27 PM
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Customising the Admin/Product entry page?

What you're wanting to do would have consequences fanning out across your site.

Changing the entries in that drop down is the tip of an iceberg since the data that is stored is then used in many places that are expecting references into the manufacturers table and not the customers table.

The implications of what you're asking about are far greater than could be covered in a forum post, and really need professional level skills.

11 Aug 2009, 5:49 AM
#7
touranman avatar

touranman

New Zenner

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

Re: Customising the Admin/Product entry page?

OK, can I duplicate the code that populates the drop down and use it for this?

11 Aug 2009, 9:58 AM
#8
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Customising the Admin/Product entry page?

You could use it as a model.

You would need to create a new database field, amend the collect, preview and update.php files in the admin/includes/modules area relevant to your product type to take the new data through each of the product maintenance steps and then add whatever functionality you want to use this new data to generate.

It's still not trivial, but is doable.