Multiple problems with Hikashop

  • Posts: 63
  • Thank you received: 1
  • Hikashop Essential
10 years 9 months ago #182605

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6

I have just been trying to troubleshoot multiple problems with Hikashop in the last few hours and this has been an exercise in frustration.

First, I am trying to display the original price, crossed out, for discounted products, but this isn't working, even though I have selected the option 'display the price before the discount is applied' under System/Configuration/Display. Despite this, the price for discounted items continues to be displayed $-249.01$149.98 instead of $399.00 $149.98

See here:
www.catholicsforisrael.com/en/bible-cour...nline-course-english

Second, I'm not able to login to Hikashop from the frontend. I'm confused as to the relationship between Joomla login and Hikashop login. On this page:
www.catholicsforisrael.com/en/bible-course/shop/checkout/

If I try to login as an existing Joomla user at checkout, I just get the message "Login or create a new account". If I try to create a new account, Hikashop logs me into an existing Joomla account but returns to the "login or create a new account" form, and doesn't display any checkout button. Totally frustrating.

I have tried enabling and disabling the "HikaShop user synchronization plugin" but I can't find any adequate documentation that explains how this works or what it's supposed to do.

For example: I have an existing Joomla account called "Alex".
I can't login to Alex from the Hikashop checkout (message: Login or create a new account; no checkout button)
If I try to create a new Alex account from the Hikashop checkout, it logs me on to the Joomla Alex account (but I get the same message: Login or create a new account; still no checkout button)
If I try to create a totally new account (e.g. 'Alan'), it STILL logs me on to Alex, with the same message and still no checkout button.

Totally frustrating and annoying. Grateful for any help,

Last edit: 10 years 9 months ago by jazzbird.

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

  • Posts: 84304
  • Thank you received: 13699
  • MODERATOR
10 years 9 months ago #182638

Hi,

1. The setting in the configuration is the default setting. For each products listing menu/module, you have a similar option which can override the default setting and that you can find when you edit the menu/module via the menu Display>Content menus/modules.
On your link, it's the menu with the id 121 that you use so just edit that menu via the menu Display>Content menus and change the option there.

2. The "HikaShop user synchronization plugin" plugin should always be enabled so make sure that this is the case.
What you're describing sounds as if you were trying to login/register with a user account that had been created while that plugin was turned off and thus the user was not synchronized between HikaShop and Joomla.
Run the query below via phpmyadmin in order to force the synchornization of the users (make sure that you change the #__ with the prefix of your tables):
INSERT IGNORE INTO `#__hikashop_user` (`user_email`,`user_cms_id`) SELECT `email`, `id` FROM `#__users`;
You should then be able to login with the Joomla users and be seen as logged in by HikaShop too.

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

  • Posts: 63
  • Thank you received: 1
  • Hikashop Essential
10 years 9 months ago #182680

Thanks for your prompt answer.

1) worked. Thank you.

2) didn't work. I ran the query but it made no difference. When I am on the Hikashop checkout page ( www.catholicsforisrael.com/en/bible-cour...checkout/step/step-0 ) and I try to login there, this logs me on to Joomla but not to Hikashop. I keep getting the message "Login or create an account" and there is no checkout button so that I can't finalize the order.

In addition, I have tried to create a new user. I received an account activation email. I clicked on the activation link, and this gave me the error message:

unused
The server encountered an internal error or misconfiguration and was unable to complete your request.

This is the activation link that doesn't work: www.catholicsforisrael.com/index.php?opt...354&Itemid=121&lang=

This is really getting annoying. Thanks for further help.

Last edit: 10 years 9 months ago by jazzbird.

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

  • Posts: 84304
  • Thank you received: 13699
  • MODERATOR
10 years 9 months ago #182831

Hi,

Could you provide a backend access so that we could check your Hikashop/Joomla settings ?
You can do that via our contact form:
www.hikashop.com/support/contact-us.html
Please make sure that you provide a link to this thread.

The following user(s) said Thank You: jazzbird

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

  • Posts: 63
  • Thank you received: 1
  • Hikashop Essential
10 years 9 months ago #182832

Sure, I just sent you the information via your contact form.
Thanks again.

Last edit: 10 years 9 months ago by jazzbird.

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

  • Posts: 84304
  • Thank you received: 13699
  • MODERATOR
10 years 9 months ago #182875

Hi

One big problem you have is that you have some caching activated on your website which prevents you from seeing updated pages on the shop when something changes (new products in the cart, user logging in, etc).
Make sure that all the cache is deactivated and that should help.
Also, you can try to change the "session handler" option of the Joomla configuration and see if that helps.

