チェックアウト時の「当店の規約」のポップアップ表示で、正しい記事を表示させる方法

  • Posts: 7
  • Thank you received: 0
12 years 9 months ago #21158

こんにちは、お世話になっております。

上記の題についてですが、
ForumのTOPIC: "Articles" word on my terms of use title...
でHIKAスタッフがアドバイスしているようにViewを編集したのですが、表示してほしいArticleを表示してくれません。

私のショップには、規約に関するJoomla Articleは2つあります。
1つは長文で、もう一つはチェックアウト時用に簡易にまとめたものです。
チェックアウト時に表示させたいのは、簡易規約の方なんですが、長文規約が表示されます。


具体的には下記のようにViewを編集しました。
Joomla Articleは3つあり、簡易規約のIDは3、長文規約のIDは1です。

$text = '<a href="'.JRoute::_('index.php?option=com_content&view=article&id='.$terms_article.'&3=3&tmpl=component').'" class="modal" rel="{handler: \'iframe\', size: {x: 450, y: 480}}" target="_blank">'.$text.'</a>';

間違い、もしくは解決方法を教えてください。

Please Log in or Create an account to join the conversation.

  • Posts: 81428
  • Thank you received: 13058
  • MODERATOR
12 years 9 months ago #21160

こんにちは、

Hikashopをご利用いただき、ありがとうございます。

この
$text = '<a href="'.JRoute::_('index.php?option=com_content&view=article&id='.$terms_article.'&3=3&tmpl=component').'" class="modal" rel="{handler: \'iframe\', size: {x: 450, y: 480}}" target="_blank">'.$text.'</a>';
には、設定ページの販売規約オプションに選んだ記事を使います。このオプションの記事が、簡易規約の記事であることをご確認下さい。
また、&3=3は間違いです。おそらく、下記がお客様のなさりたかったことだと思います:
$text = '<a href="'.JRoute::_('index.php?option=com_content&view=article&id=3&tmpl=component').'" class="modal" rel="{handler: \'iframe\', size: {x: 450, y: 480}}" target="_blank">'.$text.'</a>';
これですと、設定ページのオプションを無視してID3の記事を使用できます。

それでは、今後ともHikashopをよろしくお願いいたします。

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
12 years 9 months ago #21189

回答、ありがとうございました。
Viewを編集しなくても、CONFIGULATIONのCHECK OUTにある設定変更で、Ariticleを選択することができました!
またお世話になると思います、よろしくお願いします。

Please Log in or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum