Woocommerce – Fatal Error
-
The following code…
/*<script type=”text/template” id=”cart-dropdown-template”>
<span id=”cart-count”><%- cart_contents_count %></span>
<ul id=”cart-dropdown”>
<li class=”upcaret fa fa-caret-up fa-3x”>
<% if(cart_contents_count == 0) { %>
<li class=”empty”><?php _e(‘Your cart is empty. Check out’, ‘contempo’); ?> “><?php _e(‘our shop’, ‘contempo’); ?>.
<% } else { %>
<% _.each(cart_contents, function(item, key, arr) { %>
<li class=”cart-item” id=”cart-item-<%- item.cart_item_key %>”>
<div class=”cart-item”>
<span class=”product-image”><%= item.image %></span>
<span class=”product-info product-quantity”><%- item.quantity %></span>
<span class=”product-info product-title”><%- item.title %></span>
<div class=”product-info right”>
<span class=”product-price”><%= item.price %></span>
“><i class=”fa fa-times”></i>
</div>
</div><% }); %>
<li class=”subtotal”><span class=”right” id=”subtotal-content”><?php _e(‘Subtotal’, ‘contempo’); ?>: <%= subtotal %></span>
<li class=”checkout”>“><?php _e(‘Checkout’, ‘contempo’); ?>
<% } %></script>*/
is giving me the following error…
Fatal error: Only variables can be passed by reference in /data/19/3/80/133/3895133/user/4326857/htdocs/wp-content/themes/automotive-2/includes/js-tmpl-woocart.php on line 8.
- The topic ‘Woocommerce – Fatal Error’ is closed to new replies.