tozi Posted December 2, 2014 Share Posted December 2, 2014 (edited) Hi all, i tried added new condition: - override/classes/Product.php 'condition' => array('type' => self::TYPE_STRING, 'shop' => true, 'validate' => 'isGenericName', 'values' => array('nic', 'novinka', 'akce', 'vyprodej', 'bodyform', 'sleva10', 'sleva20', 'sleva25', 'sleva30', 'special', 'valentyn', 'sleva15'), 'default' => 'nic'), - admin/themes/default/template/controllers/products/informations.tpl <option value="sleva10" {if $product->condition == 'sleva10'}selected="selected"{/if}>Sleva 10%</option> <option value="sleva15" {if $product->condition == 'sleva15'}selected="selected"{/if}>Sleva 15%</option> <option value="sleva20" {if $product->condition == 'sleva20'}selected="selected"{/if}>Sleva 20%</option> <option value="sleva25" {if $product->condition == 'sleva25'}selected="selected"{/if}>Sleva 25%</option> <option value="sleva30" {if $product->condition == 'sleva30'}selected="selected"{/if}>Sleva 30%</option> - themes/shop/product.tpl {if $product->condition == "sleva10"} <div class="vlp vlp{$product->condition}"></div> {/if} {if $product->condition == "sleva15"} <div class="vlp vlp{$product->condition}"></div> {/if} But didnt work. Any idea? I have presta 1.5.6.0 Edited December 2, 2014 by tozi (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now