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
Thumbnail images in store...
Author Message
Reply with quote
Post Thumbnail images in store... 
My store is going to be selling cards and calendars so i thought it would be quite cool if the list of products had a little image of each product which you could click on to see a bigger image in a new window. Sounds simple and i have a feeling it should be =S...

I have the thumbnail picture as %%image%%, and the bigger picture as %%db_user1%%

This is the section of code creating the hyperlink in 'productPage-1b.inc':

<A HREF="%%scripturl%%?cart_id=&p_id=%%ProductID%%
&xm=on&ppinc=search2" target="_new">%%image%%</a>

Which links to the page 'productPage-search2.inc'. It contains this....

<TD ALIGN="CENTER" WIDTH="300">
%%db_user1%%</TD>

But heres the problem... it just prints the line '%%db_user1%%' on the page rather than looking up the value of it and showing the picture. If putting %%image%% works, why doesnt %%db_user1%% ?!

Cheers for your help - im stumped.

Dai


_________________
If at first you dont succeed, destroy all the evidence you tried...
View user's profile Send private message Visit poster's website
Reply with quote
Post  
if you'd like to see an example, check this out:

http://www.trpartners.co.uk/store/agora.cgi?product=CARD&ppinc=1b

and click on the little picture of the angel.


_________________
If at first you dont succeed, destroy all the evidence you tried...
View user's profile Send private message Visit poster's website
Reply with quote
Post  
%%db_user1%% is the wrong token.
The correct token would be: %%UserFieldOne%%

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  
sorted!

many thanks,

Dai


_________________
If at first you dont succeed, destroy all the evidence you tried...
View user's profile Send private message Visit poster's website
Reply with quote
Post  


View user's profile Send private message
Reply with quote
Post  
What do you have in the database for the 2nd image?
it should be %%img%%yourgraphic.jpg

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  
scottcrew wrote:
What do you have in the database for the 2nd image?
it should be %%img%%yourgraphic.jpg

HTH!


Im going to sound even more newb by asking what section or file do i edit to put in %%img%%yourgraphic.jpg

Thanks.

View user's profile Send private message
Reply with quote
Post  
The database, UserFieldOne.....
If you are using the manager to add your products, pull up one of your products to edit.
What field of the form do you have the image file put into?


_________________
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  
scottcrew wrote:
The database, UserFieldOne.....
If you are using the manager to add your products, pull up one of your products to edit.
What field of the form do you have the image file put into?


Yep, im using the manager to enter products.

The image that works is Image File

The image that doesn't work is in 2nd Image

i also tried it in User 2 to no avail.

thanks again

View user's profile Send private message
Reply with quote
Post  
Whoo Hoo..

Ive sorted it out

Thanks.

View user's profile Send private message
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