News:

Looking for documentation? Take a look on our wiki

Main Menu

"Add To Cart" redirects to empty cart :(

Started by oneyozfest182, January 04, 2017, 18:00:01 PM

Previous topic - Next topic

oneyozfest182

I am using a custom theme and some extensions, but the issue happens even with those extensions disabled and using the default protostar template. Any help us appreciated :(

QuoteSITE INFORMATION
OS Linux b
PHP 5.3.29
MySQLi 5.6.32-78.0-log
Caching ON - Conservative caching
GZip Compression Yes
Joomla! Version 3.6.5
VirtueMart 3.0.18

You can test by logging in with the following credentials:

QuoteAccount Number (Username): PRI001
Password: britalia1

http://shop.britaliaoptical.com/

jenkinhill

And the URL is ????

Thats a very old verion of PHP.
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

oneyozfest182

Doh! I knew I'd forget something.  :P Fixed!

oneyozfest182

I also noticed that, though I have the "Display modal popup upon 'Add to cart'" checked, when I add to cart it just redirects me to the cart page instead of showing any popup... :(

jenkinhill

Looks like JavaScript issues. eg you are not loading VirtueMart's vmsite.js
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

oneyozfest182

Is there a way I can revert to using Virtuemart's vmsite.js ? :(

Jumbo!

Enable "Using the product Scripts" and "Using the Script ajax Countries/Regions" options in VirtueMart Configuration under Template tab.

Also remove the following script from your template. It is generating unnecessary errors.

<script>
    var vid = document.getElementById("vid");
    vid.addEventListener("timeupdate", function () {
        if(this.currentTime >= 8.0) {
            this.currentTime = 0.0;
        }
    });
</script>

oneyozfest182

Quote from: Jumbo! on January 05, 2017, 18:19:21 PM
Enable "Using the product Scripts" and "Using the Script ajax Countries/Regions" options in VirtueMart Configuration under Template tab.

YOU'RE MY SAVIOR! :P

Quote from: Jumbo! on January 05, 2017, 18:19:21 PMAlso remove the following script from your template. It is generating unnecessary errors.

<script>
    var vid = document.getElementById("vid");
    vid.addEventListener("timeupdate", function () {
        if(this.currentTime >= 8.0) {
            this.currentTime = 0.0;
        }
    });
</script>


Where would I go abouts finding that?  :-X

Jumbo!

Quote from: oneyozfest182 on January 05, 2017, 22:53:40 PM
Quote from: Jumbo! on January 05, 2017, 18:19:21 PMAlso remove the following script from your template. It is generating unnecessary errors.

<script>
    var vid = document.getElementById("vid");
    vid.addEventListener("timeupdate", function () {
        if(this.currentTime >= 8.0) {
            this.currentTime = 0.0;
        }
    });
</script>


Where would I go abouts finding that?  :-X

I think that is in your template's index.php file. Check at the bottom of the file just before the body closing tag.