News:

Support the VirtueMart project and become a member

Main Menu

Add to cart not working

Started by Lydiasupplyingdirect, November 23, 2021, 10:58:03 AM

Previous topic - Next topic

Lydiasupplyingdirect

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!!

L Bustin

jenkinhill

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?

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

Lydiasupplyingdirect

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,
L Bustin

jenkinhill

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.
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

Lydiasupplyingdirect

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.
L Bustin

Jörgen

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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

Lydiasupplyingdirect

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.
L Bustin

jenkinhill

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.
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

Lydiasupplyingdirect

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.
L Bustin

Jörgen

Have you checked your template settings  to make sure that have not got any customizations or styles of the template active ?

Jörgen
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

Lydiasupplyingdirect

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?
L Bustin

Jörgen

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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

Lydiasupplyingdirect

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.
L Bustin

Jörgen

Try and test the vmbeez3 instead as default template.

Jörgen
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

Lydiasupplyingdirect

Hi,

Have already tried this and it doesn't work.
L Bustin