Skip to main content

Prix en TTC dans widgets

More
10 years 6 months ago - 10 years 6 months ago #233826 by hikaphil
-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8

Bonjour , je fais un top 20 des ventes de mes produits et je voudrais mettre les prix en ttc lorsque le widget apparaît.
Mes réglages:
Listings/produits/expédiés/commandes/meilleurs

Merci.
Last edit: 10 years 6 months ago by hikaphil.

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

More
10 years 6 months ago #233827 by nicolas
Replied by nicolas on topic Prix en TTC dans widgets
Bonjour,

Merci de fournir une capture d'écran des options de votre widget.
The following user(s) said Thank You: hikaphil

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

More
10 years 6 months ago #233890 by hikaphil
Replied by hikaphil on topic Prix en TTC dans widgets
Bonjour, voilà





lorsque on est sur panneau de contrôle les prix sont en ht

Merci.

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

More
10 years 6 months ago #233901 by nicolas
Replied by nicolas on topic Prix en TTC dans widgets
Bonjour,

Vous pouvez essayer de changer la ligne:
$value=$currencyClass->format($row->Total, $row->order_currency_id);
en:
$value=$currencyClass->format($currencyClass->getTaxedPrice($row->Total, hikashop_getZone(),XXX), $row->order_currency_id);
dans le fichier "product" de la vue "dashboard" pour votre template du backend et où XXX est l'id de la catégorie de taxes que vous utilisez dans vos règles de taxes.

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

More
10 years 6 months ago #234083 by hikaphil
Replied by hikaphil on topic Prix en TTC dans widgets
Bonjour, non ça fonctionne pas :/

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

More
10 years 6 months ago #234155 by nicolas
Replied by nicolas on topic Prix en TTC dans widgets
Changez hikashop_getZone() par l'id de la zone de votre règle de taxes alors.

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

More
10 years 6 months ago #234214 by hikaphil
Replied by hikaphil on topic Prix en TTC dans widgets
Bonjour,
non toujours pas. voici ma ligne 61
$value=$currencyClass->format($currencyClass->getTaxedPrice($row->Total, 74,2), $row->order_currency_id);

:dry:

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

More
10 years 6 months ago #234216 by nicolas
Replied by nicolas on topic Prix en TTC dans widgets
Bonjour,

Soit:
- l'id 74 et/ou l'id 2 sont incorrects
- vous éditez le fichier pour un autre template que votre template backend

L'id 2 dans la table catégorie, c'est normalement la catégorie "product category".
La catégorie de taxe par défaut a l'id 11, et si vous en créez une autre son id doit être encore plus élevée. Donc à mon avis, vous n'avez pas mis le bon id de votre catégorie de taxes et du coup, c'est pour cela que ça ne fonctionne pas.
The following user(s) said Thank You: hikaphil

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

More
10 years 6 months ago - 10 years 6 months ago #234259 by hikaphil
Replied by hikaphil on topic Prix en TTC dans widgets
Effectivement c'est l'id catégorie qui été pas bon !!! désolé pour le dérangement occasionné :unsure:
Last edit: 10 years 6 months ago by hikaphil.

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

Time to create page: 0.215 seconds
Powered by Kunena Forum