Jump to content
shannon bramlington

Adding Custom Text after price Keeps Breaking SIte

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)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More