The Official Website of AgoraCart and Agora.cgi
AgoraCart.com Demos Download AgoraCart User Manuals & Wiki Gold Members Forum Go Gold Now! Gold Version Memberships

AgoraCart.com

About
Features
Download
Payment Gateways
Send a Donation
Founders Club
BLOG: News & Updates

Showcases & Demos

AgoraCart Demos
Shop Live Stores

Downloads & Add-ons

Gold Version Downloads
DBwizz Database Mgr.
AgoraCart.com Store

Help & Support

User Manuals
Gold Version Users Forum
Gold Version Chat
Tech Support
Certified Agora Pros
Certified Designers
Hire a Freelancer

Gold Version Members

Member Benefits
Join Today!
Gold Members Home
Gold Version Users Forum
Gold Version Chat Rooms
Gold Version Downloads

For Store Owners

Merchant Accounts
Cool Resources
Advertise Here
"Powered by" Logos
Web Hosting Search

Misc.

Contact Us
MEET's Talking Guide
The Ancient Greek Agora






AgoraCart Free User Forums

This is the official FAQ and Cool Tips guide For the AgoraCart shopping Cart software


Official Sponsors of the AgoraCart Project:

       


RegisterSearchFAQLog in
Reply to topic Page 1 of 1
Database Image
Author Message
Reply with quote
Post Database Image 
Hi,

Not sure if anyone has asked this one :

I am working on adding a thumbnail nto ithe admin Add Product, Delete Product & Edit Product so that when the admin goes into any of these area they will see the related product at a glance. It would also serve to show that the image is working and showing the correct image to the end user.

That would be an excellent feature for administrators.

Any pointers would be most welcomed.

Regards,

Rik

Reply with quote
Post  
i would know exactly how to do it if the store's manager ran through agora.cgi. i suppose you could require agora.cgi then file line and all that stuff. but try this instead.

there are ususally two areas in the store/protected/product_edit-ext_lib.pl you must edit. one for editing products and one for adding products. they are very similar in structure but different in scope and coding. focus on the structure.
find the table you want to add the image to then do a normal html image tag. you will prbably have to think out how to adapt the table structure to accomodate the image.
if you'll be using the

i haven't tried it but i suppose this would be a good first attempt. someplace logical add this image tag

<img src="$userDefinedOne" border=0>

now because user1 requires the %%img%% token this will throw a monkey wrench in the works. you will probably have to so a small sub or some script to strip out the token then call something like

<img src="$my_thumb" border=0>

where

$my_thumb = $userDefinedOne

hope that makes sense.
d

Reply with quote
Post  
If you want to show a thumbnail of the main image, you could use somethin like:
Code:
<img src="%%URLtoImages%%$image" border=0 width="70">


Although I'm not sure that the %%URLtoImages%% will interpret properly. If it doesn't, just put in the actual URL to images...

HTH!


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post Works 
Hi,

Thanks for that,

For the benifit of other users, here is what I have :

Edit the following file : product_edit-ext_lib.pl

with :

http://www.yourdomain.com/cgi-bin/store/picserve.cgi?picserve=/$image

Works for me, now I can exactly what images I am using when editing products

Hope it helps

Regards,

Rik

Reply with quote
Post  
yep. that will work. i avoided using picserve because a lot of ppl are moving away from that providing their store is not in the cgi-bin. if the solution works for you then use it. if it doesn't then you'll have to do some scripting.
thanks for posting the solution.
d

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum