Omair Haroon
05-18-2002, 02:36 AM
Hello Guys,
I signed up for 2checkout few months before. I now want to use it for my hosting business. My question in spot, is that how do I customize it just like:
http://www.vibehost.com/signup.htm
have done. Any idea how can I do that? Also, I see that vibehosts logo is hosted by 2CO server. How can I do that too?
Salam,
-Omair
ya i am curious too since I am about to do the same thing for my hosting biz
LinuXpert
05-18-2002, 04:43 AM
You can do it by specifying your header and footer html page under Custom tab in your 2Checkout account. Generally, 2checkout will generate a table containing all information so it can be placed neatly between your header and footer page. you can take a look at the source code of https://www.2checkout.com/cgi-bin/crbuyers/recpurchase.2c?sid=26829&merchant_order_id=&product_id=1 to see how it is generated.
Gyrbo
05-18-2002, 05:15 AM
Does anybody know if there is a way to use different headers/footers for different products?
puggy106
05-18-2002, 07:04 AM
Yea, we looked at having different templates for different products, doesnt look like it is possible to us either.
Gyrbo
05-18-2002, 10:15 AM
I was thinking about some PHP that uses the refferer in ordr to display a different page. Would this be possible?
Maybe some javascript that sets a cookie or something?
ZeonHost
05-18-2002, 02:00 PM
You wouldn't be able to use a server-side scripting language since 2Checkout no longer "hits" your server to get the template every time. They now store it locally. It would be very difficult (if not impossible) to achieve with Javascript.
Gyrbo
05-19-2002, 03:32 AM
I was thinking about a combo of PHP and javascript. The local storing isn't really a problem for whta I have in mind:
header.html (stored on 2checkout)
=>javascript.php (on you server, a PHP page)
checks product_id, and loads a page (in javascript) accordingly.
it also sets a cookie because the product_id isn't in any more urls.
Sounds like a reasonable system right?
ZeonHost
05-19-2002, 12:28 PM
That's brilliant :D, you shouldn't have any problems with that.