News:

Looking for documentation? Take a look on our wiki

Main Menu

Problem with save changes on product

Started by morphic, March 05, 2019, 10:45:45 AM

Previous topic - Next topic

morphic

Hi there,

I have problem with save products after changes. 

The problem concerns only the products having more than 100 child products. When I have less child products - e.g.50 - save on product page working correct.

What can cause the problem? Console don't show any errors. I have VPS server and max execution time and memory limit has been increased in php.ini

jenkinhill

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


Studio 42

https://docs.virtuemart.net/manual/general-concepts/206-hidden-configurations.html
absMaxProducts is max number of products to get in one time.
You can have a problem because PHP post_max_size and max_input_vars
I think that the problem is max_input_vars, it's 1000 by default but each child need 7 or 8 values
So 8*100 = 800 + other inputs
Change max_input_vars 1000 to 3000 for eg.

morphic

Quote from: Studio 42 on March 05, 2019, 18:42:35 PM
https://docs.virtuemart.net/manual/general-concepts/206-hidden-configurations.html
absMaxProducts is max number of products to get in one time.
You can have a problem because PHP post_max_size and max_input_vars
I think that the problem is max_input_vars, it's 1000 by default but each child need 7 or 8 values
So 8*100 = 800 + other inputs
Change max_input_vars 1000 to 3000 for eg.

Hi there,
I haven't absMaxProducts in my virtuemart.cfg file.
I changed max_input_vars to 8000 and post_max_size to 128MB and I have still the same problem.

GJC Web Design

QuoteI haven't absMaxProducts in my virtuemart.cfg file.

just add it and test
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

morphic

Quote from: GJC Web Design on March 07, 2019, 13:41:21 PM
QuoteI haven't absMaxProducts in my virtuemart.cfg file.

just add it and test
I had been added absMaxProducts=200 and tried +100 progress and the same - no save changes.

It's any specific place where should I put this?

GJC Web Design

any where in virtuemart.cfg

but is there no error thrown somewhere?

what happens when saving the +100 childs?
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

morphic

Quote from: GJC Web Design on March 11, 2019, 23:01:13 PM
any where in virtuemart.cfg

but is there no error thrown somewhere?

what happens when saving the +100 childs?


I have child products added using Custom Fields combinations. I made MultiVariants with two custom labels - all vartiants has different price.

And after add new category to parent product, upload new image or make changes in product description after click Save button changes aren't save. When I click Save & Close changes aren't save and I stay on products.

Studio 42

Check your posted vars in the console and try to calculate the size needed to post_max_size and max_input_vars
Another solution is to split the main products in child product so you dont have not so many multivariant per product
Eg create 3 products :
product-Small
product-Medium
product-Large
And use multivariant in this children.
You can quick change parent id with my tool VM Be Pro for eg.