Claudia M Posted July 4, 2020 Share Posted July 4, 2020 Hi, How would I add the Customer Group to my emails and Invoice? Thanks in advance, Claudia Link to comment Share on other sites More sharing options...
bsmither Posted July 4, 2020 Share Posted July 4, 2020 This conversation may be of interest. https://forums.cubecart.com/topic/53037-orders-to-show-customer-group/ Link to comment Share on other sites More sharing options...
Claudia M Posted July 4, 2020 Author Share Posted July 4, 2020 So I would use {$BILLING.cust_groups} for the emails. Would I also use that for the invoice / packing slip? Link to comment Share on other sites More sharing options...
bsmither Posted July 4, 2020 Share Posted July 4, 2020 Yes and yes. Link to comment Share on other sites More sharing options...
Claudia M Posted July 4, 2020 Author Share Posted July 4, 2020 It isn't showing up on the invoice. This is what I have: <div class="customer-tag" style="margin-bottom: 10px">Order Place Thru: {$BILLING.cust_groups} </div> Link to comment Share on other sites More sharing options...
bsmither Posted July 4, 2020 Share Posted July 4, 2020 On the invoice template, at the end, add {debug}. Then bring up the invoice page to the screen (ready to print). There will be a popup of all the stuff Smarty was given to populate a template. Scan for BILLING in the left pane. Link to comment Share on other sites More sharing options...
Claudia M Posted July 4, 2020 Author Share Posted July 4, 2020 I found this under the customer section. Is this what we are looking for? title_groups => "Customer Groups" I don't have BILLING in the left pane. I'm using one of my customers to get to the ready to print page. How else would I bring it up to print? Link to comment Share on other sites More sharing options...
bsmither Posted July 4, 2020 Share Posted July 4, 2020 What is listed for ORDER_LIST in the debug popup? If, from the linked conversation above, you also created the snippet that uses this hook: "Description: Adds Customer Group Name(s) to Admin Orders List" then you would use {$order.cust_groups} in the printable admin invoice file orders.print.php. Link to comment Share on other sites More sharing options...
Claudia M Posted July 4, 2020 Author Share Posted July 4, 2020 I must have done something. I accidentally deleted my debug info and went back to get it. Now when I click the print button in an order it takes me to my home page. Link to comment Share on other sites More sharing options...
Claudia M Posted July 5, 2020 Author Share Posted July 5, 2020 I decided to go a different way on the invoice. The emails work as they should. Thanks Brian. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.