VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: Lydiasupplyingdirect on November 23, 2021, 10:58:03 AM

Title: Add to cart not working
Post by: Lydiasupplyingdirect on November 23, 2021, 10:58:03 AM
Hello,

I recently posted about our add to cart not working through Yootheme Pro so we stripped back the site to just using Virtuemart and the Beez template and add to cart is still not working. It takes you to the basket but then nothing is added and it gives a message saying 'product is removed'. We know it's not a template issue but a Virtuemart one but we can't figure out what the issue is. We've also uninstalled and reinstalled Virtuemart and still doesn't work.

When add to cart is clicked, several error messages are shown as follows:

Refused to apply style from 'http://timb103.sg-host.com/templates/vmbeez3/html/com_virtuemart/themes/default/assets/css/custom/vmuikit.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
jquery-migrate.min.js?ba58fadd8374d7a4a361f972172eb95f:2 JQMIGRATE: Migrate is installed, version 1.4.1
timb103.sg-host.com/:48 GET http://timb103.sg-host.com/templates/vmbeez3/html/com_virtuemart/themes/default/assets/js/productdetails/vmprices.js net::ERR_ABORTED 404 (Not Found)
timb103.sg-host.com/:49 GET http://timb103.sg-host.com/templates/vmbeez3/html/com_virtuemart/themes/default/assets/js/custom/vmuikit.js net::ERR_ABORTED 404 (Not Found)

Other error messages showing:

Refused to apply style from 'http://timb103.sg-host.com/templates/vmbeez3/html/com_virtuemart/themes/default/assets/css/custom/vmuikit.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
rectangular-mobile-folding-canteen-tables.html:45 GET http://timb103.sg-host.com/templates/vmbeez3/html/com_virtuemart/themes/default/assets/js/productdetails/vmprices.js net::ERR_ABORTED 404 (Not Found)
rectangular-mobile-folding-canteen-tables.html:46 GET http://timb103.sg-host.com/templates/vmbeez3/html/com_virtuemart/themes/default/assets/js/custom/vmuikit.js net::ERR_ABORTED 404 (Not Found)
jquery-migrate.min.js?ba58fadd8374d7a4a361f972172eb95f:2 JQMIGRATE: Migrate is installed, version 1.4.1
rectangular-mobile-folding-canteen-tables.html:45 GET http://timb103.sg-host.com/templates/vmbeez3/html/com_virtuemart/themes/default/assets/js/productdetails/vmprices.js net::ERR_ABORTED 404 (Not Found)
rectangular-mobile-folding-canteen-tables.html:46 GET http://timb103.sg-host.com/templates/vmbeez3/html/com_virtuemart/themes/default/assets/js/custom/vmuikit.js net::ERR_ABORTED 404 (Not Found)
rectangular-mobile-folding-canteen-tables.html:1555 Uncaught TypeError: Virtuemart.product is not a function
    at HTMLDocument.<anonymous> (rectangular-mobile-folding-canteen-tables.html:1555)
    at u (jquery.min.js?ba58fadd8374d7a4a361f972172eb95f:2)
    at Object.fireWith [as resolveWith] (jquery.min.js?ba58fadd8374d7a4a361f972172eb95f:2)
    at Function.ready (jquery.min.js?ba58fadd8374d7a4a361f972172eb95f:2)
    at HTMLDocument._ (jquery.min.js?ba58fadd8374d7a4a361f972172eb95f:2)



http://timb103.sg-host.com/

If anyone can help it would be much appreciated as this is becoming our big nightmare!!

Title: Re: Add to cart not working
Post by: jenkinhill on November 23, 2021, 11:25:31 AM
The standard vmbeez3 template does not include a themes subdirectory yet your code is trying to use it.
If you check for a requested file such as http://timb103.sg-host.com//templates/vmbeez3/html/com_virtuemart/themes/default/assets/css/custom/vmuikit.css  you will find it returns a 404.

Looks like you still have some vmuikit code installed. Maybe a plugin?

Title: Re: Add to cart not working
Post by: Lydiasupplyingdirect on November 23, 2021, 11:36:47 AM
Hello Kelvyn,

Thank you for your response.

Have checked through all plugins, nothing vmuikit related is installed anymore. So seems to be issue deeper which is not allowing add to cart to function, we have re-installed things, disabled plug-ins to check if there is an interference we've pretty much done everything we know to do but it now seems to be beyond our knowledge so we have no idea what it could be!

Do you have any other suggestions? Would be much appreciated.

