Skip to main content

Outbid Notification - Add link to auction item?

10 years 2 months ago #247850 by mduda
-- 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.

10 years 2 months ago #247899 by Mohamed Thelji
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 :
Code:
$vars = array( 'LIVE_SITE' => HIKASHOP_LIVE, 'URL' => HIKASHOP_LIVE, );

By :
Code:
$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 :
Code:
{VAR:PRODUCT_URL}

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

10 years 2 months ago #248115 by mduda
Thank you. I'll try it out this weekend :)

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

10 years 2 months ago #248506 by mduda
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.

10 years 2 months ago #248507 by mduda
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.

10 years 2 months ago #248509 by mduda
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.

10 years 2 months ago #248532 by nicolas
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.

10 years 2 months ago - 10 years 2 months ago #248540 by mduda
This is the link in the email:



Link to product in auction:
http://.../index.php/en/silent-auction/product/573-test1
Last edit: 10 years 2 months ago by mduda.

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

10 years 2 months ago #248579 by mduda
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:
Code:
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.

10 years 2 months ago #248585 by nicolas
Hi,

Try changing the line:
Code:
$front_product_url = hikashop_frontendLink('product&task=show&cid[]='.$data->product->product_id . $url_itemid);
to:
Code:
$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.

10 years 2 months ago #248599 by mduda
Thanks for the reply Nicolas. Unfortunately, sill doesn't work... I click on the link which now reads:






:(

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

10 years 2 months ago #248602 by mduda
Including the detail on the product...as you mentioned you were assuming the alias was setup properly.

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

10 years 2 months ago - 10 years 2 months ago #248603 by mduda
This is the product setup. Item id =622



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

Last edit: 10 years 2 months ago by mduda.

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

10 years 2 months ago #248614 by mduda
Any ideas on this?

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

10 years 2 months ago #248659 by mduda
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?

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

10 years 2 months ago - 10 years 2 months ago #248636 by Mohamed Thelji
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 :
Code:
$front_product_url = hikashop_frontendLink('product&task=show&cid[]='.$data->product->product_id . $url_itemid);
By :
Code:
$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: 10 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.

10 years 2 months ago #248675 by mduda
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.

10 years 2 months ago #248676 by Jerome
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.
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.124 seconds
Powered by Kunena Forum