If this is your first visit, check our documentation. To post, register or login.
Forums / Basic Configuration / Products Model Movement

Products Model Movement

Started by lnsenterprises on 28 May 2013, 1:09 AM · Views: 825

Results 1 to 4 of 4
28 May 2013, 1:09 AM
#1
lnsenterprises avatar

lnsenterprises

New Zenner

Join Date:
Aug 2012
Posts:
45
Plugin Contributions:
0

Products Model Movement

In the admin area, when you setup your product, at first or when you go and update pricing, description etc. I have noticed that the product model is down the bottom of the page.

What I am wondering is, as the product model is near the bottom of the page, under products description and quantity, it is a more important pieve of information then even quantity, is there a way to get this box moved up to before or right after products name.

In my opinion this would make editing much faster in general....

Tankx much

28 May 2013, 3:13 AM
#2
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Re: Products Model Movement

Its open-source, you can do what you like with anything.
I moved all that stuff around too. Just remember to clearly comment where you have moved the code from and to help you when you have to compare your modified file to the new version when you are upgrading.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

28 May 2013, 2:34 PM
#3
lnsenterprises avatar

lnsenterprises

New Zenner

Join Date:
Aug 2012
Posts:
45
Plugin Contributions:
0

Re: Products Model Movement

I thought you could and I am wondering which file to edit? I would assume it is a regularly used file, and my url indicates new_product. When I search for this there is no listing. Any Idearz? Thanks again so much

28 May 2013, 4:37 PM
#4
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Re: Products Model Movement

my url indicates new_product
no, the url is
/product.php?cPath=1_9_1993&product_type=1&pID=2950&action=new_product
so the file is product.php, the rest of the stuff are parameters passed to the page so it knows what product to deal with and what you are doing with it.

But this file is just the start, and doesn't have the product editing layout code...it just pulls that in from the /module directory depending on your product type.

So, for the default product type, the file you want to play with is /modules/product/collect_info.php

My recommended way of working for me is (obviously you are doing this on your local development server and not ever playing with your production site...)

  • copy the file you are going to hack and rename it like collect_info.ORIGINALphp i.e. break the php file extension to guarantee it never gets loaded
  • hack away
  • when you are 100% done, compare it to the original vanilla zc file and comment every bit that differs.
  • make a note in your mods spreadsheet about what you have done

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...