Button contact us from product page to email

  • Posts: 42
  • Thank you received: 0
  • Hikashop Business
1 year 2 months ago #348812

-- HikaShop version -- : 4.7.1
-- Joomla version -- : 4
-- PHP version -- : 8
-- Error-message(debug-mod must be tuned on) -- : From contact us button from product description

HI,
it is possible to have both buttons ( from contact us button from product description) under the form?
In product page, click on contact us button then will open a new page with form regarding asking info about product.
Now are in top right, can be under form? I use display - contact and move them under the form but are not placing ok.

Can i have ip of sender in form received on email?
Can i have captcha to prevent spams?

Thank you

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

  • Posts: 4519
  • Thank you received: 611
  • MODERATOR
1 year 2 months ago #348819

Hello,

"it is possible to have both buttons...form but are not placing ok."
There several ways to achieve this, via Css (see this example) or by using the override view .

"Can i have ip of sender in form received on email?"
Yes, it's possible, you have a php command in order to get the IP : hikashop_getIP, that you can use directly in your "html email"
Code Scheme :

<?php
echo hikashop_getIP;
?>
=> This will display the IP, and so you have to add this in your administrator notification email.

"Can I have captcha to prevent spams?"
=> You can use the reCaptcha plugin
But note that it won't be 100% to prevent all spam.

Regards

Last edit: 1 year 2 months ago by Philip.

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

  • Posts: 42
  • Thank you received: 0
  • Hikashop Business
1 year 2 months ago #348827

Hi,
IP, i added your code into email contact
it gives error
Undefined constant "hikashop_getIP"

For buttons, i use display and move buttons under form, but is not looking good, they are before description. I need to be under this

Thanks

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
1 year 2 months ago #348829

Hi,

Philippe forgot the parenthesis. It should be:

<?php
echo hikashop_getIP();
?>

For the buttons, could you provide the URL of a page so that we can see the situation to be able to help you more precisely ?

The following user(s) said Thank You: Philip

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

  • Posts: 42
  • Thank you received: 0
  • Hikashop Business
1 year 2 months ago #348847

Hi

For IP

I added in email contact but is not working.
Where i need to add that code to receive IP user that fill contact form from product description?

Thank you

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

  • Posts: 42
  • Thank you received: 0
  • Hikashop Business
1 year 2 months ago #348862

And it is possible to hide what i have i red?
prnt.sc/zPOUueyhcTSQ

Email from product page button contact us.

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

  • Posts: 4519
  • Thank you received: 611
  • MODERATOR
1 year 2 months ago #348855

Hello,

You have to edit the "Contact request" email, and the code in the Html part, see my screenshot :



And to remove the links there, you can remove this code from the preload (at the bottom of the email edit form) of that same email:
	if(!empty($admin_url))
		$vars['PRODUCT_DETAILS'] .= ' <a href="'.$admin_url.'">'.JText::_('BACKEND_EDITON_PAGE').'</a>';
	if(!empty($front_url))
		$vars['PRODUCT_DETAILS'] .= ' <a href="'.$front_url.'">'.JText::_('FRONTEND_DETAILS_PAGE').'</a>';
Regards

Last edit: 1 year 2 months ago by nicolas.

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

  • Posts: 42
  • Thank you received: 0
  • Hikashop Business
1 year 2 months ago #348879

Hi,
Is different: prnt.sc/HLafFFHfciEe
I tried to add after </table> but is not shown


And
And to remove the links there, you can remove this code from the preload (at the bottom of the email edit form) of that same email:
in which file i need to remove?

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

  • Posts: 4519
  • Thank you received: 611
  • MODERATOR
1 year 2 months ago #348880

Hello,

I'm not sure I'm following you, or that you're editing the right email.
We will proceed differently, can you provide us with the following:
- Url link to your backend
- backend user references (with maximum Acl)
- Precise which email did you edit yourself

Awaiting your elements to progress
Regards

Last edit: 1 year 2 months ago by Philip.

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

  • Posts: 42
  • Thank you received: 0
  • Hikashop Business
1 year 2 months ago #348886

For IP:
Components- HikaShop- Emails- A contact request has been made

If is not ok, please send me the right path where i need to add.

For removing backend and front text links from email that i receive from button contact us ... from product page details.
please send me the path and file that i need to change

Thank you

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

  • Posts: 4519
  • Thank you received: 611
  • MODERATOR
1 year 2 months ago #348891

Hello,

We have already give you required informations, it seems that you don't understand our tips and informations.
Plus, sometime we aren't sure to understand your needs, and so have a look on your backend may help us to better understand the situation.

And that's why so far we didn't know what we can say more... We request several time elements that you didn't provide...
Regards

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

  • Posts: 42
  • Thank you received: 0
  • Hikashop Business
1 year 2 months ago #348904

Hello,
I'm sorry but your info wasn't clear.
Please see your msg:
Yes, it's possible, you have a php command in order to get the IP : hikashop_getIP, that you can use directly in your "html email"
HTML EMAIL, but where is this, which file? It is in display-view or in emails from system.

I need information to change/modify

Where i can send you my info, here is public and we have online website with admin protection, we can't disable our protection.

Send me where i can find that file where i need to modify.

Thanks

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

  • Posts: 42
  • Thank you received: 0
  • Hikashop Business
1 year 2 months ago #348906

@Philip I think you didn't understand because your image sent it is from New comment email .

I need to add line with IP in email that i receive from product page, click on button contact us ... this will open a form, filling this form and i will receive on my email.
For this, i need to edit email A contact request has been made but if i add here that line, i don't receive IP on email.

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

  • Posts: 4519
  • Thank you received: 611
  • MODERATOR
1 year 2 months ago #348908

Hello,

It is indeed the email "A contact request has been made", you are right, sorry for this error.

That being said, we think you've put the code somewhere it can't work (or it's in a if (condition realised) {your code}), OR you didn't paste the code in the HTML version.

That's why we ask for backend access, in order to be able to better understand situation and you just ignored that request.
If you want us to help you, you have to help us first...

Regards

Last edit: 1 year 2 months ago by Philip.

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

  • Posts: 42
  • Thank you received: 0
  • Hikashop Business
1 year 2 months ago #348928

Hi,
Ok, if i won't succeed this time i will make you user/pass (let me know how can i add here in private mode to be seen only by you)

1 Where i can find this to remove them, in which file? prnt.sc/eGT397D_TA7G

2 IP, i succeed.

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
1 year 2 months ago #348931

Hi,

Edit the contact request email in System>Emails.
There, you'll find this code in the "preload" section at the bottom of the page:
i.imgur.com/EKmhXuN.png

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

  • Posts: 42
  • Thank you received: 0
  • Hikashop Business
1 year 2 months ago #348964

Thank you for your help.

I want to ask you something else:
Do you have recaptcha for contact us from product detail page?
Or can you make this as custom? After you can sell on HikaShop as extension.

Thank you

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
1 year 2 months ago #348977

Hi,

The Recaptcha plugin we provide for free on our website has an option to be used on the contact form:
www.hikashop.com/marketplace/product/223...-with-recaptcha.html

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

  • Posts: 42
  • Thank you received: 0
  • Hikashop Business
1 year 2 months ago #348978

nicolas wrote: Hi,

The Recaptcha plugin we provide for free on our website has an option to be used on the contact form:
www.hikashop.com/marketplace/product/223...-with-recaptcha.html


Hi, it is compatible with Joomla 4?

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
1 year 2 months ago #348988

Yes

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

Time to create page: 0.081 seconds
Powered by Kunena Forum