Jump to content

0 Ft-os termékeknék "Hívjon az árért" felirat legyen.


king50

Recommended Posts

Sziasztok!

Szerintetek meg lehet az valahogyan oldani, hogyha olyan termék kerül az oldalra aminek az ára 0 Ft akkor hívjon az árért felirat jelenjen meg?

Vagy, ha 0 Ft-ra nem működik akkor egyéb megoldás létezik, hogy ezt írja ki és ne legyen ár?

Előre is köszönöm!

Link to comment
Share on other sites

tehát a tetemad/product.tpl-t kellene megnyitni.

 

Én a default témát használom. Keresd ki a

{if $priceDisplay >= 0 && $priceDisplay <= 2}

kódot, valahol a 387-es környékén lesz.

 

Itt fogod találni ezt a kódblokkot:

{if $priceDisplay >= 0 && $priceDisplay <= 2}
 <span id="our_price_display">{convertPrice price=$productPrice}</span>
 <!--{if $tax_enabled  && ((isset($display_tax_label) && $display_tax_label == 1) OR !isset($display_tax_label))}
  {if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if}
 {/if}-->
{/if}

 

Ezt cseréld le erre.

 

{if {convertPrice price=$productPrice} == 0}
{l s='Hívjon az árért!'}
			    {else}
			    <span id="our_price_display">{convertPrice price=$productPrice}</span>
{/if}

 

valamint ha azt is akarod, a kosár gomb se jelenjen meg, akkor a 451-es sor körül cseréld le a következő kódot:

 

<p id="add_to_cart" class="buttons_bottom_block">
 <span></span>
 <input type="submit" name="Submit" value="{l s='Add to cart'}" class="exclusive" />
</p>

 

erre:

{if {convertPrice price=$productPrice} > 0}
<p id="add_to_cart" class="buttons_bottom_block">
 <span></span>
 <input type="submit" name="Submit" value="{l s='Add to cart'}" class="exclusive" />
</p>
			{/if}

 

képekben:

amikor nem nulla az ára:

FireShot_Screen_Capture__235_-___iPod_shuffle_-_TESZT___-_localhost_presta1541_index_php_id_product_2_controller_product_id_lang_1_www.kepfeltoltes.hu_.png

 

 

és amikor nulla:

FireShot_Screen_Capture__236_-___iPod_shuffle_-_TESZT___-_localhost_presta1541_index_php_id_product_2_controller_product_id_lang_1_www.kepfeltoltes.hu_.png

Edited by pattila01 (see edit history)
  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...