Virtuemart 设置“结账”链接到目标=“新”
我知道这个问题仅针对虚拟机,但我已经没有选择了。 我通常只需要进行最少的 php 代码编辑就可以了,但他的内容超出了我的能力范围。
我找不到与“结账”链接相关的 php,
我需要在新窗口中打开它,即。 target="new"
原因是; VM 正在 iframe (facebook) 中运行,为了让 Paypal 工作,我需要将用户从 iframe 中拉出并在结账时进入新窗口。
I know this question is specific to VM only but I have run out of options.
I'm usually ok with minimal php code editing, but his is over my head.
I can not find the php that relates to the "checkout" link
I need to have it open in a new window ie. target="new"
Reason being; VM is running in an iframe (facebook) and for Paypal to work I need to pull the user out of iframe and into new window on checkout.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
中找到结帐链接
您可以在(如果您不使用默认主题,则将“默认”替换为主题目录的名称)
。您可能无法找到结帐链接,因为 VirtueMart 使用语言文件,因此结帐链接的文本实际上是
PHPSHOP_CHECKOUT_TITLE
,并从administrator/components/com_virtuemart/languages/common/< /code> 例如
english.php
。工作流程是递归地grep
查找文本以在语言文件中查找它,然后递归地grep
查找其引用以查找其使用位置。结帐链接是通过调用 vmCommonHTML 超链接生成的,该超链接采用以下参数:
因此您需要在第三个参数中指定目标,因此将: 更改
为
You can find the checkout link in
(If you're not using the default theme then replace 'default' with the name of your theme's directory).
You might have had trouble finding the checkout link because VirtueMart uses language files, so the text for the checkout link is actually
PHPSHOP_CHECKOUT_TITLE
and looked up fromadministrator/components/com_virtuemart/languages/common/
e.g.english.php
. The workflow is recursivelygrep
for the text to find it in the language file then recursivelygrep
for its reference to find where it's used.The checkout link is generated by a call to vmCommonHTML hyperlink, which takes the following parameters:
So you'd need to specify the target in the third parameter, so change:
to