【问题标题】:Magento "Tell a Friend " redirects to 404 page inside tabMagento“告诉朋友”重定向到选项卡内的 404 页面
【发布时间】:2012-07-18 13:36:32
【问题描述】:

我已使用以下代码在产品详细信息页面的选项卡中显示“告诉朋友”表单

<block type="catalog/product_view_tabs" name="product.info.tabs" as="info_tabs" template="catalog/product/view/tabs.phtml" >
          <action method="addTab" translate="title" module="catalog">
     <alias>send-friend</alias>
     <title>Send Friends</title>
     <block>sendfriend/send</block>
     <template>sendfriend/send.phtml</template>
          </action>     
    </block>

我已经启用了允许客人从后端“是”。但是在提交表单时,它会重定向到 404 页面。发送电子邮件的默认方式在选项卡之外可以正常工作,但在选项卡内部则不起作用。我错过了什么吗?

【问题讨论】:

    标签: php magento friend tell


    【解决方案1】:

    如果它将您发送到正确的网址,无论您是否来自标签页,您都应该期望它以相同的方式工作。

    我刚刚通过

    解决了我的 404 错误
    • 在配置 > 系统 > 高级中启用发送给朋友
    • 在配置 > 目录 > 给朋友的电子邮件中设置“已启用”、“默认模板”、“允许访客”、“Cookie(不安全)”

    我收到的网址是http://www.example.com/sendfriend/product/send/id/14530/

    我的猜测是您的模板中的某个地方存在问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-03-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多