add to wishlist is adding product to cart

  • Posts: 129
  • Thank you received: 0
  • Hikashop Business
7 months 2 weeks ago #270403

-- HikaShop version -- : 3.1.0
-- Joomla version -- : 3.7.2

hi, i got a weird problem and i appreciate if you could help me,

when i'm using the theme i'm developing add to wish list is adding the product to cart.
when i user Joomla default theme adding wishlist is not working.
when i turn off legacy add to cart add to cart and add to wish list is not working at all!

any idea?

Last Edit: 7 months 2 weeks ago by nic7071.

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

  • Posts: 21738
  • Thank you received: 3402
  • MODERATOR
7 months 2 weeks ago #270432

Hello,

You have two JS erros in your websites ; these two errors might have side effect on the Javascript and specially on the HikaShop javascript.
It could explain why the "add to cart" is not working with the new system.
Afterwards, the legacy system has not really changed between HikaShop 2.6 and HikaShop 3.x ; the goal of that legacy system is to provide the same interface and the same features so customisations made for HikaShop 2.6 would continue to work.

Now in your website, if I click on "add to wishlit", I do have a popup telling me that I need to be logged to use the wishlist.
So it tells me that HikaShop knows that the product should be added into the wishlist.

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: 129
  • Thank you received: 0
  • Hikashop Business
7 months 2 weeks ago #270447

hello Jerome,
Thanks for your reply, may i ask you to give me a hint of the js error or a clue on how to begin fixing them?
cause i cannot detect any of those errors you mentioned.

i really appreciate your help man!

P.S: if you are talking about Mootools js error in console i changed MooTools from HikaShop configuration and they're gone!
but the problem still exist! :-(

Last Edit: 7 months 2 weeks ago by nic7071.

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

  • Posts: 60468
  • Thank you received: 8524
  • MODERATOR
7 months 2 weeks ago #270461

Hi,

I'm not able to see the problem on your link.
When I click on the add to wishlist button, I'm getting an error that I need to be logged in to add the product to the wishlist.
And when I try to signup on your website, I get that error: تکمیل تمامی فیلد‌ها الزامیست.
and I don't know what to do for that.
Please provide a user account so that we can test.

Regarding the javscript errors on the page, I still see one error:
monosnap.com/file/LcLDjoz9puDXsR8bxtdSUDZUJk6q7B
As you can read, it comes from the module mod_hikashop_magicthumb which isn't developed by us.
Try deativating it and see if that helps.

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

  • Posts: 129
  • Thank you received: 0
  • Hikashop Business
7 months 2 weeks ago #270546

I've sent you the login in private message ;-)

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

  • Posts: 60468
  • Thank you received: 8524
  • MODERATOR
7 months 2 weeks ago #270589

Hi,

I don't really see the issue but I understand your problem:

When you click on the add to wishlist button, the system adds the product to the wishlist, not to the cart.
However, it redirects to the checkout instead of redirecting to the wishlist.
That's a bug of the legacy add to cart system which happens when the "Use AJAX when possible for add to cart buttons" setting is activated and that you don't have any cart/wishlist module displayed on the page.

So there are several ways you can try to solve your problem:
- You could turn off the add to cart legacy setting in order to use the new add to cart system as the new add to cart system doesn't have that issue. Note however that as the system is different, it might require modifying some view files based on what was customized.
- You could turn off the "Use AJAX when possible for add to cart buttons" setting.
- You could add the display of a wishlist module on the page.

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

  • Posts: 129
  • Thank you received: 0
  • Hikashop Business
7 months 2 weeks ago #270650

okay, Thanks Nicolas :-)

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

  • Posts: 67
  • Thank you received: 1
  • Hikashop Business
3 months 1 week ago #279987

Hello Nicolas,

I have the same problem. You can see and test it on my website: nicething.de/2017/index.php/de/schmuck-d...er-%C2%BBflash%C2%AB

I have tried different possibilities. Here my answers to your ideas for solving the problem:

- You could turn off the add to cart legacy setting in order to use the new add to cart system as the new add to cart system doesn't have that issue. Note however that as the system is different, it might require modifying some view files based on what was customized.
- - - Yes it works, but I want the popup window with the possibility to proceed or going forward to the cart. (After add the product to the wishlist for me its better to show only a notice, that the product is added to the wishlist.)

- You could turn off the "Use AJAX when possible for add to cart buttons" setting.
- - - No changes will be set on turn this.

- You could add the display of a wishlist module on the page.
- - - I've tried this with a additional wishlist module, but the popup (and the wrong popup) was shown.

It would be helpful for me, if the popup after add the product to the wishlist no appears and instead a message will shown that is added (like displayed the error messages).

Thank you for your ideas.
Jonas

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

  • Posts: 21738
  • Thank you received: 3402
  • MODERATOR
3 months 1 week ago #279988

Hello,

Yes it works, but I want the popup window with the possibility to proceed or going forward to the cart. (After add the product to the wishlist for me its better to show only a notice, that the product is added to the wishlist.)

So why not using that system and publish the "cart notify" plugin which is the new plugin for such cart notifications ?

www.hikashop.com/home/blog/367-hikashop-3-0-out.html#cart
www.hikashop.com/home/blog/357-hikashop-3-0-beta.html

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: 67
  • Thank you received: 1
  • Hikashop Business
3 months 1 week ago #280012

Hi Jerome,
ok, I understand the new system. And now I consult the plugin, where I could set modifications of the popup window. But I dislike - with the new technology - all my CSS is done. Why new CSS Selectors?
I want go the new way in the hope that the css no changes in the near future.

Thank you for your answer, regards,
Jonas

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

  • Posts: 21738
  • Thank you received: 3402
  • MODERATOR
3 months 1 week ago #280015

Hello,

The "why" is simple ; HikaShop 3 was a major release with major modifications and we needed to perform these kind of big modifications in the cart system to make it better in several ways.
The old popup was not flexible, not dynamic, not friendly, not customizable and not extensible.
The new system is using a plugin which allow you and anybody to create a new plugin for its own specifications.
Yes, the new plugin use "vex" popup system (which is now used in HikaShop for a long time) while the old system were using mootools popup (which is deprecated in Joomla for some time).

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.126 seconds
Powered by Kunena Forum