Jump to content

Adding Custom Text after price Keeps Breaking SIte


shannon bramlington

Recommended Posts

                                  I have an issue that keeps  breaking the whole site. Here's what I did and what's happening:

  • I changed my theme and went back to the boot strap theme.
  • Now the custom code that worked on the old theme breaks the site.
  • I put this code into the product.list.tpl file, line 78. Maybe in the wrong spot?

 

What I need:

  • I'm trying to get text after the price so that non logged in customers see the text after the price asking the customer to log in to see wholesale prices.
  • Then I need this text to disappear once the customer has logged in.
  • I need the text to show on both the category pages and product pages of all products. 
  • To make sure I am using the right file, and am putting it in the right line. <span> or div in front? Unsure.

 

This is the old code that worked before that will not work in the boot strap theme. It was located in the product.list.tpl file.

  {/if}

                                {/if}
                            {/if}
                            {if !$logged}
                            <p class="price_info">Retail Price</p>
                            <p class="price_info">To see discounted pricing, <a href="{$content_dir}authentication?back=my-account">login</a> or click <a href="{$content_dir}content/2-become-a-wholesale-or-non-profit-customer">here</a>.</p>
                            {/if}

 

Help!...

 

 

Edited by shannon bramlington (see edit history)
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...