Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Taking data from the DB and displaying images


lindsayanng

Recommended Posts

Posted

So, I have an idea for the points and rewards module. I havent installed it yet, this is just something that I am thinking of.. I'm assuming that the points are added under each customer's table in the database..

 

I would like to show a graph type of image. Something like those giant thermometeres that people use when collecting money for a donation.

 

So set it up so that every $25 you spend, you get a point, and you need 4 points to get something for free.. So I can create 4 different graphics, one for each point.. and as a visitor collects points, it will show different images, looking like the graph is growing..

 

I'm sure its a simple process of creating 4 images, naming them 1-4 and calling for image #1 when 1 point is present, image #2 when 2 points are present and so on.

 

Just curious if there is anywhere in the code where something similar to this is happening, so I can look at it and do what I do best.. hack it up till it works.

A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

 

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

 

Proud Memeber of the CODE BREAKERS CLUB!!

Posted

Hi Lindsay, this is the code for review stars, you could hack that to your needs:

 

tep_image(DIR_WS_CATALOG_IMAGES . 'stars_' . $_POST['reviews_rating'] . '.gif'

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Posted

Ohhhh thats a good idea.. is the "review_rating" function defined in the functions/general.php

A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

 

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

 

Proud Memeber of the CODE BREAKERS CLUB!!

Posted

there is no function, $_POST['reviews_rating'] is the data (1 - 5)

 

u would replace that with dbase data ie $rewards['points']

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Posted

awesome.. SERIOUSLY awesome.. THANKS!

 

the only other thing is to make sure that I am calling the correct customer's points..

A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!

 

HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you

 

Proud Memeber of the CODE BREAKERS CLUB!!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...