Jump to content

[HELP] how to "index


Recommended Posts

Hi

 

I am trying to insert a condition in my product.tpl and i am getting this error:

 

Notice: Undefined index: customer in public_html/LOJA/cache/smarty/compile/f9/0c/19/f90c193fc8fabce72bf3313a40a9b4ca39adc7f6.file.product.tpl.php on line 550

 

I know that ussualy this errors can be ignored but i need it to be able to read the "id_default_group" to aply the condition that i need...

 

If it was working i would ignore it, but is not.

 

Line of code:

 

        

{if $product->on_sale && $customer->id_default_group < 4}<span class="advert">{l s='on_sale!'}
 
{elseif $product->on_sale && $customer->id_default_group >= 4}<span class="advert">{l s='Outlet!'}
 
{elseif $product->specificPrice AND $product->specificPrice.reduction AND $productPriceWithoutRedution > $productPrice}</span>
 
<span class="advert">{l s='Reduced price!'}</span>
 
{/if}

 

 

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...