View Single Post
  #1  
Old 10-23-2013, 09:03 AM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 787
 

Default Adding membership type to order invoices

Hi, I am working on my 4.6.0 store and trying to add a line to order_invoice.tpl to show if an order is "wholesale" or "retail". I tried adding the same lines I did in my 4.4.5 store which work great but they don't seem to be working in my 4.6.0 store, or if it does, it is sporadic. Here is what I have...

/common_files/mail/html/order_invoice.tpl
Code:
<strong>Membership:</strong> {if $userinfo.membership eq 'Wholesale'}Wholesale {else}Retail {/if}

and in /ideal_responsive/mail/html/order_invoice.tpl
Code:
<strong>Membership:</strong> {if $userinfo.membership eq 'Wholesale'}Wholesale {else}Retail {/if}

I am thinking of changing
Code:
$userinfo.membership eq 'Wholesale'

to

Code:
$userinfo.membershipid eq '2'

and see if that works but I have my doubts. I have also tried double quotes instead of single quotes around Wholesale but that didn't seem to work either. Am I missing something? I just logged in and placed an order and it said WHOLESALE but last night I got one that was wholesale and it said RETAIL even though the prices were wholesale.
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3
mods:
reCaptcha
running on UNIX

www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2
mods:
reCaptcha
cdseo pro
running on UNIX
Reply With Quote