Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hi.

 

Hopefully this will be an easy one for someone who understands this code a little better than I.

 

I have Easy Populate working like a dream. It downloads, it uploads, everything is great.

 

Now I have added the image mod Big Images, which adds the bimage field to the products table. I am attempting to uncomment the stuff in the Easy Populate code that covers that mod, since it is apparently already there.

 

There are, as I count them, four changes to make in the easypopulate.php file. Two of them are field names that get the # removed, and two of them are sections of code with the 'query' command that get the /* and */ removed from around them. According to the Easy Populate instructions, it's fairly straightforward.

 

Now, I have only inserted the Big Images mod--and it's working, too, by the way. So I only have the bimage field, not the additional subimage fields that appear to come from other mods.

 

When I remove the # from the two places it's required, I seem to be OK. But when I remove the /* and */ from the two spots it's required, the easypopulate.php won't draw the page properly in the admin tool. I find that unusual, since the drawing of the page doesn't seem to have anything to do with those particular commands. This is where my non-programmerhood leaves me high and dry. I have checked it several times, and it's definitely the uncommenting of those two exact sections that's the cause, but for the life of me I don't understand why. No other changes get made, and I have been refreshing the page to make sure it's reloading properly.

 

I tried removing the names of fields I don't have from the sections between the /* and */, but that didn't seem to help. If anyone can point me toward the solution--or even a simpler workaround (can I just add the bimage field wherever I find the image field in the rest of the code and have that work instead of uncommenting this stuff?), I'd really appreciate it.

 

Just to be clear, the sections that seem to mess up when I uncomment are:

Line 1625:

// unmcomment these lines if you are running the image mods

 

/* $query .= . $v_products_mimage . '", "'

. $v_products_bimage . '", "'

. $v_products_subimage1 . '", "'

. $v_products_bsubimage1 . '", "'

. $v_products_subimage2 . '", "'

. $v_products_bsubimage2 . '", "'

. $v_products_subimage3 . '", "'

. $v_products_bsubimage3 . '", "'

*/

and line 1661:

// uncomment these lines if you are running the image mods

/*

$query .=

'" ,products_mimage="'.$v_products_mimage.

'" ,products_bimage="'.$v_products_bimage.

'" ,products_subimage1="'.$v_products_subimage1.

'" ,products_bsubimage1="'.$v_products_bsubimage1.

'" ,products_subimage2="'.$v_products_subimage2.

'" ,products_bsubimage2="'.$v_products_bsubimage2.

'" ,products_subimage3="'.$v_products_subimage3.

'" ,products_bsubimage3="'.$v_products_bsubimage3;

*/

Posted

Around line 1625

 

