News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Repopulate form data if validation failed

Started by rejoan, November 05, 2020, 10:08:47 AM

Previous topic - Next topic

rejoan

Hi,
When validation failed in any form like user billing address,shipping address etc user usually redirect to form again but previous submitted data go away. Is there are any solution for retaining submitted data when validation failed so that user no need to fill form again?
I have checked at
administrator\components\com_virtuemart\models\userfields.php
this file & debug after line 979 like
var_dump($_return['fields'][$_fld->name]['value']);
then submitted data (email) showing well but in form its empty.
I have tried to debug session data & also there exist the email (and all submitted form data) but access the session object data show empty.
Any help please

jenkinhill

This does not happen with the default VirtueMart template system The already filled fields are retained.

Check your template code.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

rejoan

I have tried with fresh installation & protostar template, still same issue. Please check image currently showing username from browser auto fill option not from virtumart or joomla. My Joomla version is 3.9.22 & Virtumart  is 3.8

pinochico

Really is it VirtueMart registration?

I see on picture Joomla Registration
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

GJC Web Design

just tested on clean VM3.8.4

works fine -- page should look like attached

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jenkinhill

This is VM registration, VMBeez3 template, VirtueMart 3.8.5 10352  Just what I would expect to happen.

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

rejoan

Quote from: pinochico on November 05, 2020, 12:05:40 PM
Really is it VirtueMart registration?

I see on picture Joomla Registration
Yes this virtumart registration not joomla.

I have also tested with fresh installation & vmbeez3 - Default template. Nothing improved, still submitted data not show

jenkinhill

The Username in use error does wipe all info, but IMHO it is likely to be the same person who registered before.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

rejoan

Not only Username In Use, But any server side error wipes out all submitted data.