- Posts: 11
- Thank you received: 0
The addition of the quantity of goods to the product of the categ. does not work
8 years 4 months ago #294710
by SergeyS
The addition of the quantity of goods to the product of the categ. does not work was created by SergeyS
-- 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.
image missing https://content.screencast.com/users/LineProsperity/folders/Jing/media/edddfea3-292f-41f7-aadb-563ece731179/2018-06-30_0537.png
image missing https://content.screencast.com/users/LineProsperity/folders/Jing/media/4628187a-27c7-493b-b266-08a741ab3a9b/2018-06-30_0513.png
Thank you
-- 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.
image missing https://content.screencast.com/users/LineProsperity/folders/Jing/media/edddfea3-292f-41f7-aadb-563ece731179/2018-06-30_0537.png
image missing https://content.screencast.com/users/LineProsperity/folders/Jing/media/4628187a-27c7-493b-b266-08a741ab3a9b/2018-06-30_0513.png
Thank you
Please Log in or Create an account to join the conversation.
8 years 4 months ago #294715
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic The addition of the quantity of goods to the product of the categ. does not work
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,
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.
Please Log in or Create an account to join the conversation.
8 years 4 months ago #294721
by SergeyS
vh59818.eurodir.ru/magnagr/zapchasti-dlya-spetstekhniki-katalog
vh59818.eurodir.ru/magnagr/zapchasti-dly...0-upornyj-podshipnik
Replied by SergeyS on topic The addition of the quantity of goods to the product of the categ. does not work
here are links to pages: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,
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.
8 years 4 months ago #294731
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic The addition of the quantity of goods to the product of the categ. does not work
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,
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.
The following user(s) said Thank You: SergeyS
Please Log in or Create an account to join the conversation.
8 years 4 months ago - 8 years 4 months ago #294779
by SergeyS
Replied by SergeyS on topic The addition of the quantity of goods to the product of the categ. does not work
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?
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: 8 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.
8 years 4 months ago #294797
by nicolas
Replied by nicolas on topic The addition of the quantity of goods to the product of the categ. does not work
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).
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: 2.260 seconds