/* $query .= . $v_products_mimage . '", "'

 

remove the "." after the "=" so it looks like this

 

/* $query .=  $v_products_mimage . '", "'

 

I also found that even uncommenting these areas does not entirely activate the image mods. I am currently running Mo pics with the big image mod, and I had to modify the easypopulate.php file so it would insert the need fields in the TDL when you download it. It works great now.

 

Many people have had this same problem, and I have been more than happy to send them a copy of my easypopulate file.

 

If you want a copy, just let me know.

Posted

Holy Moly!

 

One single dot is all that did it? Wow.

 

I tried another method--everywhere I found the 'image' reference, I added one for 'bimage', being painstakingly careful to get the punctuation correct. There are a *bunch* of different places I had to do that to get it to work, but I finally did it. I was very impressed with myself. :)

 

Anyway, the next challenge is the quantity discount mod..one of them, anyway. That should be interesting to weave in, too.

 

Thanks for the reply!

Kristina

Posted

Yes, that is exactly what I did. I went through the whole file and added references to the multiple images everywhere I found the single image reference.

 

I'm glad you got it to work though.

  • 3 weeks later...
Posted

I have the same problem as you here but i dont find the right places for the changes. Can anybody mail me the correct file?

Greets Ilja

Posted

Yes you can use both the big image and multiple image mods with easypopulate. However, you will need my copy of easypopulate.php to get it to work properly. It is configured for MS1, so if you something different it may not work. Email me if you want a copy.

  • 3 weeks later...
Posted
Yes you can use both the big image and multiple image mods with easypopulate.  However, you will need my copy of easypopulate.php to get it to work properly.  It is configured for MS1, so if you something different it may not work.  Email me if you want a copy.

 

I'm losing hair too... May I pleeeease have a copy? I'm running Ian's Loaded 6 also...

  • 3 weeks later...
Posted

I am having the same problem.

I use the sm / med / lrg images contribution, and within the database the tables are not called "mimage" and "bimage" but rather "mediumimage" and "largeimage" so I have made that alteration within the script...

 

So I began by altering the following to suite my needs:

 

global $default_these;

$default_these = array(

'v_products_image',

'v_products_mediumimage',

'v_products_largeimage',

#'v_products_subimage1',

#'v_products_bsubimage1',

#'v_products_subimage2',

#'v_products_bsubimage2',

#'v_products_subimage3',

#'v_products_bsubimage3',

'v_categories_id',

'v_products_price',

'v_products_quantity',

'v_products_weight',

'v_date_avail',

'v_instock',

'v_tax_class_title',

'v_manufacturers_name',

'v_manufacturers_id',

'v_products_dim_type',

'v_products_length',

'v_products_width',

'v_products_height'

);

 

I have removed the "." from like 1625(ish) aswell as the comments that need removing:

 

	// unmcomment these lines if you are running the image mods

	 

   $query .=   $v_products_mediumimage . '", "'

    	 . $v_products_largeimage . '", "'

    	 #. $v_products_subimage1 . '", "'

    	 #. $v_products_bsubimage1 . '", "'

    	 #. $v_products_subimage2 . '", "'

    	 #. $v_products_bsubimage2 . '", "'

    	 #. $v_products_subimage3 . '", "'

    	 #. $v_products_bsubimage3 . '", "'

 

and

 

// uncomment these lines if you are running the image mods



   $query .=

  	 '" ,products_mediumimage="'.$v_products_mediumimage.

  	 '" ,products_largeimage="'.$v_products_largeimage;

  	 #'" ,products_subimage1="'.$v_products_subimage1.

  	 #'" ,products_bsubimage1="'.$v_products_bsubimage1.

  	 #'" ,products_subimage2="'.$v_products_subimage2.

  	 #'" ,products_bsubimage2="'.$v_products_bsubimage2.

  	 #'" ,products_subimage3="'.$v_products_subimage3.

  	 #'" ,products_bsubimage3="'.$v_products_bsubimage3;

[/code]

But it still wont work

Posted

Removing the . got past this error.

 

// unmcomment these lines if you are running the image mods

 

   $query .=   $v_products_mimage . '", "'

      . $v_products_bimage . '", "'

      . $v_products_subimage1 . '", "'

      . $v_products_bsubimage1 . '", "'

      . $v_products_subimage2 . '", "'

      . $v_products_bsubimage2 . '", "'

      . $v_products_subimage3 . '", "'

      . $v_products_bsubimage3 . '", "'

 

Now I getParse error: parse error in /home/sites/site66/web/catalog/admin/easypopulate.php on line 1640

// unmcomment these lines if you are running the image mods

LINE 1640

  $query .="    '$v_products_model',

       '$v_products_price',

       '$v_db_status',

       CURRENT_TIMESTAMP,

       $v_date_added,

       $v_date_avail,

       '$v_tax_class_id',

       '$v_products_weight',

       '$v_products_quantity',

       '$v_manufacturer_id')

      ";

 

The last section that I uncommented is...

  // uncomment these lines if you are running the image mods

 

   $query .=

    '" ,products_mimage="'.$v_products_mimage.

    '" ,products_bimage="'.$v_products_bimage.

    '" ,products_subimage1="'.$v_products_subimage1.

    '" ,products_bsubimage1="'.$v_products_bsubimage1.

    '" ,products_subimage2="'.$v_products_subimage2.

    '" ,products_bsubimage2="'.$v_products_bsubimage2.

    '" ,products_subimage3="'.$v_products_subimage3.

    '" ,products_bsubimage3="'.$v_products_bsubimage3;

 

Is there something I am missing?

 

Thank you from anothe newbee

  • 2 months later...
  • 2 weeks later...
Posted

can someone please send me the cop of easypopulate to work with additional_images contribution. I know its for MS1 but I'm trying to edit it to work with MS2.2.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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...