Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

help with adding fields


crittersmagic

Recommended Posts

Posted

Ok, is there anone out there that might be able to point me in the right direction on this? Below is a picture of what my page looks like, and then below it is what i want it to look like. if anyone can tell me how to get the extra fields to show up on the page like it does in the bottom half of that pic that would be great.....

 

pp.JPG

Posted

Copy how one of the existing fields is done - begin with your database (dont forget the configuration table!), then admin/categories.php, then catalog/index.php and catalog/includes/modules/product_listing.php

 

 

Sonia

Posted
did i forget to mention that i am a noob at this and dont even know where i would copy the fields from? I do have extra fileds 2.0j installed

 

Don't fret Xgraphico is one of the best here at explaining things...

 

You might also want to ask you question in the support forum for extra fileds 2.0j since others using that mod would like the answer as well.

Posted

Its quite involved.

 

You need to query for the extra fields on the index page from yet another database table (with that contribution) - this is why I generally hard code any new product fields for my clients.

 

You also need configuration options for the product listing display (just as the existing are) - this info is put into the CONFIGURATION table when osCommerce is installed, so you will need to add the new (look at the oscommerce.sql file for pointers) - these are used to control product_listing.php (which you have shown the pic for)

 

Then you need to work the new column headings into /includes/modules/product_listing.php and then the display of the fields themselves in the same file and also new language definitions.

 

You simply need to teach yourself. Look for 'model' in all the places I have pointed out and you will see all the things you must duplicate for each new field. Its much too much to post to the forums.

 

 

Sonia

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...