Thank you,
Title: Re: Add to cart not working
Post by: jenkinhill on November 23, 2021, 12:16:31 PM
What about "widgetkit"? Is something to do with this installed. This is in the ae code "<link href="/cache/widgetkit/widgetkit-a09cc27c.css" rel="stylesheet" />"

Check VM configuration templates. Under Template and Layouts you should only have default settings, no overrides.
Title: Re: Add to cart not working
Post by: Lydiasupplyingdirect on November 23, 2021, 12:26:55 PM
Hello Kelvyn,

Have disabled all Widgekit plugins and problem still not solved and have checked configuration settings and no override is checked, please see screen shots attached.
Title: Re: Add to cart not working
Post by: Jörgen on November 23, 2021, 12:39:37 PM
Clearly You still have references to vmuikit.

Something is calling vmuikit files, this code should not come from VM. You have still something to uninstall.

Jörgen @ Kreativ Fotografi
Title: Re: Add to cart not working
Post by: Lydiasupplyingdirect on November 23, 2021, 13:06:37 PM
Hello Jörgen

No unfortunately we don't have any Vmuikit plugins installed have checked through all plugins and there is nothing associate with Vmuikit.
Title: Re: Add to cart not working
Post by: jenkinhill on November 23, 2021, 13:31:20 PM
There may be remnants of a Vmuikit component.

In the Joomla menu go to to Extensions/Manage/Manage

This provides a list of all installed components, modules & plugins.  Search for VMuikit and if it finds anything you should disable or (preferably) uninstall it.
Title: Re: Add to cart not working
Post by: Lydiasupplyingdirect on November 23, 2021, 13:47:56 PM
Hello  Kelvyn,

We have done this a few times and have just checked again but there is nothing Vmuikit related which is installed.(Please see image attached).

Really strange that it's still giving the same error messages even though it's all uninstalled.
Title: Re: Add to cart not working
Post by: Jörgen on November 23, 2021, 14:01:44 PM
Have you checked your template settings  to make sure that have not got any customizations or styles of the template active ?

Jörgen
Title: Re: Add to cart not working
Post by: Lydiasupplyingdirect on November 23, 2021, 14:22:38 PM
Hello Jörgen,

Have checked and as far as I'm aware there is no customisations. Code area isn't my strong point so I wouldn't necessarily know what a customisation in code would look like?
Title: Re: Add to cart not working
Post by: Jörgen on November 23, 2021, 14:31:08 PM
Not in code in Joomla back end templates. You can make new styles and adjust the templates under the "Extensions->Templates->Styles" .

You can assign default template and also delete templates from here. Check that all unwanted templates are gone ?

Jörgen
Title: Re: Add to cart not working
Post by: Lydiasupplyingdirect on November 23, 2021, 14:43:39 PM
Sorry I thought you meant actually going into the template and making amendments.

Then no we only have the Beez3 Template which is set as default and the vmbeez3 which is not set as default but is listed.
Title: Re: Add to cart not working
Post by: Jörgen on November 23, 2021, 15:03:36 PM
Try and test the vmbeez3 instead as default template.

Jörgen
Title: Re: Add to cart not working
Post by: Lydiasupplyingdirect on November 23, 2021, 15:08:39 PM
Hi,

Have already tried this and it doesn't work.
Title: Re: Add to cart not working
Post by: Jörgen on November 23, 2021, 15:23:22 PM
This is a long shot, You are working in http, should use https for your website. Do you by chance have https activated for sensistive areas like checkout. Setting in VM back end for this ...

Jörgen
Title: Re: Add to cart not working
Post by: jenkinhill on November 23, 2021, 15:44:36 PM
I just dug a bit more into your page code.
This CSS file 
http://timb103.sg-host.com/plugins/system/vmuikitx_onepage/vmuikitx_onepage.css
is obviously installed, so you must have been using VMuikit X OPC which is a plugin from joomlapro.com. This appears in plugins as VMuikiX
See https://extensions.joomlapro.com/support/documentation/vmuikit-x?showall=1 for what it does.
Title: Re: Add to cart not working
Post by: GJC Web Design on November 24, 2021, 10:31:54 AM
if your geting messages like ->  http://timb103.sg-host.com/plugins/system/vmuikitx_override/html_override/com_virtuemart/assets/js/jquery.elevatezoom.js

then obviously the system plugin vmuikitx_override is still active

and as for  ->  http://timb103.sg-host.com/templates/beez3/html/com_virtuemart/themes/default/assets/css/custom/vmuikit.css

in standard Joomla there is certainly no such folder as  templates/beez3/html/com_virtuemart/themes

this vmuikit crap seems to have altered your actual folders and files

plus you should be using https on any site no days