Donation as custom field not added in cart

  • Posts: 37
  • Thank you received: 0
7 years 11 months ago #271774

-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.2
-- PHP version -- : 7.1.6
-- Browser(s) name and version -- : chrome, firefox

Hello,
I've created a custom field for donation (see screenshot parameters at http://prntscr.com/fjb7v6 )
the frontend page for donation is correctely displayed (see pic screenshot at http://prntscr.com/fjb93p )
But impossible to add the product "donation" and the amount amount in cart (it ok for others normal products)
The parameters of the product seem correct (screenshot at http://prntscr.com/fjbao7 )
Can you tel me where is the matter
Best regards
Alain

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

  • Posts: 83799
  • Thank you received: 13571
  • MODERATOR
7 years 11 months ago #271779

Hi,

When you click on the add to cart button on your website HikaShop correctly send to the server the add to cart request:
monosnap.com/file/NqJlOhG1FiRRPZe9AH4hFfdPi6WNXL
However, as you can see, the server returns with a 500 error.
It might come from AdminTools setup if you use that extension on your website. Check this:
www.hikashop.com/forum/content-creation/...variants.html#268828

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

  • Posts: 37
  • Thank you received: 0
7 years 11 months ago #271819

Hi,
I'm sorry, but i didnt find where is "WAF" configuration (nothing like that in Joomla! 3.5 admin and in hikasop 3.1.1 configuration)
Can you tell me more about it ?
Thanks
Alain

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

  • Posts: 83799
  • Thank you received: 13571
  • MODERATOR
7 years 11 months ago #271839

Hi,

That setting is in AdminTools. If you don't have AdminTools installed on your website, you won't have that setting, and that also means that the problem doesn't come from that.

Then the best would be to look for the error message corresponding to the issue in the PHP error log of your server.
You might need to ask that to your hosting company.
Once we have it, we should be able to say more about what is the problem and what you can do.

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

  • Posts: 37
  • Thank you received: 0
7 years 10 months ago #272412

Hi,
Admin tools was not installed. i did it but nothing about ajax.
The hostin company just tell me there is no error in PHP status on the server.
I add, i use hikashop v 2.3.2 for my online site (that i want to replace) for 5 years now, with the same products and same donation custom field which works perfectly on the same dedicated server !
My question is : Is there a particular setting to make (ajax, ...) for the domain environment (I use plesk)
If no, any other idea ?
thanks
Alain

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

  • Posts: 83799
  • Thank you received: 13571
  • MODERATOR
7 years 10 months ago #272417

Hi,

Then turn on the "add to cart legacy" setting of the HikaShop configuration. That will use the old add to cart system, without ajax and thus it should also work even with the latest version.

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

  • Posts: 37
  • Thank you received: 0
7 years 10 months ago #272478

Hello,
Im sorry, but i dont find this setting HikaShop configuration (see at prntscr.com/fmrlkw )
Alain

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

  • Posts: 83799
  • Thank you received: 13571
  • MODERATOR
7 years 10 months ago #272486

Hi,

I thought that you meant that you had updated to the latest version of HikaShop (you mentioned using the 3.1.1 on your first message) and that the problem had happened after that.
But that screenshot is not from HikaShop 3.1.1 but an older version.
I just checked the link that you provided with your first message it is using the 3.1.1.
So the screenshot you took doesn't come from that website. It must come from somewhere else.
Could you check again the settings of HikaShop on the website where you have the problem ? You'll find that setting under the "advanced" tab there.

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

  • Posts: 37
  • Thank you received: 0
7 years 10 months ago #272585

Hi,
Im sorry, i use Hikashop business 3.1.1 (see at prntscr.com/fn6ago ) !!!
I ave 2 sites : the old one with the 2.3.2 (joomla! 2.5) and this one under construction with 3.1.1
So the screeshot come from this one and from anywhere else (I can create privately access to the administration so that you can see it) New screeshot at prntscr.com/fn6e60
For your last point, i see nothing about cart unerd advanced tab (see at prntscr.com/fn6fey )
Alain

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

  • Posts: 37
  • Thank you received: 0
7 years 10 months ago #272587

Error-corrected previous message
Hi,
Im sorry, i use Hikashop business 3.1.1 (see at prntscr.com/fn6ago ) !!!
I ave 2 sites : the old one with the 2.3.2 (joomla! 2.5) with donation field working perfectely and this one, under construction, with 3.1.1 (joomla 3.7.2)
So the screeshot come from this last one and not from anywhere else. I can create privately access to the administration so that you can see it : new screeshot at prntscr.com/fn6e60.
For your last point, i've seen nothing about cart, under advanced tab (see at prntscr.com/fn6fey )
I'm still blocked... :-(
Alain

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

  • Posts: 83799
  • Thank you received: 13571
  • MODERATOR
7 years 10 months ago #272599

Hi,

In your last screenshot, I can see the "ajout au panier obsolète" option which translates to "add to cart legacy". That's the setting I'm talking about so it is there.

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

  • Posts: 37
  • Thank you received: 0
7 years 10 months ago #272725

Ok, i put it on.
That's a little better but when add donation in cart i get the following error message "Unknown column 'amount' in 'field list'"
Parameters of custom field seem correct :
detail amount : prntscr.com/fo88le
detail product prntscr.com/fo89al
Any idea ?
Thanks
Alain

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

  • Posts: 83799
  • Thank you received: 13571
  • MODERATOR
7 years 10 months ago #272742

Bonjour,

Cela indique un problème avec la base de données.
Cliquez sur le bouton "check database" de la configuration HikaShop et cela devrait ajouter la colonne manquante.

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

  • Posts: 37
  • Thank you received: 0
7 years 10 months ago #272791

Bonjour,
Merci, ça marche parfaitement !

Question esthétique : le formulaire d'enregistrement étant assez basique, existe-t'il à cotre connaissance des extensions gratuites ou payantes de formulaires d'adresse plus élaborées et compatibles hikashop ?
Sinon, où paramétrer les éléments suivants ? (voir capture écran : prntscr.com/fongmq ):
- réduire l'écart (trop important) entre le label et le champ
- augmenter l'espace entre 2 lignes du formulaire (champs collés les un sur les autres)
- remplacement du texte de validation du formulaire "suivant" par un "bouton" plus visible (cadre, couleur, gras...)
- la possibilité de mettre certains textes de label en couleur, gras,italique,... (comme pour l'option encadrée qui dont être impérativement cochée)
Cordialement
Alain

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

  • Posts: 4820
  • Thank you received: 654
  • MODERATOR
7 years 10 months ago #272798

Bonjour,

" le formulaire d'enregistrement étant assez basique, existe-t'il à cotre connaissance des extensions gratuites ou payantes de formulaires d'adresse plus élaborées et compatibles hikashop ?"


Plusieurs plugin existent, ce sont plus généralement des createur/gestionnaires de formulaires, en revanche les compatibilités avec HikaShop nous sont inconnues MAIS à mon sens, HikaShop a des outils vous permettant d'assez largement faire évoluer vos formulaires en général, et celui des adresses en particulier.
Pour cela, vous devez jeter un oeil sur ce tutorial détaillant les custom field, dans votre cas, vous devez créer des custom field de type address (Table : address).

"Sinon, où paramétrer les éléments suivants ?


Tout cela, peut être paremetré ou plus exactement mit en form avec du Css, voyez ce tutorial vous permettant d'ajouter des commandes Css à votre fichier de frontend.css.
Puis, vous pouvez eventuellement vous referencer à ce glossaire des commandes Css. ( www.w3schools.com/css/ )

"réduire l'écart (trop important) entre le label et le champ"

Cf les commandes Margin, Padding et aussi Width

" augmenter l'espace entre 2 lignes du formulaire (champs collés les un sur les autres)

Cf Margin et Padding

"remplacement du texte de validation du formulaire "suivant" par un "bouton" plus visible (cadre, couleur, gras...)

Cf Border, background-color, et pour le gras font-weight.

"la possibilité de mettre certains textes de label en couleur, gras,italique,... (comme pour l'option encadrée qui dont être impérativement cochée)"

Cf Color, Font-weigth: bold (pour le gras) et font-style

Note : Merci pour la proichaine fois, de ne pas multiplier les problématiques sur un même sujet, cela rend le topic complexe à suivre pour les autres utilisateurs qui pourrait s'en inspirer.

Cordialement

Last edit: 7 years 10 months ago by Philip.

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

  • Posts: 37
  • Thank you received: 0
7 years 10 months ago #272858

Désolé, j'y ai pensé ... après l'envoi !
J'ai tous les éléments pour modifier le formulaire.
Toutefois, je regrette que la version business ne propose par défaut ou en option un template de formulaire un peu plus esthétique, voire paramétrable ; l'enregistrement du client étant une phase importante dans le processus de paiement.
Merci pour votre réactivité.
Cordialement
Alain

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

  • Posts: 83799
  • Thank you received: 13571
  • MODERATOR
7 years 10 months ago #272864

Bonjour,

Voici l'affichage du formulaire par défaut avec le template par défaut de Joomla :
monosnap.com/file/GLvgn4rrKQG8Z8iPEzYJTntdWauV68
Donc après, si les choses ne sont pas alignées, c'est surement le CSS dans votre template qui fait cela.
Malheureusement, nous ne pouvons palier à ce genre de différences dans la façon dont le CSS des templates agit sur les éléments du formulaire.
Et ajouter des options pour faire la même chose que le CSS n'est pas une solution.
Déjà, il y a trop d'options dans HikaShop du coup c'est déjà difficile de s'y retrouver, et puis il est impossible d'avoir tout ce que vous pouvez faire avec du CSS en options, et enfin, le CSS du template influerait de toute façon avec les options, donc ce n'est pas une solution non plus en ce sens.

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

Time to create page: 0.087 seconds
Powered by Kunena Forum