- Posts: 42
- Thank you received: 0
Product characteristics in a table
Thanks
Please Log in or Create an account to join the conversation.
You need to edit the file different show* files of the view product for your template via the menu Display->Views and change the HTML code and move the different blocks of code around in order to make it look like that.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
.hikashop_product_characteristics_table tr{
border-bottom: 1px black solid;
display: block;
}
Please Log in or Create an account to join the conversation.
What I'm trying to do is adding some custom information for each product, from a table in the editor of product page (as shown in attachment), that will automatically be inserted on the top of the product's hikashop_product_characteristics_table. Is there a way to do this?? I only managed to add the class to the table from the html view of the editor...
And also how can I make the price on each product page appear in the last row of that characteristics table?
Thank you in advance!
Please Log in or Create an account to join the conversation.
However, if you only want to have a piece of the description there and the rest at the bottom, that's not possible.
The easiest is to create a new custom field of the table "product" via the menu Display->Custom fields (commercial editions) and displayed on the front end. That will allow you to enter additional information about the product that will go automatically where you need it.
Please Log in or Create an account to join the conversation.
I thought of creating them as characteristics with one variant and when this will be the case, no dropdown will be shown..
Any suggestions?
Thanks!
Please Log in or Create an account to join the conversation.
So that's what you want to do. And so yes, it is feasible.
Please Log in or Create an account to join the conversation.
I have created new custom fields of the table "product" and I can add the information I need for each product from the back-end. I´ve tried that before but obviously I was doing sth wrong..
What I´ve managed to do now is shown in the attachment. Can you please help me now on how to make these custom fields appear in the same table on top of the characteristics? And if it´s possible to show the price in the last row of this table instead of standing alone above it?
Thanks a lot!
Please Log in or Create an account to join the conversation.
There, move the code
For the price, you will have to remove the code
Please Log in or Create an account to join the conversation.
One more question.. How can I use different class for only that price? Because if I edit the class of hikashop_product_price, the style of the price in the cart also changes..
Thank you again Nicolas.
Please Log in or Create an account to join the conversation.
Thanks
Please Log in or Create an account to join the conversation.
For the price, you just need to use some different CSS.
Instead of :
.hikashop_product_price{ color:blue;}
you can do:
.hikashop_product_page .hikashop_product_price{ color:blue;}
Please Log in or Create an account to join the conversation.
Help please!
Thanks..
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
The modified file is as below.
Thanks
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
The problem is that when selecting another variant, all the information for that variant change normally but not the price.
If you could help me find a solution on this it would be much appreciated! So that you will not have to answer to another post on this subject as it`s gone too far.
I am also messaging you the link to view the issue.
I look forward for your reply to solve this!
Thanks a lot.
Please Log in or Create an account to join the conversation.