Hi there,

We use NewLifestyle for a new project. There is one issue:
When I add a product to the shopping cart, the cart remains empty until I navigate to a new page or refresh the browser. This means the Ajax code does not work. According to HikaShop this has to do with the template override. Any idea or experience with another user that had the problem in the past?

Thanks

Hi

What template version number are you using?

Cheers
Paul

Hi Paul,

good to see you back here! The number is: 2.0.7

thanks

Hi 🙂

Can you add ftp and joomla admin details

Cheers
Paul

Sure: Can I add them here or are they then public?
thanks

If possible can I download a backup of the site? - do you have akeeba backup installed?

Would you also be able to add a link in the secure details pointing to the hiksahop version you are using?

Cheers
Paul

Hi there,

just added the details in the box. Hikashop version is latest. Backup is no problem. Do you need an upload of it? If so, where can I upload it?

Thanks

Hi

I managed to get hold of a copy and I've downloaded a copy of the site

What component or plugin or code is redirecting the site?
As I can't get the backup to work - I can see you have sh404sef - I have disabled this extension via the database and turned off htaccess / checked config.php

Is there anything else? I can see lots of stuff in the site

Cheers
Paul

I need to see your site as my local quickstart version does work with the hikashop latest version so need to compare yours with mine so see what configuration differences you have

Cheers
Paul

Hi Paul
thanks a lot. Let me know what you need from our side. SH404 is installed but not activated at the moment as it did not deliver the result with HikaShop. Joomla SEF is turned on and I think there is a forced www. coming from htaccess (+maybe the certificate forcing https).

Anything else I can help you with?

thanks

I have turned off all the sef urls which seems to have done the trick

Where is the alert coming from when a product is added?

At the moment if I add a product and then navigate to a different page the cart is new populated

Cheers
Paul

Thanks. But this is not exactly what I meant. The problem is after I populate the cart.

1) I do "add to cart" ->
2) I see the pop-up telling me that product has been added to the cart
3) But when I then click on the cart item it tells me it is empty. Only after a browser refresh it shows me the product I added to the cart. Hikashop says this comes from the template.

best regards

    MaMuster 2) I see the pop-up telling me that product has been added to the cart

    Yes this is what I don't have on my localhost version

    On my local version

    1) works
    2) no pop up but it does add to the cart
    3) I don't need to refresh as the cart populates as expected

    I'm not a regular user of hikashop - I have the same version as you installed to a quickstart and I want to replicate your pop up on my install

    Can you tell me to how to do this? As at the moment the template is working as expected but I've not your pop up enabled

    Thanks for your message. I try my best.
    To my best knowledge the pop-up is part of the new cart system introduced in HKS 3.0 (see here: https://www.hikashop.com/home/blog/367-hikashop-3-0-out.html#cart) It works via a plugin. But we did not pay much attention to it as it worked out of the box like this. What we did was turning off the legacy mode for the shopping cart.

    Writing this I wonder if it might be a plugin order issues with template code and plugin code?

    thanks

    Thanks for the info I will test this over the weekend and see if I can re-produce the problem

    Cheers
    Paul

    4 days later

    Hi there, could you replicate the issue. During the weekend I also tried it with the legacy cart settings. It works a bit better, but the cart is also inconsistent.

    thanks a lot

    Sorry yes thanks for the prod

    Disabling the legacy options breaks the cart layout - re-enabling them and the cart is back working

    I'll need to talk to the developers on this and get back to you

    Cheers
    Paul

    I've made a bug report and will talk to the developers when they are online

    When I hear I will get back to you

    Cheers
    Paul

    7 days later

    Hi there,

    how are you? Did you get an update from the developers?

    thanks a lot

    We have an update for the template but we haven't released it yet - not 100% why
    Will need to check on monday

    sorry for the delay

    Cheers
    Paul

    Thanks a lot! Where can I check for the release. Will the update show up in the backend?

    Thanks again!

      At the moment it is still being reviewed so it isn't available for download at the moment

      Do you need the file as soon as possible?

      Thanks for your patience on this

      Cheers
      Paul

      MaMuster

      Hi,

      You can take a full BACKUP of your site and try with this tweak:
      1. Download attached file & Unzip
      2. Copy associated file to corresponding directory:

      root/templates/newlifestyle/html/com_hikashop/product/cart.php
      root/templates/newlifestyle/html/com_hikashop/product/show_default.php

      1. Go to file: root/templates/newlifestyle/css/themes/bamboo/template.css

      Add this rule:

      #hikashop_cart_module .hikashop_cart {
        text-align: right;
      }
      #hikashop_cart_module .hikashop_small_cart_clean_link img {
        margin-bottom: 5px;
      }
      fix-cart.zip
      8kB
      5 days later

      Thanks a lot. The fix works.

      We noticed two issues related to it:

      1) The link to the checkout cannot be clicked in the shopping basket. When I go on the basket icon, and click on it, the pop down opens and shows the price. When I click on the price I would expect to go to the checkout, but the pop-up adds more information like the product name etc. When I right click -> link in new window on the price the checkout opens, but not without the right click.

      2) price of shipping method without VAT
      I am not sure if this comes form the template, so I want to double check. The standard shipping method shows the shipping price without VAT despite having it activated in the Plug-In.
      Can you confirm that this is from the template/not from the template?

      Thanks a lot!

      I'll ask the developer to check

      Thanks
      Paul

      The developer says it is working on his site

      Have you made any more configuration changes to your site since I took a backup?

      Thanks
      Paul

      Hi there,
      thanks for your message. Not that I know of.
      Just to make sure - I just installed the fix, no final update.

      best regards

        Thanks. I checked it, it works. Maybe leave out the second information after the URL which is one of the username options.

        The info works now, let me check and will get back to you.

        Could you identify the possible cause?

        Thanks a lot

        5 days later

        Hi there,

        concerning issue 1) I think it is some javascript that prevents the link (you see that the link is there to be opened next in the browser left below) to be opened and instead the cart is extended.

        Could you look into it?

        thanks

        14 days later

        Hi there, any updates on this issue?

        Thanks a lot!

        sorry about this I'll ask

        apologies for the delay

        Cheers
        Paul

        7 days later
        8 days later

        I'm really sorry this is still outstanding

        I've added it to our urgent issues for developers to look at

        8 days later
        You need to Login to view replies.