Author Topic: Unable to add or remove product categories  (Read 1515 times)

koaconsulting

  • Beginner
  • *
  • Posts: 16
    • Website Design, Development, and Internet Marketing Solutions
Unable to add or remove product categories
« on: July 25, 2018, 21:38:50 pm »
Our client has just reported a very strange issue.  If we add or remove a category from a product, everything looks like it works... but when we click the Save button (or even Save and Close) it then seems like the changes did NOT take effect.  The page is reloaded without any of the categories changed.  However if we empty our browser cache and then reload that page the changes DO take effect.

It seems like the solution could be to simply tell the browser to not cache that page...?

Any help you can offer would be greatly appreciated!

We are using the latest version of Virtuemart (3.2.14) and Joomla (3.8.8).
KOA Consulting is dedicated to providing high quality, professional website design, development, graphic design, Internet marketing, search engine optimization (SEO), and a variety of cutting edge web technologies to our ever-growing client-base. Our long list of satisfied clients extends across the globe.

We specialize in working with the Joomla Content Management System and custom integration of Virtuemart as well. 

Please contact us for all of your custom web design and development needs: www.koaconsulting.com

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2929
  • VirtueMart Version: 3.6.0
Re: Unable to add or remove product categories
« Reply #1 on: July 26, 2018, 10:58:50 am »
Try version .15

regards
A

Joomla 3.9.8
php 7.1

koaconsulting

  • Beginner
  • *
  • Posts: 16
    • Website Design, Development, and Internet Marketing Solutions
Re: Unable to add or remove product categories
« Reply #2 on: July 31, 2018, 00:02:04 am »
Thanks for your reply.  Unfortunately, I don't see any newer versions on the Virtuemart website.  Or did you mean to just wait until the next release comes out?
KOA Consulting is dedicated to providing high quality, professional website design, development, graphic design, Internet marketing, search engine optimization (SEO), and a variety of cutting edge web technologies to our ever-growing client-base. Our long list of satisfied clients extends across the globe.

We specialize in working with the Joomla Content Management System and custom integration of Virtuemart as well. 

Please contact us for all of your custom web design and development needs: www.koaconsulting.com

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 2290
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Unable to add or remove product categories
« Reply #3 on: July 31, 2018, 05:59:56 am »
Hello try here.
http://dev.virtuemart.net/projects/virtuemart/files
Regards
Jörgen @ Kreativ Fotografi
Joomla 3.9.8
Virtuemart 3.4.x
Olympiantheme Hera (customized)

koaconsulting

  • Beginner
  • *
  • Posts: 16
    • Website Design, Development, and Internet Marketing Solutions
Re: Unable to add or remove product categories
« Reply #4 on: August 02, 2018, 01:02:42 am »
Thanks for the suggestion and link to the upgrade file.  I applied the VM update.  Unfortunately, that did not fix the issue.  We still can't add/edit product categories for any product and get them to display unless we empty the browser cache.  Any other suggestions for a fix?
KOA Consulting is dedicated to providing high quality, professional website design, development, graphic design, Internet marketing, search engine optimization (SEO), and a variety of cutting edge web technologies to our ever-growing client-base. Our long list of satisfied clients extends across the globe.

We specialize in working with the Joomla Content Management System and custom integration of Virtuemart as well. 

Please contact us for all of your custom web design and development needs: www.koaconsulting.com

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3960
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Unable to add or remove product categories
« Reply #5 on: August 02, 2018, 03:35:35 am »
If you upgraded, the old javascript is perhaps in cache.
Si refresh browser, and test again.
If it's not solved, clear the Joomla cache and test again.

koaconsulting

  • Beginner
  • *
  • Posts: 16
    • Website Design, Development, and Internet Marketing Solutions
Re: Unable to add or remove product categories
« Reply #6 on: August 02, 2018, 05:03:38 am »
Thanks for your help.  Unfortunately, I have tried the same thing on various browsers (Chrome, Firefox, and Safari), each with the browse cache emptied.  Still no luck.  I've also emptied the Joomla cache several times.  I have verified that the Virtuemart update has run to completion and the "Extensions: Manage" area shows version 3.2.15 (June 14, 2018) as the latest version.

Any other ideas?

FYI: We are using the latest versions: Joomla 3.8.11 and Virtuemart 3.2.15.
KOA Consulting is dedicated to providing high quality, professional website design, development, graphic design, Internet marketing, search engine optimization (SEO), and a variety of cutting edge web technologies to our ever-growing client-base. Our long list of satisfied clients extends across the globe.

We specialize in working with the Joomla Content Management System and custom integration of Virtuemart as well. 

Please contact us for all of your custom web design and development needs: www.koaconsulting.com

hellorain

  • Jr. Member
  • **
  • Posts: 114
    • Raincreatives - Virtuemart & Mobile Commerce Experts
  • Skype Name: raincreatives
Re: Unable to add or remove product categories
« Reply #7 on: August 02, 2018, 07:41:54 am »
Hello,

Provide me your site details. I can start work.