Regarding the error with the activation link:
You should look for the error message in the PHP error log file of your web server as the error message says so that you can get actually the real PHP error message which would help us understand why it does that on your website.
Also, if you don't want any activation, you can turn it off in the options of the Joomla user manager. That will circumvent the problem.

The following user(s) said Thank You: jazzbird

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

  • Posts: 63
  • Thank you received: 1
  • Hikashop Essential
10 years 9 months ago #183152

Thanks.

I don't get it: isn't the cache a standard and almost essential feature for a Joomla website? I would need to deactivate the cache on the entire website for Hikashop to function properly?

Regarding the activation link error: The error only occurs when I try to create an account via the Hikashop checkout page. If I create an account from Joomla registration page, there is no problem.

Here is what I got from the error log file:
[Fri Dec 12 20:26:44 2014] [error] [client 75.70.202.240] ModSecurity: Access denied with code 418 (phase 2). Matched phrase "passwd" at ARGS:infos. [line "253"] [id "1990070"] [hostname "www.catholicsforisrael.com"] [uri "/index.php"] [unique_id "VIvABEWjgHIAAE73d3MAAAAE"][file "/dh/apache2/template/etc/mod_sec2/99_dreamhost_rules.conf"] [line "253"] [id "1990070"] [hostname " www.catholicsforisrael.com "] [uri "/index.php"] [unique_id "VIvABEWjgHIAAE73d3MAAAAE"]

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

  • Posts: 84304
  • Thank you received: 13699
  • MODERATOR
10 years 9 months ago #183180

Hi,

1. The cache is indeed a standard feature of Joomla but it is very limited. You need to understand that a cart system allows your customers to add products to their cart and thus, the cart system has to display dynamic information about the cart on each page (i.e. if you add a product to the cart, the cart module on the different pages or the checkout pages need to reflect the change). But if cache the pages on your website, the cart system won't be called by joomla to refresh the data displayed on the pages. Thus, you think that the cart system is broken while the problem is a logical issue: you cannot have caching on a cart system.
And the cache system of Joomla doesn't offer any granularity to allow a cart system to isolate itself from the cache system. So you have two solutions here (and it's not related to HikaShop, but you would have the same issue with any Joomla cart system):
- You turn off the Joomla cache.
- You use a more fine grained caching system like jot cache ( extensions.joomla.org/extensions/core-en...formance/cache/13155 ) which allows you to select what you want to cache and what you don't want to cache on your website.

2. The error message you provided comes from the access log of apache and not the php error log of your web server, and has no link to the activation issue as far as I can see. Could you please check the correct log of your web server ?

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

  • Posts: 63
  • Thank you received: 1
  • Hikashop Essential
10 years 8 months ago #183616

Thanks.

1, I do use Jot Cache and I have tried to exclude Hikashop from it. I'll see if this improves the situation.

2. I'm not sure where the php error log of the server (Dreamhost) is. I thought this was what I sent you. I'll see if I can find something else.

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

  • Posts: 84304
  • Thank you received: 13699
  • MODERATOR
10 years 8 months ago #183619

As far as I know, if you have dreamhost, you need to activate the PHP error log as explained in their wiki:
wiki.dreamhost.com/index.php/PHP.ini#Error_Logging
When you do that, you can specify where you want the logs to be stored so that you can then do the test again in order to get the error in the log and finally retrieve the log file.

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

  • Posts: 63
  • Thank you received: 1
  • Hikashop Essential
10 years 8 months ago #183876

Ok thanks. I was able to activate the error log, so I'll look into it the next few days to see what's going on there.

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

  • Posts: 112
  • Thank you received: 3
10 years 2 months ago #206070

Is there a way to use MRP pricing on the product display page and have it crossed out? If not, how do you recommend handling a "standard" or MRP price with the cross out and the actual price of the product?

Suggested Retail: $499.99
Our Price: $399.99

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

  • Posts: 84304
  • Thank you received: 13699
  • MODERATOR
10 years 2 months ago #206107

Hi,

When you edit a product, you'll find a "retail price" field where you can enter the MRP price.
The MRP price won't be crossed out by default, but it can be added with some simple CSS code you can add on your website:
.hikashop_product_msrp_price .hikashop_product_price{
text-decoration: line-through;
}

The following user(s) said Thank You: tbroderick

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

Time to create page: 0.082 seconds
Powered by Kunena Forum