Author Topic: An idea!! Turning (postcard_create) page To (order) page  (Read 4171 times)

0 Members and 1 Guest are viewing this topic.

Offline ameenov

  • Newbie
  • *
  • Posts: 41
    • View Profile
Hi there

I wanted to make an order page to the images. and I want it like that :

1- In the details page there is a button linked to an order page.
1- in the order page the ( image you choose from the details page) AND (the image name) AND ( the image category) and the (Order form)

I tried to make an order page by copying the (postcard_create) page from the (template) and change it to include the order form and make a link in to it in te (details) page like that (index.php?template=order).

It works ok but!!
In the order page
It is giving me a random (image) instrad of the (image) i choose from (the details) page !!

Anyone have any idea?

Offline martrix

  • Hero Member
  • *****
  • Posts: 755
    • View Profile
    • overlord.cz
Re: An idea!! Turning (postcard_create) page To (order) page
« Reply #1 on: May 16, 2005, 11:23:19 AM »
just in case, that you'd not need the postcard-function anymore:
- you could "rename" the postcard to "Order"
- change the button-image and with
- change the postcard-send form so the "to-field" is hidden and filled out with your e-mail

And from now on it would send the "postcard" to your e-mail adress...

Just and idea - maybe it will help you :D
MAяTRIX


Offline ameenov

  • Newbie
  • *
  • Posts: 41
    • View Profile
Re: An idea!! Turning (postcard_create) page To (order) page
« Reply #2 on: May 16, 2005, 12:19:54 PM »
Hi martrix
I did it almost like your idea but the problem is with this message >>


###########
###########
Dear Site admin,

ameen (ameenov@hotmail.com) has sent you an eCard!

Please proceed to the following URL:
http://www.yourdomain.com/postcards.php?postcard_id=58ae5c823c1fc7e011ddfa77a8f27b02

Your eCard has been sent on 15.05.2005 07:21and will be stored in our
database for 10 days.

###########
############
1- I don't know from where I can change the (Text) which is sent to the E-mail.
2- It will get deleted in a 10 days !!
3- ALSO, A major thing to me to have more fields like ( Credit card number) & (Credit card type) & (expire date) ... ect.

Offline martrix

  • Hero Member
  • *****
  • Posts: 755
    • View Profile
    • overlord.cz
Re: An idea!! Turning (postcard_create) page To (order) page
« Reply #3 on: May 16, 2005, 02:40:41 PM »
ad 1) you may edit this message in ./lang/<yourlang>/email/pospostcard_message.html
just play around with that :D

ad 2) open ./includes/constants.php (I guess...) and try to find smt like POSTCARD_EXPIRY or so and se this number to the wanted number of days... so if you set it to 3652 instead of 10, then the "order" will get deleted after 10 years :) That might by enough. ;)

ad 3) Look, how the actual fields are build in the postcard.php etc. and try to find that out ;)
MAяTRIX