如何在openfox中更改添加到购物车按钮,适用于Firefox和IE

时间:2015-01-15 15:23:20

标签: internet-explorer firefox button opencart shopping-cart

我一直在努力解决这个问题,我似乎无法解决在Firefox和Internet Explorer中无法使用的添加到购物车按钮。

以下是代码:

<file name="catalog/controller/module/featured.php">
    <operation>
        <search position="after"><![CDATA[
        $data['heading_title'] = $this->language->get('heading_title');
        ]]></search>
        <add><![CDATA[
        $data['text_read_more'] = $this->language->get('text_read_more');
        ]]></add>
    </operation>
</file>

<file name="catalog/language/english/module/featured.php">                 
    <operation>                         
        <search position="after"><![CDATA[                        
        // Text                       
        ]]></search>                         
        <add><![CDATA[                         
        $_['text_read_more'] = 'View Product';                        
        ]]></add>                 
    </operation>         
</file>

<file name="catalog/view/theme/*/template/module/featured.tpl">
    <operation>
        <search position="replace"><![CDATA[            
        <button type="button" onclick="cart.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs hidden-sm hidden-md"><?php echo $button_cart; ?></span></button>
        ]]></search>
        <add><![CDATA[
        <button type="button"><a href="<?php echo $product['href']; ?>"><span class="hidden-xs hidden-sm hidden-md"><?php echo $text_read_more; ?></span></a></button>          
        ]]></add>
    </operation>
</file>

0 个答案:

没有答案