Characteristic in seperate column in checkout cart

  • Posts: 1115
  • Thank you received: 12
  • Hikashop Business
4 weeks 1 day ago #367860

-- HikaShop version -- : 6.0.0
-- Joomla version -- : 3.10.12

Hi!

When a product has characteristics, instead of showing the characteristic's product code at the checkout cart, is it possible to display a seperate column for it?
For example color, dimension etc to show next to the product name column.

Thank you

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

  • Posts: 84216
  • Thank you received: 13665
  • MODERATOR
4 weeks 1 day ago #367862

Hi,

There is no option for that. To do that, it would require modifications to be added to the checkout / show_block_cart view file via the menu Display>Views. A developer will be able to do that for you.

The following user(s) said Thank You: verzevoul

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

  • Posts: 1115
  • Thank you received: 12
  • Hikashop Business
2 weeks 2 days ago #368007

Hi,
Thanks for your answer.
Could you please indicate the snippet of code to work with in the checkout view (with the necessary objects)?
The specs for the checkout view:
Show “color” and “dimension” for products in the checkout view.
Show the custom fields "color" and "dimension" for parent products.
Show the characteristics "color" and "dimension" for variant products. If there is only one characteristic, then get the other value from a variant product custom field provided that it is not empty.
We really appreciate your help.

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

  • Posts: 84216
  • Thank you received: 13665
  • MODERATOR
2 weeks 2 days ago #368011

Hi,

I don't know what the code should be. It will require at least 20 lines of code. While I'm happy to provide snippets for a few lines of code when I know what needs to be done, this will require proper development. I would probably spend 1 or 2 hours of time to do it.
If you want me to work on it for you, that's possible, but I'll have to charge for the time spent.

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

  • Posts: 1115
  • Thank you received: 12
  • Hikashop Business
2 weeks 2 days ago #368014

Hi,
Sorry if that was unclear, we are going to develop the client's request.
We are just asking where to look in order to save time; which are the appropriate file(s) and specifically the code line(s) that build the existing checkout view.
Obviously we will need the product object to get the characteristics and custom fields. It would be much better-if possible-than using the db.
Thanks!

Last edit: 2 weeks 2 days ago by verzevoul.

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

  • Posts: 84216
  • Thank you received: 13665
  • MODERATOR
2 weeks 1 day ago #368016

Hi,

As I said in a previous message, you will have to modify the checkout / show_block_cart view file via the menu Display>Views for this.

In there, you have the product data in $cart->products
It might not contain all the data you need. So you might have to run some MySQL queries, not sure.
The product name header is displayed between the tags <!-- NAME HEADER --> and <!-- EO NAME HEADER -->
So you'll have to add similar code for each extra column title header.
Similarly, the product name is between the tags <!-- NAME --> and <!-- EO NAME -->
So you'll have to add extra td tags after it for each extra column with the corresponding value to be displayed.
It's just a normal HTML table with a header and rows and columns so it should be fairly easy. The hard part might be the loading of the data, if some data you need is not available in $cart->products.

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

Time to create page: 0.053 seconds
Powered by Kunena Forum