Issue with quantity select

  • Posts: 43
  • Thank you received: 0
8 years 1 week ago #255244

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.2
-- PHP version -- : 5.6

Hi,

I'm currently having issues with changing the product quantity when using the checkout or viewing the cart. When I place a new amount into the quantity box, the total price doesn't change or update. Clicking on the little refresh icon next to the input box only refreshes the whole page and doesn't update the products like it does on the demo site.

I've tried changing the Quantity input method in the configuration settings and that hasn't helped either. Would this be a PHP or javascript issue? or something else?

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
8 years 1 week ago #255288

Hi,

The problem is that you have twice the quantity input fields on the page:
take.ms/rF7FX
And because of that, when you click on refresh, it submits the checkout form with both input fields:
take.ms/ATuLP
And as the hidden one is after the one which is displayed, it overwrites its value.

There is however no such dl/dt second cart display in HikaShop by default. So either this has been added on your end, or it has been added by your template provider, probably in the file "cart" of the view "checkout".

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

  • Posts: 43
  • Thank you received: 0
8 years 1 week ago #255332

Thanks for finding that hidden bit of code. I've had a good look all over the website and can't find where the code is coming from. I've even downloaded a full copy of all the files on the server and manually searched through all the code in Dreamweaver but nothing. Where could this code be coming from? I've checked all of my overrides and template files with no luck.

Have you seen anything like this before or know where I should look?

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
8 years 1 week ago #255380

Hi,

As I said, it's probably coming from the file "cart" of the view "checkout".
The original file is located in components/com_hikashop/views/checkout/tmpl/cart.php but if the view file has been overridden, then it's coming from the file templates/YOUR_TEMPLATE/html/com_hikashop/checkout/cart.php

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

  • Posts: 43
  • Thank you received: 0
8 years 1 week ago #255442

nicolas wrote: As I said, it's probably coming from the file "cart" of the view "checkout".
The original file is located in components/com_hikashop/views/checkout/tmpl/cart.php but if the view file has been overridden, then it's coming from the file templates/YOUR_TEMPLATE/html/com_hikashop/checkout/cart.php


I don't have any overrides for that file and checked the original but couldn't find anything out of place. The only overrides I have are for the category listing_div & lisitng_title, and product listing_div.

I've also uploaded fresh copies of the core HikaShop files to the server over the top of the existing files to ensure that they are all the default core files and it still hasn't changed a thing. I've checked the database, the modules, everything and I can't find where this code is coming from.

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
8 years 1 week ago #255460

Hi,

Try with the default template of Joomla. If you have the same problem, then it comes from a plugin (probably from the group "system").
If you don't have the same problem, then it comes from the template (probably a view override).
That's the first thing to do if you don't know where that comes from.

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

  • Posts: 43
  • Thank you received: 0
8 years 1 week ago #255714

I changed the template like you said and everything started working again. So obviously it has to be something to do with the template that I'm using but I can't figure out what the cause is. I deleted the template override and tried HikaShop again but still no luck. Aside from the HTML directory is there any other locations in the template folder that store files for HikaShop?

If the template override isn't the issue then what could be causing this? Could this be caused by a javascript issue?

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

  • Posts: 12953
  • Thank you received: 1778
8 years 6 days ago #255742

Hello,

If you're still having some issues even if you have removed every template override, then the issue can be coming from multiple things like javascript issue, some module / plugins only used by your template..

The following user(s) said Thank You: wernejo

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

  • Posts: 43
  • Thank you received: 0
8 years 5 days ago #255877

Thanks for your help.

I found a bit of javascript in one of the template files that was creating the hidden DL tables.

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

Time to create page: 0.081 seconds
Powered by Kunena Forum