outbid notification - html not hyperlinking and price disappeared

  • Posts: 105
  • Thank you received: 9
  • Hikashop Business
1 year 10 months ago #261319

-- HikaShop version -- : 2.6.3
-- HikaAuction version -- : 1.2.1
-- Joomla version -- : 3.6.5

I just updated to HikaAuction 1.2.1 (previously on 1.2).

The outbid notification title is now correct, and there is now a product link. However, the product link is not hyperlinked (even though I have html on in the settings for the email). Also, with the previous version I could see the price. The price is now gone in the email.

<?php
/**
 * @package	HikaShop for Joomla!
 * @version	1.2.1
 * @author	hikashop.com
 * @copyright	(C) 2010-2016 HIKARI SOFTWARE. All rights reserved.
 * @license	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?><?php

global $Itemid;
$url_itemid = '';
if(!empty($Itemid))
	$url_itemid = '&Itemid=' . $Itemid;

$front_product_url = hikashop_frontendLink('index.php?option=com_hikashop&ctrl=product&task=show&cid[]=' . $data->product->product_id . $url_itemid);

$texts = array(
	'MAIL_HEADER' => JText::_('HIKASHOP_MAIL_HEADER'),
	'MAIL_TITLE' => JText::_('AUCTION_EMAIL_OUTBID_TITLE'),
	'MAIL_MESSAGE' => JText::sprintf('AUCTION_EMAIL_OUTBID_MESSAGE',$front_product_url, $data->product->product_name,$data->price),
	'HI_USER' => JText::sprintf('HI_CUSTOMER',@$data->user->username),
	'ORDER_END_MESSAGE' => JText::sprintf('BEST_REGARDS_CUSTOMER',$mail->from_name)
);

$vars = array(
	'LIVE_SITE' => HIKASHOP_LIVE,
	'URL' => HIKASHOP_LIVE,
	'PRODUCT_URL' => $front_product_url,
);

Attachments:
Last Edit: 1 year 10 months ago by mduda.

Please Log in or Create an account to join the conversation.

  • Posts: 105
  • Thank you received: 9
  • Hikashop Business
1 year 10 months ago #261320

Duh. Figured it out as soon as I posted...

I had an override in the previous version language. The code changed a little, so all I had to do was remove the AUCTION_EMAIL_OUTBID_MESSAGE, copied it from the language and recreated my new override.

Perfect! Thanks guys.

Please Log in or Create an account to join the conversation.

Moderators: Mohamed Thelji
Time to create page: 0.081 seconds
Powered by Kunena Forum