Best Regards,
hellorain.
Raincreatives - Virtuemart & Mobile Commerce Experts

koaconsulting

  • Beginner
  • *
  • Posts: 16
    • Website Design, Development, and Internet Marketing Solutions
Re: Unable to add or remove product categories
« Reply #8 on: August 02, 2018, 08:03:33 am »
I tried sending you a PM but it was blocked.  Are you offering help to troubleshoot the issue?  I am signing off for the day but can Skype you tomorrow if that works.  Thanks!
KOA Consulting is dedicated to providing high quality, professional website design, development, graphic design, Internet marketing, search engine optimization (SEO), and a variety of cutting edge web technologies to our ever-growing client-base. Our long list of satisfied clients extends across the globe.

We specialize in working with the Joomla Content Management System and custom integration of Virtuemart as well. 

Please contact us for all of your custom web design and development needs: www.koaconsulting.com

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3960
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Unable to add or remove product categories
« Reply #9 on: August 02, 2018, 13:22:57 pm »
Check your browser console, if the dont see an error displayed in the categories list.
This break the render.
You can full disable php error reporting/display, to prevent this case.

koaconsulting

  • Beginner
  • *
  • Posts: 16
    • Website Design, Development, and Internet Marketing Solutions
Re: Unable to add or remove product categories
« Reply #10 on: August 02, 2018, 22:25:47 pm »
I already had error reporting disabled so that doesn't help.  There is one Javascript error: TypeError: t.fn.tooltip.Constructor is undefined.  I've uploaded this as an attachment so you can see it.

I found one other instance where someone had a similar issue in the VM forums but there was no resolution.  Milbo asked if they were using a custom admin template (we are not).

UPDATE:
I also setup a completely NEW Joomla and Virtuemart installation and the problem still exists!!!  No other 3rd party extensions or templates installed.  Just Joomla 3.8.11 and VM 3.2.15.  I still can't add categories to a product and have the list update UNLESS I empty the browser cache.  No special .htaccess file either.  The only thing I can think of if it's not a VM issue is that perhaps my client's host (HostGator) has a strange setting causing the issue...?

Any other suggestions?  Thanks for your help!
KOA Consulting is dedicated to providing high quality, professional website design, development, graphic design, Internet marketing, search engine optimization (SEO), and a variety of cutting edge web technologies to our ever-growing client-base. Our long list of satisfied clients extends across the globe.

We specialize in working with the Joomla Content Management System and custom integration of Virtuemart as well. 

Please contact us for all of your custom web design and development needs: www.koaconsulting.com

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3960
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Unable to add or remove product categories
« Reply #11 on: August 02, 2018, 23:56:54 pm »
Your javascript can be the origin of the problem because Virtuemart load the categories by ajax javascript call.
So if you have any javascript error before, the script is not called, this is is the case for all javascript called affter the error in the dom.

koaconsulting

  • Beginner
  • *
  • Posts: 16
    • Website Design, Development, and Internet Marketing Solutions
Re: Unable to add or remove product categories
« Reply #12 on: August 03, 2018, 01:01:49 am »
The problem can't be due to Javascript.  As I just said in my last post:

I also setup a completely NEW Joomla and Virtuemart installation and the problem still exists!!!  No other 3rd party extensions or templates installed.  Just Joomla 3.8.11 and VM 3.2.15.  I still can't add categories to a product and have the list update UNLESS I empty the browser cache.  No special .htaccess file either.  The only thing I can think of if it's not a VM issue is that perhaps my client's host (HostGator) has a strange setting causing the issue...?
KOA Consulting is dedicated to providing high quality, professional website design, development, graphic design, Internet marketing, search engine optimization (SEO), and a variety of cutting edge web technologies to our ever-growing client-base. Our long list of satisfied clients extends across the globe.

We specialize in working with the Joomla Content Management System and custom integration of Virtuemart as well. 

Please contact us for all of your custom web design and development needs: www.koaconsulting.com

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 2290
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Unable to add or remove product categories
« Reply #13 on: August 03, 2018, 05:43:33 am »
Hello
Do your clients site have some caching software installed? These have a tendency to break e-commerce sites.
Jörgen @ Kreativ Fotografi
Joomla 3.9.8
Virtuemart 3.4.x
Olympiantheme Hera (customized)

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8959
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
Re: Unable to add or remove product categories
« Reply #14 on: August 03, 2018, 10:52:54 am »
Have u fully investigated the ajax calls that provide the category displays?

administrator/index.php?option=com_virtuemart&view=product&type=getCategoriesTree&virtuemart_product_id=65&format=json&lang=en

does it render correctly and after saving are the correct cats selected?

e.g.

<option selected=\\\"selected\\\"  value=\"28\">PBC<\/option>

or only after clearing "cache"?

which cache?  joomla's, browser etc?

It must in some way be connected with the move to ajax cats and your host .. ajax can be cached and hard to get the latest .. is Hostgator ( imho one of the bad ones) caching this?
No one else is reporting problems with this
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation