BWSショップ作成サンプルプログラム@
2006年02月10日
PHPを利用したBWS活用の参考に、今回はBWSショップ作成サンプルプログラムを公開します。BWSショップ作成サンプルプログラムはBWSを利用して、ビッダーズのようなサイトを作成するためのPHPを利用したプログラムです。
サンプルはプログラムがわからない方でも利用できるように解説をつけています。
また、プログラムソースを公開するので、プログラマ自身で自由に改良して使うことができます。
こちらのサンプルプログラムを利用の際はテンプレートエンジンを利用することで、デザインなどの変更できるようにしています。
サンプルファイルのダウンロードはこちらからお願いします
サンプルファイルダウンロード
1.動作環境
本アプリケーションはPHP4にて記述しています。
動作させる為にはPHP4がインストールされているサーバが必要です。
※レンタルサーバのlolipop,xreaでの動作確認を行っています。
2.配布ファイルの構成
サンプルプログラムはBshopとSMARTYに分かれています。
・Bshop-プログラム部分
・SMARTY-テンプレートエンジン部分、デザイン変更はこちらで行います。
3.利用の仕方
3.1.SMARTYの設置方法
SMARTYフォルダを指定のディレクトリに設置します。
(今回は、xrea,lolipopに関しての解説をいたします)
@xrea
xreaはROOTフォルダ(FTPで接続した最初のフォルダ)に設置する
/virtual/ユーザーID/
Alolipop
/home/sites/lolipop.jp/users/ユーザーID/web/
(FTPで接続した最初のフォルダ)に設置する
3.2サンプルプログラムの設置
3.2.1.config.phpの設定
サンプルプログラム設置の際には、config.phpの
URLの設定、SMARTYフォルダへの絶対パス設定、アフィリエイトID/リンクIDの設定を行っていただきます。
3.2.1.1URLの設定
config.phpの5行目をサンプルプログラムを設置するURLに設定する
$topUrl="http://『あなたのドメイン』/bshop/";
3.2.1.2 SMARTYフォルダへの絶対パスの設定
lolipopユーザは10行目、xreaユーザは13行目を変更します
・lolipop用
define('BID_SMARTY_DIR','/home/sites/lolipop.jp/users/『lolipop.jp-から始まるFTPのユーザー名』/web/smarty/');
・xrea用
define('BID_SMARTY_DIR','/virtual/『xreaのFTPのユーザー名』/smarty/');
3.2.1.3アフィリエイトID、リンクIDの設定
アフェリエイトID,リンクIDを下記のページより確認して、
18,19行目のアフィリエイトID,リンクIDのところに設定します。
確認用ページ:http://www.bidders.co.jp/dap/sv/affid
$affId="アフィリエイトID";
$linkId="リンクID";
3.2.2サンプルプログラムの設置
サンプルプログラムをサーバーに設置します。
Bshopのフォルダごとサーバのディレクトリに
あげてください
設置したら、
http://設置したドメイン/bshop/
にアクセスしてチェックしてください
- コメント [2] |
- トラックバック [213]
- カテゴリー:アプリケーション紹介
"BWSショップ作成サンプルプログラム@"へのトラックバック
このエントリーのトラックバックURL:
ぷちやにビッターズショップを開設
ビッターズWEBサービスのブログを見ていたら、なんと、BWSを使ったショップアプリのサンプルソースがアップされていた。
早速、ぷちやに導入してみた。
ちなみに、...
[続きを読む]
- 2006年02月18日 00:44
- from ぷちパワ/w.ZeRo
free verizon ringtones
hi manus cellular ringtones to
[続きを読む]
- 2006年04月28日 02:49
- from us cellular ringtones
buy cheap tramadol online
hi free polyphonic ringtonesme
[続きを読む]
- 2006年04月28日 09:29
- from free polyphonic ringtones
free polyphonic ringtones
hi free polyphonic ringtonesme
[続きを読む]
- 2006年04月28日 09:35
- from buy cheap tramadol online
free polyphonic ringtones
hi free polyphonic ringtonesme
[続きを読む]
- 2006年04月28日 09:36
- from free polyphonic ringtones
ringtones for nextel
hi visit free nextel ringtones :)
[続きを読む]
- 2006年04月29日 16:30
- from free nextel ringtones
Free ericsson ringtones
Hi!I like yor site!Thks!
[続きを読む]
- 2006年04月30日 08:55
- from Free ericsson ringtones
mesothelioma activists
huy guys loomesothel...
[続きを読む]
- 2006年05月02日 12:15
- from mesothelioma activists
mesothelioma activists
huy guys loomesothel...
[続きを読む]
- 2006年05月02日 12:24
- from mesothelioma activists
debt consolidation companies
- 2006年05月03日 08:23
- from debt consolidation companies
unsecured personal loans
Helbudget rentalslo ever...
[続きを読む]
- 2006年05月04日 20:09
- from online payday loans
Buy viagra online
Very Buy viagra online nice site!
[続きを読む]
- 2006年05月04日 23:56
- from Buy viagra online
Buy viagra online
Very Buy viagra online nice site!
[続きを読む]
- 2006年05月05日 00:04
- from Buy viagra online
health insurance quotes
Greehealth insurance...
[続きを読む]
- 2006年05月05日 08:45
- from health insurance quotes
Buy vicodin online
Good site! Buy hydrocodone online
[続きを読む]
- 2006年05月05日 10:17
- from Buy hydrocodone online
Free nextel ringtones
Good work! Free nextel ringtones
[続きを読む]
- 2006年05月05日 18:32
- from Free nextel ringtones
Free nextel ringtones
Good work! Free nextel ringtones
[続きを読む]
- 2006年05月05日 18:33
- from Free nextel ringtones
order phentermine
hi buy phentermine cheap orderhehe
[続きを読む]
- 2006年05月05日 23:14
- from order phentermine
Free ericsson ringtones
Your site is Free ericsson ringtones ...
[続きを読む]
- 2006年05月06日 18:43
- from Free ericsson ringtones
cheap phentermine
hi buy phentermine cheap orderhehe
[続きを読む]
- 2006年05月09日 05:53
- from order phentermine
phentermine side effects
Hphentermine online
ツ・
[続きを読む]
- 2006年05月09日 16:59
- from phentermine no prescription
buy didrex online
Cool site! thxx.Buy carisoprodol onli...
[続きを読む]
- 2006年05月10日 05:53
- from buy didrex online
Buy carisoprodol online
Cool site! thxx.Buy carisoprodol onli...
[続きを読む]
- 2006年05月10日 05:56
- from Buy carisoprodol online
phentermine no prescription
- 2006年05月10日 08:39
- from phentermine no prescription
buy levitra online
Good works! Buy tramadol online
[続きを読む]
- 2006年05月10日 14:38
- from Buy tramadol online
cheap phentermine
hello visit cheap phentermine t...
[続きを読む]
- 2006年05月11日 04:24
- from cheap phentermine
cheap phentermine
hello visit cheap phentermine t...
[続きを読む]
- 2006年05月11日 04:31
- from cheap phentermine
cheap phentermine
hello visit cheap phentermine t...
[続きを読む]
- 2006年05月11日 04:47
- from cheap phentermine
Buy viagra online
Very cool site! Buy viagra online
[続きを読む]
- 2006年05月11日 07:30
- from Buy viagra online
Buy viagra online
Best site! Buy viagra online
[続きを読む]
- 2006年05月11日 13:35
- from Buy phentermine online
Buy hydrocodone online
Great site! Buy hydrocodone online
[続きを読む]
- 2006年05月12日 02:39
- from Buy hydrocodone online
Download Free Ringtones
download free ringtones
download free nextel ringtones
free download nokia rin...
[続きを読む]
- 2006年05月12日 15:50
- from Download Free Ringtones
Download Free Ringtones
download free ringtones
download free nextel ringtones
free download nokia rin...
[続きを読む]
- 2006年05月12日 16:10
- from Download Free Ringtones
Download Free Ringtones
download free ringtones
download free nextel ringtones
free download nokia rin...
[続きを読む]
- 2006年05月12日 16:12
- from Download Free Ringtones
Buy phentermine online
Very nice page! Buy phentermine onli...
[続きを読む]
- 2006年05月13日 16:48
- from Buy phentermine online
Buy phentermine online
Very nice page! Buy phentermine onli...
[続きを読む]
- 2006年05月13日 16:56
- from Buy phentermine online
xenical hgh phentermine quit smoking detox
- 2006年05月14日 01:03
- from phentermine pharmacy
Free nokia ringtones
Nice sites! Cellular ringtones
[続きを読む]
- 2006年05月14日 06:27
- from Cellular ringtones
Buy phentermine online
Best site! Buy phentermi...
[続きを読む]
- 2006年05月15日 00:18
- from Buy phentermine online
Buy phentermine online
Best site! Buy phentermi...
[続きを読む]
- 2006年05月15日 00:28
- from Buy phentermine online
Buy phentermine online
Best site! Buy phentermi...
[続きを読む]
- 2006年05月15日 00:29
- from Buy phentermine online
Rhys Eaton
Never say that marriage has more of joy than pain.
[続きを読む]
- 2006年07月17日 16:53
- from Rhys Eaton
Robert Baker
He who would leap high must take a long run.
[続きを読む]
- 2006年07月17日 23:40
- from Robert Baker
全くの初心者なのですが、設置に挑戦してみましたがよく解らない点があったので、・・・
商品詳細のページ itemDetailBox 内に表示される
リンクが正しいアドレスにならずに
私のサイトのURLから始まるアドレスになってしまい、
エラーが出てしまいます
対処法がございましたらご教授願えますでしょうか?
はじめまして。
昨日、BWSショップ作成サンプルプログラムに初めて気づき、ダウンロードさせていただきました。
PHPなどは初心者なのですが、頑張ってみようと思っているところです。
早速、bshop/config.phpの修正を行ない、アップロードしました。
http://自分のドメイン/bshop/
を開きましたが、
Fatal error: Smarty error: the $compile_dir '/home/sites/lolipop.jp/users/lolipop.jp-dp0000000/web/smarty/bidders/templates_c/' does not exist, or is not a directory. in /home/sites/lolipop.jp/users/lolipop.jp-dp0000000/web/smarty/Smarty.class.php on line 1088
と表示されます。
このエラーメッセージにある
bidders/templates_c/
というフォルダがダウンロードしたフォルダに見当たりません。
set.php ものぞいてみましたが、よくわかりません。
xreaサーバーも利用しており、そちらもトライしてみましたが、状況は変わりません。
Smartyフォルダへの絶対パスの設定を間違えています。
と表示されます。
絶対パスの修正は、IDを書き換えただけです。
対処法を教えていただけると助かります。
よろしくお願いいたします。