Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>In product.tpl there are several instances of <code>$option_value['price']</code> correlating to different types of options you can have on a product. First make a copy of product.tpl for a backup then to make the price "disappear" search product.tpl for each instance of:</p> <pre><code> &lt;?php if ($option_value['price']) { ?&gt; (&lt;?php echo $option_value['price_prefix']; ?&gt;&lt;?php echo $option_value['price']; ?&gt;) &lt;?php } ?&gt; </code></pre> <p>and enclose it with a html comment like this:</p> <pre><code> &lt;!-- &lt;?php if ($option_value['price']) { ?&gt; (&lt;?php echo $option_value['price_prefix']; ?&gt;&lt;?php echo $option_value['price']; ?&gt;) &lt;?php } ?&gt; --&gt; </code></pre> <p>That shouldn't effect the header total which is what I assume you mean by:</p> <blockquote> <p>If i remove the "price" in option box, it affect in price calculation</p> </blockquote> <ol> <li><p>To change the color of the price; find the same code blocks and make it something like this:</p> <pre><code>&lt;?php if ($option_value['price']) { ?&gt; &lt;span class="price_color"&gt;(&lt;?php echo $option_value['price_prefix']; ?&gt;&lt;?php echo $option_value['price']; ?&gt;)&lt;/span&gt; &lt;?php } ?&gt; </code></pre></li> </ol> <p>Then make a backup copy of /catalog/view/theme/your_theme/stylesheet/stylesheet.css and add:</p> <pre><code> .price_color {color: #000000} </code></pre> <p>or whatever color you want it to be. Just enclosing it in a span for styling. There may be better ways to do what you're trying to do. You might put the styling in a new css so its not overwritten when updating the template if it's not your own.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload