forum.coppermine-gallery.net
Support => cpg1.4.x Support => Older/other versions => cpg1.4 plugins => Topic started by: Jeremy Rasmussen 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
-
in photo_shop_admin.php find
{$lang_photoshop_admin['amount']}: {$quantity[$k]} :: {$lang_photoshop_admin['pid']}: -{$pid[$k]}
and replace with
{$lang_photoshop_admin['amount']}: {$quantity[$k]} :: {$lang_photoshop_admin['pid']}: -{$pid[$k]} :: {$row_pic['title']}
-
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.
-
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
{$lang_photoshop_admin['amount']}: {$quantity[$k]} :: {$lang_photoshop_admin['pid']}: -{$pid[$k]} :: {$title}
now find a few lines above
$item_price = number_format($quantity[$k]*$price[$k],2);
and below add
($row_pic['title']) ? $title = $row_pic['title'] : $title = "No name";
-
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.