Custom Product Table

  • Posts: 260
  • Thank you received: 25
11 years 10 months ago #84314

Hi all,

I am wondering if it is possible to create a custom product table similar to the I have created on this page. (Marked in red 'Here >>')
geneva.directrouter.com/~magnetgr/counte...unk-d16mm-x-5mm.html

Basically I want a display below the product div display that shows a table display using Product Code and several Custom Fields.

I am able to show a Hikashop Content Module but is displays as it does for my other product_table displays.

Would something like I am want take a lot of customization (and am I better off had coding like I have on the example given )


Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'
Last edit: 11 years 10 months ago by sambob.

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

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
11 years 10 months ago #84418

Hi,

So you want a special custom field which would allow you to enter values to create the table with:
"ModelNo. | DØ | D1Ø | M | H | Holding force(kg) | Weight (g)"

It is something which could be done thanks to "plugin custom fields". A "plugin custom field" is an HikaShop plugin which allow to create new custom field type.
The plugin would display his own information in the product editing and in the product page. The plugin as to serialize his data into one field in the database but it is possible to store them into an external table (but would be a little bit more complicated to develop).

Creating a "plugin custom field" require good PHP skills but we could provide some developer documentation.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 260
  • Thank you received: 25
11 years 10 months ago #84432

Morning Jerome, Thanks for your reply (appreciate it)

That sound like what I am wanting.

And to clarify, the data is already in the product as Custom Fileds


Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

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

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
11 years 10 months ago #84449

Hi,

And how does the data is stored in the database ? Do you store the HTML content ?

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 260
  • Thank you received: 25
11 years 10 months ago #84457

Hi again Jerome,

Just to clarify... that info is stored in Custom Fields (product)

It may not be possible though as I would want the product that is being displayed (Product div) to be highlighted in the product table.

I think I will need to hardcode them to do that...

Any thoughts...


Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

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

  • Posts: 82817
  • Thank you received: 13357
  • MODERATOR
11 years 10 months ago #85190

Hi,

I'm still not clear on what you want to do.

Here is what I understand ?
You have a product A and several other products B, C, D, etc.
You want that on the product page of the product A, display a table of the products B, C, D with the product code and some custom field values of these products.
In that case, you should have these B, C, D, ... products added related products of product A and have a products listing module created to display the related products of your product and have that module added as a "module under the product page".
The procedure is explained there:
www.hikashop.com/en/support/documentatio...ct-form.html#related

Then, all that's left is to customize the listing_table view file via the menu display->Views in order to display your products with there custom fields.

As you say, you use the same table view on the products listings so you will need to add some kind of condition to use one display for that module and the other in other cases.
The check is quite easy:
if(@$_GET=='product' && @$_GET=='show'){
//display on the product page
}else{
//display elsewhere
}

To display the value of a custom field of a product of your products listing module in the listing_table view it's quite easy too:
echo $this->row->CUSTOM_FIELD_COLUMN;

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

  • Posts: 260
  • Thank you received: 25
11 years 10 months ago #85316

Hi Nicolas,

thanks for that.

That is pretty much what I am looking for. (I had it displaying the way you mentioned, but could work out how to display fields.

I will try that.

thanks again!


Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

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

Time to create page: 0.066 seconds
Powered by Kunena Forum