Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

quag2000

Archived
  • Posts

    33
  • Joined

  • Last visited

Profile Information

  • Real Name
    Bill Myers

quag2000's Achievements

  1. Anyone? This would be a brilliant function in Easy populate if it worked. Cheers Bill
  2. Hey guys, How are things progressing with the Company PO Account contribution! I am dead keen to see this one working and installin it into my store as it is exactly what I need for School orders. Cheers Bill
  3. Hey all. can anyone tell me if the Deleteit function in easy populate has been made to work? If so what do I need to do, in my version in is commented as in development. Also can easy populate be modified to move categories, rather than duplicating the entry if you change its categegory in your upload file. Anyone help? Cheers Bill
  4. ALL FIXED! the instructions included the following SQL satement: ALTER TABLE orders ADD (eway_id int(11) NOT NULL default '0') but it was calling osc_orders so i changed the statement to: ALTER TABLE osc_orders ADD (eway_id int(11) NOT NULL default '0') to add the field to the correct table.
  5. Hey all! I'm getting the following error with the eWay module. 1054 - Unknown column 'eway_id' in 'field list' UPDATE osc_orders SET eway_id = '2321360' WHERE orders_id = '2' [TEP STOP] I have run the sql statement in the install and the table header seems to be in my db. heeeeellllp! Bill
  6. Hi, I have serached unsuccesfully for this... I would like to fine tune the layout of my PDF datasheets. I have experimented with pdf_datasheet_functions and have made a few minor changes, but really dont have enough knowledge of php. At present my image appears left on the page, and then the cell than contains my text runs vertically beside it on the right. I'd like to make the image sit above the description, and if possible the model and price to the right of it, then the description full page width below it. Can anyone help? The www.chilipepper.it/vineyard/ site has the .pdf datasheet layout looking good. Can anyone help me achieve more layout control, or can anyone send me the above php file from their site to examine? (comments would help, but not essential!) Also, the description is html formatted for each product, but this formatting does not seem to apply in the pdf output. Can this be fixed? Thanks in advance, i hope you can help. Cheers Bill
  7. Hi all, I am having problems with v1.3. My product images are almost all the way off the right hand side of the page. Past the right hand extreme of the text descriptions etc. I assume this is positioned in pdf_datasheet_functions.php I have no idea how to set it though: Here is my current code from line 208 to 324 function ShowImage(&$width,&$height,$path,$loc='',$x_pos=1) { $width=min($width,PDF_MAX_IMAGE_WIDTH); $height = (IMAGE_KEEP_PROPORTIONS != 0 ? $height : min($height,PDF_MAX_IMAGE_HEIGHT)); $this->SetLineWidth(1); $this->Cell($width,$height,"",0,0); $this->SetLineWidth(0.2); $pos=strrpos($path,'.'); $type=substr(strtolower($path),$pos+1); if($type=='jpg' or $type=='jpeg' or $type=='png' or $type=='gif'){ if ($loc==false){ $this->Image($path,($this->GetX()-$width)+1, $this->GetY(), $width, $height); }else{ $this->SetY(($this->GetY())+5); $this->Image($path,$x_pos +1, $this->GetY(), $width, $height); } }else{ $this->SetDrawColor(230,230,230); if($loc==false){ $this->x = $this->GetX()-$width; }else{ $this->x = $this->GetX(); } $this->SetTextColor(230,230,230); $this->Cell($width,$height,'No image',1,0,C); $this->SetTextColor(0); $this->SetDrawColor(0); } } function CalculatedSpace($y1,$y2,$imageheight) { //Si les commentaires sont - importants que l'image au niveau de l'espace d'affichage if(($h2=$y2-$y1) < $imageheight) { $this->Ln(($imageheight-$h2)+3); } else { $this->Ln(3); } } function DrawCells($data_array) { $totallines=0; for($i=2;$i<(sizeof($data_array)-1);$i++) { $totallines+=$this->NbLines((220-$data_array[0]),$data_array[$i]); } //5 = cells height $h=5*$totallines."<br>"; //if products description takes the whole page height goes to new page if($h<TEXT_HEIGHT) { $this->CheckPageBreak($h); } if(SHOW_IMAGES && strlen($data_array[10])) { //If custom image if(PDF_IMAGE_KEEP_PROPORTIONS != 0 ) { $heightwidth=getimagesize($data_array[10]); $factor = $heightwidth[0]/$heightwidth[1]; $data_array[0]=$imagewidth=PDF_MAX_IMAGE_WIDTH*PDF_TO_MM_FACTOR; // Bild in Orginalgr??e abbilden, maximale Gr??e ignorieren // $data_array[0]=$imagewidth=$heightwidth[1]*PDF_TO_MM_FACTOR; $data_array[1]=$data_array[0]/$factor; $this->ShowImage($data_array[0],$data_array[1],$data_array[10]); $y1=$this->GetY(); } //If Small Image Width and Small Image Height are defined else if(strlen($data_array[0])>1 && strlen($data_array[1])>1) { $this->ShowImage($data_array[0],$data_array[1],$data_array[10]); $y1=$this->GetY(); } //If only Small Image Width is defined else if(strlen($data_array[0])>1 && strlen($data_array[1])) { $heightwidth=getimagesize($data_array[10]); $data_array[0]=$data_array[0]; $data_array[1]=$heightwidth[1]*PDF_TO_MM_FACTOR; $this->ShowImage($data_array[0],$data_array[1],$data_array[10]); $y1=$this->GetY(); } //If only Small Image Height is defined else if(strlen($data_array[0]) && strlen($data_array[1])>1) { $heightwidth=getimagesize($data_array[10]); $data_array[0]=$width=$heightwidth[0]*PDF_TO_MM_FACTOR; $data_array[1]=$data_array[1]; $this->ShowImage($data_array[0],$data_array[1],$data_array[10]); $y1=$this->GetY(); } else { $heightwidth=getimagesize($data_array[10]); $data_array[0]=$heightwidth[0]*PDF_TO_MM_FACTOR; $data_array[1]=$heightwidth[1]*PDF_TO_MM_FACTOR; $this->ShowImage($data_array[0],$data_array[1],$data_array[10]); $y1=$this->GetY(); } } else { $data_array[0]=$data_array[1]=0; $y1=$this->GetY(); }
  8. thankyou thankyou THANKYOU!!!! I had the -20,20 problem in ORDERS under admin. THIS fix worked first pop! ohhhh THANKYOU! but i found it by pure chance, we need to make it easier to search for people, I had posted and searched many times, and still managed to not find that simply worded fixer upper! :D
  9. Hi, I am about to install the eWAY payment module, but am unclear on something in the install instructions (sorry, I am THICK). In the install it says to install 2 files to my secure server folder. what do they mean? Is that a folder i must create under catalog root? Thanks in advance, just not real familiar with https stuff! Cheers Bill
  10. Me too. anyone help us? works fine on my non-php safe host's server the php-safe mode server wont allow files to be created in the temp dir. Cheers B.
×
×
  • Create New...