0 użytkowników i 1 Gość przegląda ten wątek.
(...)static public function displayPrice($price, $currency, $no_utf8 = false, $convert = true) { /* if you modified this function, don't forget to modify the Javascript function formatCurrency (in tools.js) */ if ($price == 96969) return 'Na telefon'; if ($convert) $price = self::convertPrice($price, $currency); if (is_int($currency))(...)
static public function displayPrice($price, $currency = NULL, $no_utf8 = false) { if ($currency === NULL) $currency = Currency::getCurrent(); /* if you modified this function, don't forget to modify the Javascript function formatCurrency (in tools.js) */ if ($price == 96969) return 'Zadzwoń'; if (is_int($currency)) $currency = new Currency(intval($currency));
W opisie produktu ustawiamy Ilość na 0 i zaznaczamy opcję Nie pozwól zamówić (Jakoś to wcześniej przegapiłem )
<p{if !$allow_oosp && $product->quantity == 0} style="display:none;"{/if} id="add_to_cart" class="buttons_bottom_block"><input type="submit" name="Submit" value="{l s='Add to cart'}" class="exclusive" /></p>
{if ($product.allow_oosp OR $product.quantity > 0) && $product.customizable != 2} <a class="button ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$base_dir}cart.php?add&id_product={$product.id_product|intval}&token={$static_token}">{l s='Add to cart'}</a> {else} <span class="exclusive">{l s='Add to cart'}</span> {/if}
{if ($product.quantity > 0 OR $product.allow_oosp) AND $product.customizable != 2} <a class="exclusive ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product}" href="{$base_dir}cart.php?qty=1&id_product={$product.id_product}&token={$static_token}&add" title="{l s='Add to cart' mod='homefeatured'}">{l s='Add to cart' mod='homefeatured'}</a> {else} <span class="exclusive">{l s='Add to cart' mod='homefeatured'}</span> {/if}