Add to cart and Qty for each displayed product

  • Posts: 135
  • Thank you received: 5
3 years 2 weeks ago #339683

-- HikaShop version -- : 4.4.5
-- Joomla version -- : 4.1.0
-- PHP version -- : 7.4.28
-- Browser(s) name and version -- : Brave Version 1.35.103 Chromium: 98.0.4758.102 (Official Build) (64-bit)

How do I get the product to display the add to cart and qty set at 1 for each product displayed.

Please look at the link or attachment.

Thanks
M

Attachments:

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

  • Posts: 83402
  • Thank you received: 13495
  • MODERATOR
3 years 2 weeks ago #339684

Hi,

There are two things.
First, you need to edit your menu item via the Joomla menu manager. There, under the "products options" tab, you need to activate the "add to cart button" display setting.
After doing that, you'll see that you get an extra button for each product on that listing.
However, you'll see it's not "add to cart" but "choose options" because your products on that page all have a characteristic and characteristics can't be selected on the listing.
So either:
- you leave it like that, but the "product details" and "choose options" buttons are redundant so you probably want to turn off the display of one or the other.
- you remove the characteristic from each product and you duplicate the products. For example for the product "ZLS1-End Cap-50A-01(RIGHT)-(1 Required )" you have a characteristic for the color with three choices. So you would remove that color characteristic, and duplicate that product to have one product for each color.
- you remove the characteristic from each product and instead you create custom fields of the table "item" and of the type "single dropdown". That way, you can achieve the same selection dropdown as characteristics. However, if you activate the display of custom item fields in the settings of your menu item, you'll have the "add to cart" and the custom item field selector on the listing instead of the "choose options" button.
And regarding the quantity input field, you can have it appear on the listing with its corresponding display option in the same area under the "products options" tab of the menu item in the joomla menu manager.

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

  • Posts: 135
  • Thank you received: 5
3 years 2 weeks ago #339704

Thank you Nicolas,

Great support as usual.

I have gone with your option of creating each product with the colour as I will need to create separate SUKS I have been advised.

I have two other questions, would you like me to create two more topics?

1. Getting a custom field shown on the shipping / invoice order.
2. Being able to select a productive (eg. x-white, x-black or x-grey) and having all the characteristics set to that value (white if x-white selected as main product).

Sorry to be a pest :)

M

Last edit: 3 years 2 weeks ago by markfell.

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

  • Posts: 83402
  • Thank you received: 13495
  • MODERATOR
3 years 2 weeks ago #339708

Hi,

1. Well it depends on the "table" of the custom field.
If it's an "item", or "product", or "order" custom field, there are directly display settings in the options page of the custom field in the Display>Custom fields menu.
If it's an "address" custom field, you need to add the corresponding tag in the "address format" setting of the Hikashop configuration.
If it's a "user" custom field, you need to edit the order / invoice view file via the menu Display>Views to add custom code for it.

2. I'm sorry but I don't understand what you mean. I guess I'll need more information on the situation and what you're trying to do.

I would recommend opening new threads. You can always add a link to another thread for reference.

The following user(s) said Thank You: markfell

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

  • Posts: 135
  • Thank you received: 5
3 years 2 weeks ago #339755

Hi Nicolas,

Thank you for you great support as usual.

I have attached the screen shots.

The Box is a custom field to "item" and you can see the display settings.

The Order and the box number set to the Item.

The Shipping invoice and no box number seen.

Hope this makes sense.

I will do another thread for the setting of characteristics.

Attachments:

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

  • Posts: 83402
  • Thank you received: 13495
  • MODERATOR
3 years 2 weeks ago #339760

Hi,

That's strange. With the "frontend" setting turned off the custom field shouldn't appear on the product details page on the frontend and thus you shouldn't be able to enter a value for that custom field.
Also, if a value is entered for the product in the cart / order, it should appear on the shipping invoice. That is unless you have an old view override of the order / invoice view file which doesn't support these display settings.
Also, your screenshot shows the custom item field value for the options of the main product. This won't display. Only the value of the custom item fields of the main products will appear on the invoice.

The following user(s) said Thank You: markfell

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

  • Posts: 135
  • Thank you received: 5
3 years 1 week ago #339802

Nicolas,

Thank you, all sorted, I have created a new order and the items custom fields are seen in the shipping invoice :)
So now I'm all good for the time being!

Thanks,
Mark

Attachments:
Last edit: 3 years 1 week ago by nicolas.
The following user(s) said Thank You: nicolas

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

Time to create page: 0.067 seconds
Powered by Kunena Forum