Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Photo_Shop Plug-in :: PID vs Filename  (Read 4578 times)

0 Members and 1 Guest are viewing this topic.

Jeremy Rasmussen

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Photo_Shop Plug-in :: PID vs Filename
« on: July 07, 2006, 10:16:20 pm »

I need some help with the Photo_Shop cart plug-in...

On the admin side when you view an order it gives the PID from each image ordered however this is a problem for me because my the image file name is what I need to know so I can send those images to the photolab, and obviously the PID is going to be different from my filename. 

 Here's what I would like help with.  I would like to be able to see the filename of each image next to the PID.  I just don't know how the PHP markup for this, can someone tell me what to add? 

thanks,

Jeremy
« Last Edit: July 09, 2006, 12:11:15 pm by Stramm »
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Photo_Shop Plug-in :: PID vs Filename
« Reply #1 on: July 08, 2006, 12:01:59 am »

in photo_shop_admin.php find
Code: [Select]
{$lang_photoshop_admin['amount']}: {$quantity[$k]} :: {$lang_photoshop_admin['pid']}: -{$pid[$k]}
and replace with
Code: [Select]
{$lang_photoshop_admin['amount']}: {$quantity[$k]} :: {$lang_photoshop_admin['pid']}: -{$pid[$k]} :: {$row_pic['title']}

Jeremy Rasmussen

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Photo_Shop Plug-in :: PID vs Filename
« Reply #2 on: July 08, 2006, 03:27:38 pm »

Thanks, however it did not work... here is an example of what it looks like 

Amount: 1 :: PID: -8799 ::

It seems that $row_pic['title'] is not finding any data.
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Photo_Shop Plug-in :: PID vs Filename
« Reply #3 on: July 08, 2006, 08:47:09 pm »

works for me ... do your pics have titles?

if some don't have titles then of course nothing will show up. You can add a lil check
instead of the above mentioned lines add
Code: [Select]
{$lang_photoshop_admin['amount']}: {$quantity[$k]} :: {$lang_photoshop_admin['pid']}: -{$pid[$k]} :: {$title}
now find a few lines above
Code: [Select]
$item_price =  number_format($quantity[$k]*$price[$k],2);
and below add
Code: [Select]
    ($row_pic['title']) ? $title = $row_pic['title'] : $title = "No name";

Jeremy Rasmussen

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Photo_Shop Plug-in :: PID vs Filename
« Reply #4 on: July 08, 2006, 09:18:03 pm »

Oh I didnt realize that it was searching for the 'title', i didnt examine the code... I changed 'title' to 'filename' and now it's doing exactly what I wanted it to do. 


The reason being filename and not title is because I batch add 400 photos or more at a time and there is no way I am going back and giving each one a title, especially now after there are over 7000 images in the gallery.

anyway, thanks for the help.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.