Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

easy populate with 3 image contrib?


Recommended Posts

Hi,

 

I've recently installed 3 image conrib on my site which seems to be working fine. I followed EP instructions for multiple images and uncommented the lines with the "biimage" variables.

 

I get the following error:

 

Parse error: parse error, unexpected '.' in /usr/local/psa/home/vhosts/my site.com/httpdocs/catalog/admin/easypopulate.php on line 1683

 

this is the code for it: (line 1683 is the one that says:

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

 

  // 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 . '", "'

 $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')
     ";
  $result = tep_db_query($query);
} else {
 // existing product, get the id from the query

 

I don't know the php syntax, so i don't know how to fix this error.

 

Also will EP work with 3 image contrib? or do i need to install a different contrib if i want to make ep work with it?

 

Is it possible to just add the products_mediumimage

products_largeimage variable somewhere in EP to the list of all other variables (and the rest of the code of course) ? (I'm not sure how the "biimage" thing will work)... so far it doesn't

 

 

Thanx in advance for all your help

Link to comment
Share on other sites

thanx for the help

 

 

although now i get another error in

 

$query .=" '$v_products_model',

 

 

Parse error: parse error, unexpected T_VARIABLE in line 1692

 

// 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 . '", "'
	 
    $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')
    	 ";
   $result = tep_db_query($query);
 } else {
	 // existing product, get the id from the query

 

 

Does anyone have a working EP code with any of the multiple images contribs?

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