Display characteristics with price together in table form

  • Posts: 56
  • Thank you received: 1
10 months 4 weeks ago #351845

Is it possible to display the quantity characteristics with price together in table form as in the reference pic? Currently have use the list form, but still different from the form that would like to achieve

Attachments:

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

  • Posts: 4502
  • Thank you received: 610
  • MODERATOR
10 months 4 weeks ago #351847

Hello,

If your variant have their own prices define in the product form, variant tab, you must see your variant prices like show on my screenshot :



Can you confirm that you didn't have set prices for each of your variants?
Regards

Last edit: 10 months 4 weeks ago by Philip.

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

  • Posts: 56
  • Thank you received: 1
10 months 4 weeks ago #351854

Have set prices for each variant, but did not display the price in the table.

Attachments:

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

  • Posts: 56
  • Thank you received: 1
10 months 4 weeks ago #351858

Or is there any way to display the unit price and total price for each quantity variant?

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

  • Posts: 81480
  • Thank you received: 13062
  • MODERATOR
10 months 4 weeks ago #351856

Hi,

In the HikaShop onfiguration, under the "Display" tab, please check that the "Display price" setting is turned on. Otherwise, the prices column won't appear there.
Also, it could happen if you set some restrictions in the prices, like a special "access" or an end date in the past.

Now, it's always possible to add extra columns in that table by editing the file product / show_block_characteristic via the menu Display>Views. But it requires some coding skills.

Last edit: 10 months 4 weeks ago by nicolas.

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

  • Posts: 56
  • Thank you received: 1
10 months 2 weeks ago #352041

Currently have make it display price. Another issue is currently the add to cart is showing next to each variant like this.



Is it possible to do in this way or any similar way? by selecting the variant row to add to cart

Attachments:

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

  • Posts: 81480
  • Thank you received: 13062
  • MODERATOR
10 months 2 weeks ago #352042

Hi,

If you change the "Add to cart on listings" setting to "global" in the HikaShop configuration, you can get one global add to cart button at the bottom of the variants list.
Then, with a bit of javascript customization in the product / show_block_characteristic view file, you can make it so that when the customer clicks on a row of the table, it adds a specific class to the row and set its quantity to 1 and the quantity of the others to 0, and then with some CSS customization, you can have the row with the specific class stand out as selected, and hide the quantity input field column from the view of the user. A bit of PHP customization there would also allow you to add the price per unit column in that same view file.
So it's possible but it will require a bit of custom development by a developer to do this.

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

Time to create page: 0.086 seconds
Powered by Kunena Forum