Outbid Notification - Add link to auction item?

  • Posts: 105
  • Thank you received: 9
8 years 3 months ago #247850

-- url of the page with the problem -- : twepta.org
-- HikaShop version -- : 2.6.3
-- HikaAuction version -- : 1.2
-- Joomla version -- : 3.51

Is there a way to add a link to the auction item that the person has been outbid on?

Thank you.

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

  • Posts: 12953
  • Thank you received: 1778
8 years 3 months ago #247899

Hello,

Sure! you'll just have to :
- Go to the page "Hikashop->System->Emails"
- Edit the "HikaAuction : Auction outbid notification" email
- Edit the "Preload version" code and change these lines :

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

By :
$vars = array(
	'LIVE_SITE' => HIKASHOP_LIVE,
	'URL' => HIKASHOP_LIVE,
	'PRODUCT_URL' => $front_product_url,
);
- Edit the "HTML version" and add the that code where you want to add the link to your product page :
{VAR:PRODUCT_URL}

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

  • Posts: 105
  • Thank you received: 9
8 years 3 months ago #248115

Thank you. I'll try it out this weekend :)

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

  • Posts: 105
  • Thank you received: 9
8 years 2 months ago #248506

Added the preload and html code. When I click the link in the outbid notification email, it says that the product is not found.

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

  • Posts: 105
  • Thank you received: 9
8 years 2 months ago #248507

I setup the auction items under a separate folder under the "root". Did this so that the auction items would not show on my online store. Is it possible that this is the reason the link isn't working?

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

  • Posts: 105
  • Thank you received: 9
8 years 2 months ago #248509

Just tried adding it under products category - and that doesn't work either. Hopefully you can help Mohammed - go live in two days. Thanks in advance :)

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
8 years 2 months ago #248532

Hi,

So what is the link that is generated in the email ? And what is the real link to the product page on your frontend ?

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

  • Posts: 105
  • Thank you received: 9
8 years 2 months ago #248540

This is the link in the email:



Link to product in auction:
http://.../index.php/en/silent-auction/product/573-test1

Attachments:
Last edit: 8 years 2 months ago by mduda.

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

  • Posts: 105
  • Thank you received: 9
8 years 2 months ago #248579

Hi Hika Auction Team,

I know it's the weekend, but I could really use some help. We go live with our auction in a day. I need to get the product link working on the outbid notification. Here's what the preload hikaauction outbid notification - preload version shows:

defined('_JEXEC') or die('Restricted access');
?><?php

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

$texts = array(
	'MAIL_HEADER' => JText::_('HIKASHOP_MAIL_HEADER'),
	'MAIL_TITLE' => JText::_('AUCTION_EMAIL_OUTBID_TITLE'),
	'MAIL_MESSAGE' => JText::sprintf('AUCTION_EMAIL_OUTBID_MESSAGE', $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)
);

$front_product_url = hikashop_frontendLink('product&task=show&cid[]='.$data->product->product_id . $url_itemid);

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

The link that shows up in the email is incorrect. Can anyone help? Thank you!

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
8 years 2 months ago #248585

Hi,

Try changing the line:

$front_product_url = hikashop_frontendLink('product&task=show&cid[]='.$data->product->product_id . $url_itemid);
to:
$front_product_url = hikashop_frontendLink('product&task=show&cid='.$data->product->product_id .'&name='.$data->product->product_alias .$url_itemid);
(supposing that the alias is properly set in the product's settings).

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

  • Posts: 105
  • Thank you received: 9
8 years 2 months ago #248599

Thanks for the reply Nicolas. Unfortunately, sill doesn't work... I click on the link which now reads:






:(

Attachments:

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

  • Posts: 105
  • Thank you received: 9
8 years 2 months ago #248602

Including the detail on the product...as you mentioned you were assuming the alias was setup properly.

Attachments:

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

  • Posts: 105
  • Thank you received: 9
8 years 2 months ago #248603

This is the product setup. Item id =622



249= hikashop menu id, not the auction (the link shows 249).
The auction menu id=1181

Attachments:
Last edit: 8 years 2 months ago by mduda.

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

  • Posts: 105
  • Thank you received: 9
8 years 2 months ago #248614

Any ideas on this?

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

  • Posts: 105
  • Thank you received: 9
8 years 2 months ago #248659

We go live in a couple hours. I'm guessing this is not an easy solve? Also wondering if the email titles not functioning has something to do with the issue?

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
8 years 2 months ago #248636

Hello,

Can you :
- Go to the page "Hikashop->System->Emails"
- Edit the "HikaAuction : Auction outbid notification" email
- Edit the "Preload version" code

- Replace that line :

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

We go live in a couple hours. I'm guessing this is not an easy solve? Also wondering if the email titles not functioning has something to do with the issue?


Actually we already fixed that issue through the last HikaAuction version, you'll just have to download it through our website, and install it.

Thank you for your feedback !

Last edit: 8 years 2 months ago by Mohamed Thelji.
The following user(s) said Thank You: mduda

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

  • Posts: 105
  • Thank you received: 9
8 years 2 months ago #248675

Dancing a jig!!! Thank you so much - it works!

On the email - I have version 1.2 - I believe that's the latest...I checked my subscription to download, and it still shows 1.2. Is it different?

Thank you all for your help! :)

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 2 months ago #248676

Hi,

HikaAuction 1.2.1 release has just be done.
The update is only available by download, the automatic update will be activate in a few days.
www.hikashop.com/support/documentation/3...ction-changelog.html

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: mduda

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

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