The addition of the quantity of goods to the product of the categ. does not work

  • Posts: 11
  • Thank you received: 0
6 years 4 months ago #294710

-- HikaShop version -- : 3.4
-- Joomla version -- : 3.8.8
-- PHP version -- : 5.6

Hi,

Please help me

The addition of the quantity of goods to the product of the category does not work.
On the product page it works.




Thank you

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
6 years 4 months ago #294715

Hello,

Without a link to your two pages I'm sorry but we won't be able to understand the issue and help you.

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: 11
  • Thank you received: 0
6 years 4 months ago #294721

Jerome wrote: Hello,

Without a link to your two pages I'm sorry but we won't be able to understand the issue and help you.

Regards,

here are links to pages:
vh59818.eurodir.ru/magnagr/zapchasti-dlya-spetstekhniki-katalog
vh59818.eurodir.ru/magnagr/zapchasti-dly...0-upornyj-podshipnik

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
6 years 4 months ago #294731

Hello,

It looks like you have a view override for "product / quantity" or "product / show_quantity" with a JS error.
HikaShop 3 do not use anymore the function "hikashopCheckQuantityChange" and in your case, the "min" and "max" parameter are not defined while they should be "0".
In the legacy cart system, we already have a patch to force these two parameters as integer if they are empty but in your website, that fixed error is still there.
So it means that you have an override for a old view, or a custom plugin with the error. But that issue is no more possible in HikaShop 3 and the new "add to cart" system.

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.
The following user(s) said Thank You: SergeyS

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

  • Posts: 11
  • Thank you received: 0
6 years 4 months ago #294779

Hi,

Yes, you are right, in the quiststart template there is a view override.
I changed the files, now everything works.

You helped me a lot. Thank you

There is another question.
I need the basket to display the weight of the goods and calculate the total weight as the total amount of the order.
There is already an override file for the cart.
What code and where should I add?

Last edit: 6 years 4 months ago by Jerome. Reason: removing full quote of previous message. Please just use "reply".

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
6 years 4 months ago #294797

Hi,

You'll have to have a PHP developer work on that for you.
He'll have to edit the file "cart" of the view "product" via the menu Display>Views in order to calculate and display the total weight on the HikaShop cart module. And for the cart view on the checkout, it's the file "show_block_cart" of the view "checkout".
And to use the total weight as the total amount of the cart/order, it will require the development of a plugin to use the weight of each product as its price (or configure the price of the product to be the same as its weight).

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

Time to create page: 0.061 seconds
Powered by Kunena Forum