login form goes to hikashop product page

  • Posts: 220
  • Thank you received: 0
9 years 11 months ago #215140

Dear,

Whenever a user wants to login, the page always refresh to the buying page of Hikashop to stop logining in.It looks like the whole login form redirect to the Hikashop Product page.How can we fix it? Thanks a lot.

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

  • Posts: 84306
  • Thank you received: 13700
  • MODERATOR
9 years 11 months ago #215163

Hi,

I'm sorry but I'm not following you.
You also didn't provide any of the information we request when creating a new thread, so we don't know the version of Joomla and HikaShop you're using, nor the URL to the page with the issue so that we could look at it.
Please provide these so that we can move forward.

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

  • Posts: 220
  • Thank you received: 0
9 years 11 months ago #215178

Thanks Nicolas for your reply. Here is the info-

Url of the page with the problem: facianohair.com.tw
HikaShop version 2.5
Joomla version 3.3.6
PHP version 5.3.29
Browser(s) name and version Chrome 45

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

  • Posts: 84306
  • Thank you received: 13700
  • MODERATOR
9 years 11 months ago #215212

Hi,

The issue has nothing to do with HikaShop and comes from a customization of your login module whereby you enclosed all the input fields of the Joomla login form inside a HTML link leading to the products listing page of HikaShop.
So whenever you click in an input field, you get redirected to that link.
take.ms/jOnM2n
Remove that customization and you won't have the problem.

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

  • Posts: 220
  • Thank you received: 0
9 years 11 months ago #215331

Thanks a lot, Nicolas.
I removed the link I put in the language code behind" the shopping cart empty" so now the problem is solved.
But I still need to redirect to the Hikashop product page whenever the shopping cart is empty. I put the link in the Main--Cart --URL where you will be redirected when the cart is empty
Why doesn't it work?

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
9 years 11 months ago #215370

Hi,

Please read our HikaShop configuratin documentation for settings about the cart and URL used when the cart is empty.
www.hikashop.com/support/support/documen...onfig.html#main_cart

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: 220
  • Thank you received: 0
9 years 11 months ago #215386

Hi

As I told you, I did setup the configuration you showed but it doesn't work.
configuration--Main--Cart --URL where you will be redirected when the cart is empty

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

  • Posts: 84306
  • Thank you received: 13700
  • MODERATOR
9 years 11 months ago #215389

Hi,

What that option does is that if you try to access the checkout of HikaShop (for example via a HikaShop checkout menu item), the system will automatically redirect you to that URL if you don't have any products in your cart.

I don't see why that wouldn't work. You must be talking about something else. If you want to add a link to the text "the cart is empty", it's totally possible with a translation override:
hikashop.com/download/languages.html#modify
If the override is done correctly, the link will work and go where you tell it to go when you click on the link.

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

  • Posts: 220
  • Thank you received: 0
9 years 11 months ago #215604

Hi,

I guess the reason is I put the cart image < img...>behind the words of "empty cart" in the translation file. So the url redirect in the configuration doesn''t work?
Is there a way that you have the cart image provided and I can also redirect to the product page when cart is empty?

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

  • Posts: 84306
  • Thank you received: 13700
  • MODERATOR
9 years 11 months ago #215625

The URL redirect of the configuration do work. It's just that it's not doing what you think it does.

The URL direct of the configuration will redirect automatically to there when the cart is empty and that you're trying to access the checkout.

If you want to have a link on the "cart is empty" message in order to redirect to that same URL, it's possible with a translation override of that text, as I explained in my previous message.

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

  • Posts: 220
  • Thank you received: 0
9 years 11 months ago #215909

My original code in translation is
CART_EMPTY=" 購物車是空的 <img src=' facianohair.com.tw/images/shopping-cart-icon.png'/ >""</http://facianohair.com.tw/%E7%B7%9A%E4%B8%8A%E8%A8%82%E8%B3%BC.html>

and it caused the whole login redirect to that link.
Now I changed to
CART_EMPTY=" 購物車是空的 <img src=' facianohair.com.tw/images/shopping-cart-icon.png'/ >"

and edit the configuration redirect, it doesn't work.

How can I change the code?

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

  • Posts: 84306
  • Thank you received: 13700
  • MODERATOR
9 years 11 months ago #215914

Hi,

That's wrong.
I suppose the translation override should be:

CART_EMPTY=" <a href='http://facianohair.com.tw/%E7%B7%9A%E4%B8%8A%E8%A8%82%E8%B3%BC.html'>購物車是空的 <img src='facianohair.com.tw/images/shopping-cart-icon.png'/></a>"

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

  • Posts: 220
  • Thank you received: 0
9 years 11 months ago #215984

oh Yes, that was how I did. The one I told you was I forgot and put you wrong.
We coded the one you wrote, and then the whole login form redirect to that same link. How can we fix it with the cart image?
Thanks Nicolas with your patience.

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

  • Posts: 84306
  • Thank you received: 13700
  • MODERATOR
9 years 11 months ago #216021

Please provide a screenshot of the translation override popup with that override, and a link to the page where you have the cart empty.

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

  • Posts: 220
  • Thank you received: 0
9 years 11 months ago #216088

I put in the original code instead of overwrite place, the result was what I said about.
Now I move to overwrite place, the cart image is gone.



Attachments:

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
9 years 11 months ago #216090

Hi,

You should try with a full URL for the image, like

<img src='http://facianohair.com.tw/images/shopping-cart-icon.png'/>
Otherwise, you specify just the relativ path
<img src='/images/shopping-cart-icon.png'/>
But your original url is not valid.

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.

Time to create page: 0.097 seconds
Powered by Kunena Forum