Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Easy Populate Queries


tsvenkat

Recommended Posts

Hi all,

 

I have an OSC SHop with EP 2.74 installed. EP works fine and there is no dount on that.

 

But the problem I face is :

 

I have TWO EXTRA fields on the DB - Market Price, Delivery Time

 

and also my categories level (depth) goes upto 7 levels

 

eg..

 

office > essentials > paper > envelope > f4 > Color >

 

something like that.

 

the thing with EP is - the TAB LIMITED file that is downloaded only has the default format and it does not have the additional FIELDS that are in the DB and also category level is only THREE.

 

Please help me to sort out this.

 

Awaiting reply

 

Thanks

 

Venkat

Link to comment
Share on other sites

  • 3 months later...
and also my categories level (depth) goes upto 7 levels

 

eg..

 

office > essentials > paper > envelope > f4 > Color >

 

something like that.

 

the thing with EP is - the TAB LIMITED file that is downloaded only has the default format and it does not have the additional FIELDS that are in the DB and also category level is only THREE.

 

 

 

in easypopulate.php

 

// **** Max Category Levels ****

// change this if you need more or fewer categories

global $max_categories;

$max_categories = 3; // 7 is default

Link to comment
Share on other sites

Well ... the following are th einstructions I had for adding new fields. Check this steps ... maybe it'd be helpful to solve your problem ... B)

 

(Remember: products_artist is the new field)

 

Find the line, approx 991: $filelayout ?= array_merge($filelayout , array(
? ?	'v_tax_class_title' ?=> $iii++,
? ?	'v_status' ? ?=> $iii++,

Below it add:

'v_products_artist' ?=> $iii++,
---------------------------------------------------------------------------------------------

Find the line, approx 997: $filelayout_sql = "SELECT

Below it add:

p.products_artist as v_products_artist,

---------------------------------------------------------------------------------------------

Find the line, approx 1295: ?	$sql = "SELECT

Below it add:

p.products_artist as v_products_artist,

---------------------------------------------------------------------------------------------

Find the line, approx 1678: $query = "INSERT INTO " . TABLE_PRODUCTS . " (

Below it add:

products_artist,

---------------------------------------------------------------------------------------------

Find the line, approx 1678: $query .="'$v_products_model',

Find the line a couple lines down, '$v_products_quantity',

Below that line add: '$v_products_artist'

---------------------------------------------------------------------------------------------

Find the line, approx 1744: $query .= '", products_weight="'.$v_products_weight .
Find the line a couple lines down, , products_quantity="' . $v_products_quantity .

Below it add:

'", products_artist="' . $v_products_artist .

Edited by s97446
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...