Contact Us For More Information Button

  • Posts: 966
  • Thank you received: 11
11 years 7 months ago #140225

-- HikaShop version: 2.2.2

I am using the "Display a contact button on the product page" and have a few questions please. I have attached a pic of the email I received when I did a test to illustrate what I am talking about.

1) Why does it say Shipping Address at the top and how can I change that?

2) When I click on the link next to "Product", it takes me to the site's backend (administration) area instead of to the product on the website.

Thank you!!

Attachments:

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

  • Posts: 26266
  • Thank you received: 4044
  • MODERATOR
11 years 7 months ago #140226

Hi,

In the file media/com_hikashop/mail/contact_request.preload.php you should have this content:

$texts = array(
	'MAIL_HEADER' => JText::_('HIKASHOP_MAIL_HEADER'),
	'CONTACT_TITLE' => JText::_('CONTACT_EMAIL_TITLE'),
And in the file media/com_hikashop/mail/contact_request.html.php this content
<h1 style="color:#1c8faf !important;font-size:16px;font-weight:bold; border-bottom:1px solid #ddd; padding-bottom:10px">
	{TXT:CONTACT_TITLE}
</h1>
At this moment, the translation for the key "CONTACT_EMAIL_TITLE" will be used. And you should have in your language file:
CONTACT_EMAIL_TITLE="Contact request"

For the link which point to the administration, please replace in the contact_request.html.php file:
	<tr>
		<td style="color:#1c8faf !important;font-size:12px;font-weight:bold;">{TXT:PRODUCT}</td>
		<td>{VAR:PRODUCT_DETAILS}</td>
	</tr>
By:
	<tr>
		<td style="color:#1c8faf !important;font-size:12px;font-weight:bold;">{TXT:PRODUCT}</td>
		<td>{VAR:FRONT_PRODUCT_DETAILS}</td>
	</tr>
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.
Last edit: 11 years 7 months ago by Jerome.

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

  • Posts: 966
  • Thank you received: 11
11 years 7 months ago #140751

Hi Jerome,

Thank you for the info.

I was wondering, will this change be overridden when I upgrade? Are there no VIEW file in the backend to make this change?

Thanks!!

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

  • Posts: 84243
  • Thank you received: 13687
  • MODERATOR
11 years 7 months ago #140761

Hi,

It's not views, but you can edit them via the menu System>Emails and they will indeed be handled as overrides and you won't loose them when you update.
The issue though is that if you need to edit the preload of the emails, that is not available before the 2.2.3 version which you don't have at the moment.

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

  • Posts: 966
  • Thank you received: 11
11 years 7 months ago #141169

Thanks guys - I'm hoping to upgrade soon.

How can I get the product name to show at the top of the form - similar to how it shows in the email when I receive it as per the pic in my original email above? I think it would be nice to have the product name at the top of the form that way the user will remember which product they are enquiring about.

Thank you!!

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

  • Posts: 966
  • Thank you received: 11
11 years 7 months ago #141174

Hi again,

Everything seems to work fine except the link to the product from the email. I am getting a "404 article not found" message.

Thank you!!

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

  • Posts: 84243
  • Thank you received: 13687
  • MODERATOR
11 years 7 months ago #141244

Hi,

What is the URL of the link which generates that 404 error ?

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

  • Posts: 966
  • Thank you received: 11
11 years 7 months ago #141354

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

  • Posts: 26266
  • Thank you received: 4044
  • MODERATOR
11 years 6 months ago #141988

Hi,

Yes, this url is malformed.
What kind of SEF system are you using ?
Did you modified the link in the email ?

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.

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

  • Posts: 966
  • Thank you received: 11
11 years 6 months ago #142376

Hi Jerome,

The only SEF that I use is the one with Joomla, please see attached.

Also, I did not modify the link.

Thanks!!

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
11 years 6 months ago #142660

Ok, so can you give us a link to your product page so that we can directly test it and have more information about your issue ?
Thanks.

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

Time to create page: 0.059 seconds
Powered by Kunena Forum