modifier hikashop_product_characteristics_table

  • Posts: 2639
  • Thank you received: 66
  • Hikashop Business
5 years 4 months ago #306962

Bonjour

je n'arrive pas a modifier hikashop_product_characteristics_table qui semble etre dans form_characteristic.php ou form_bundle.php
et semble etre appelé par echo $this->characteristic->displayFE($this->element, $this->params) ; dans show_bloc_characteristic.php

mais rien n'y fait

ou est cette table pour la modifier ?
Pourquoi est elle codé en dur dans types/characteristic.php

merci

Last edit: 5 years 4 months ago by erickb.

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

  • Posts: 82501
  • Thank you received: 13281
  • MODERATOR
5 years 4 months ago #306976

Bonjour,

Elle est en effet en dur dans administrator/components/com_hikashop/types/characteristic.php
C'est une relique du passé. Idéalement, il faudrait bouger ce code dans show_block_characteristic.php
En effet, nous voulons modifier le système des caractéristiques/variantes pour permettre la sélection de variantes sur les listings, et une page produit plus légère sans limite sur le nombre de variantes. Du coup, nous attendions de faire cela pour revoir le système et ne plus utiliser types/characteristic.php

Mais sinon, il est quand même possible de modifier ce tableau comme expliqué dans la doc développeur:
www.hikashop.com/support/documentation/6...tation.html#override

For the characteristics:

You need to create the file templates/YOUR_TEMPLATE/html/hikashop_characteristics.php. We invite you to look at the file administrator/components/com_hikashop/type/characteristic.php for the default code of the function you will define in it. In that file, you will be able to define the function:

hikashop_characteristics_html(&$element,&$params,&$obj) => The $element variable will contain the whole product information from which you can extract the characteristics information and the params variable can help you get some parameters from the HikaShop configuration. The $obj variable will be the instance of the characteristic display class. That way, when you get the code from the characteristic.php file, you can just replace $this by $obj and it should work. You need to return the HTML of the characteristics selection at the end of your function.

The following user(s) said Thank You: erickb

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

  • Posts: 2639
  • Thank you received: 66
  • Hikashop Business
5 years 3 months ago #307025

est ce que cette nouvelle version arrive bientot ?

merci

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

  • Posts: 82501
  • Thank you received: 13281
  • MODERATOR
5 years 3 months ago #307028

Non. Nous n'avons pas encore commencé à travailler là-dessus. Si quelque chose arrive ce sera plutôt en fin d'année voir l'année prochaine car c'est un gros projet.

The following user(s) said Thank You: erickb

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

  • Posts: 2639
  • Thank you received: 66
  • Hikashop Business
5 years 3 months ago #307085

hikashop_characteristics.php marche tres bien

merci

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

Time to create page: 0.061 seconds
Powered by Kunena Forum