New products are not added to cart

  • Posts: 228
  • Thank you received: 8
10 years 8 months ago #184539

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

Hi,

I'm building a new site and encountered a problem I could not solve.
The site is abased on a purchased template which came with demo content. I've added some categories ans products of my own and when I try to add them to the cart it looks like it worked but the cart stays empty. Item that where there in the demo content can be added to the cart easily.

What am I missing here??? :unsure:

Thanks in advance for any help.

Guy.

Last edit: 10 years 8 months ago by theguy.

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

  • Posts: 2143
  • Thank you received: 747
10 years 8 months ago #184542

Hi, me again... ;)

First, "latest" as HikaShop version might be true or not, especially these days when 2.3.5 was just released. Not to mention that it won't help anyone else looking this up later. So, thanks for a "correction" there.

Then, and this is surely meant seriously and definitely not sarcastically or so:
With some products showing up in the cart (demo content) and some not ("yours"), you may want take a second look again ;) and compare:

  • What's the message when adding either products to the cart?
  • What's the difference regarding key parameters in between demo and "your" products?

Obviously, there is at least one essential difference... maybe leading to a quantity limit being reached, or so. Try to replicate the parameters of a working demo product in one of yours, and see if it works. For the "learning process", eventually do so one parameter at the time, so you'd know which one was the culprit.


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

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

  • Posts: 228
  • Thank you received: 8
10 years 8 months ago #184544

Hi again and thank you again,

I did exactly as you suggested. Looked into the "demo" products and compared them to my products. Could not find any difference. Added everything accordingly but no luck. It's very weird though, in some cases, I could add my products to the cart. Most tries did not work but every once in a while I can my new products. Tried to access them from different menu items but that's not it. Can't seem to put my finger on it...

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

  • Posts: 2143
  • Thank you received: 747
10 years 8 months ago #184549

If you're absolutely sure that there is not a single difference in between demo and your products, e.g. by exactly reproducing all demo product parameters and listing settings, incl making sure that there is no other content such as additional modules on your product (listing) pages than on the demo pages, I'd say it's logically not possible that one product behaves differently from the other.

Sorry, unless a tiny detail was overlooked, I don't think this mystery can be solved without access to at least the frontend of your site, better also backend, or going with you through a very lengthy step-by-step check of all parameters and possibilities.


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
Last edit: 10 years 8 months ago by lousyfool. Reason: typo

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

  • Posts: 228
  • Thank you received: 8
10 years 8 months ago #184554

O.k. I've noticed it's not restricted to only new products and sometimes the demo content has the same issue.
This is the link to the English site with only demo content. link

The problem can happen in the same product page seconds after the first success. I think it could be JS related issue.
Just checked the demo site of the template. Same issue!!! Contacted the template provider.

Last edit: 10 years 8 months ago by theguy.

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

  • Posts: 2143
  • Thank you received: 747
10 years 8 months ago #184560

Been playing around with your site by adding different products to cart, deleting them again, etc, particularly products with ID 1 and 55. Everything works fine. The only difference is that, after adding product #55 to the cart, it takes a page refresh for the item to show in the (mini) cart accessible via icon in the upper left corner. But the cart is indeed not empty.

Could it be that you're using "special characters" in the product alias, e.g. Hebrew for product #55, possibly by aliases being created automatically? I'm guessing so from seeing the product names, and the URL of the product page being only "yoursite.xyz/index.php/en/shop/product/55-". Possibly the script can't deal well with it. Try to make the alias using standard alphanumerical instead (not beginning with a number!), and see if the cart behaviour for these products improves?


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
The following user(s) said Thank You: theguy

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

  • Posts: 228
  • Thank you received: 8
10 years 8 months ago #184565

I'm not sure how it is you didn't encounter the issue. The problem is a get method that returns a blank link on some of the pages (see attached image).

I thought it had something to do with the Hebrew aliases but I've never encountered any issues with Hikashop a UTF-8.
Tried to move the item to another category with only English url but got the same result:
Original (Hebrew) - fitin.guywalderonline.com/index.php/he/%...roduct/53-aqua-tucan

New (English) - fitin.guywalderonline.com/index.php/en/s...roduct/53-aqua-tucan

I think I'll have to wait for the template developers for this one...

Attachments:

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 8 months ago #184576

Hi,

On the two links you gave, I see the same problem as @lousyfool described:
When I add the product to the cart on the english page, it works fine. Product is added and I can go to the checkout etc.
When I add the product to the cart on the hebrew page, it doesn't work. The product is not added.
That also leads me to believe that there is something with the SEF and the fact that you have special characters in the URL on the hebrew links.
So I would recommend to see if turning off the unicode slug option of the Joomla configuration would help.

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

  • Posts: 228
  • Thank you received: 8
10 years 8 months ago #184617

Hi Nicolas,

This is the third site I've been using Hikashop for a Hebrew site and never encountered this kind of issue. But. just to make sure I've made the following test:

1. I took one of the English demo products that usually gets easily added to the cart, duplicated it and assigned it only to a Hebrew category. The item can be added to the cart -> fitin.guywalderonline.com/index.php/he/%...9/product/56-make-up

2. I've created a new item and assigned it to an English category only. The item did not show up in the cart but only after I've refreshed the page -> fitin.guywalderonline.com/index.php/en/s...hort/product/61-test

3. Turned off Unicode Aliases with no effect.

I did notice that in some cases the product is added to the cart but shows up in the cart only much later. The problem seems to be with the new items but if you give it a couple more tries you'll see that the English items (both new and old) have the same problem but much less frequent. Then I've found out that with the English items, if the item is not added to the cart, refreshing the page will show the item.

I find it hard to believe it's a Hebrew chars issue because I did manage to add Hebrew items to the cart but only after many attempts. In addition, there's the "Make up 2" item that is under Hebrew URL and all seems to work fine...

Last edit: 10 years 8 months ago by theguy.

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 8 months ago #184665

Hi,

The fact that the item only shows in the cart after you refresh the cart is because the cart module customization of your template doesn't support having the "Use AJAX when possible for add to cart buttons" option activated.
If you turn it off, you won't get that issue.
But it doesn't explain why the problem is not added in the cart when you add it from that link:
fitin.guywalderonline.com/index.php/he/%...roduct/53-aqua-tucan
Could you try again with the "Use AJAX when possible for add to cart buttons" option turned off and the "error reporting" and debug mode options of the Joomla configuration activated ? Do you get any error for that product when you add it to the cart ?

The following user(s) said Thank You: theguy

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

  • Posts: 228
  • Thank you received: 8
10 years 8 months ago #184717

Hi Nicolas,

That was it. Now both Hebrew and English items are being added to the cart with no problem.
I've reported this issue to the developers.

Thank you so much :)

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

Time to create page: 0.084 seconds
Powered by Kunena Forum