Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - CleanMart (SKU# FLEX-00015)

TOPIC: Cart module loads homepage when Checkout now used?

Cart module loads homepage when Checkout now used? 9 years 7 months ago #10565

I have noticed a problem with the cart module, when clicking on "Checkout Now" from the home page. This site has been live for a couple of months now and this has only just been pointed out to us & I have tested the issue in older backed up versions too.

When I add a product to my cart and then maybe , navigate about the site, I cant seem to get to the checkout page from using the "Checkout now" button in the Flexible cart module? I just get redirected to the home page.

Also I noticed some other issues, which may or may not be related & i have included screenshots here to try help explain further.
When I view the cart popup from the home page, the "Checkout Now" button seems to appear at the top of the cart popup.
When I view the cart popup from another page, the "Checkout Now" button seems to be at the bottom
& when i view the cart popup from a product page, when I have just added a product, the button says "Show Cart" rather than "Checkout Now"

Clicking the "Show cart" button rather than the "Checkout now" button is the only button that seems to work and actually takes me to the cart.

Any ideas help would be greatly appreciated as always ;)

Andy
Last Edit: 7 years 8 months ago by Andy Connell.
The administrator has disabled public write access.

Cart module loads homepage when Checkout now used? 9 years 7 months ago #10581

Hi,

I have noticed something weird on your website. That's interesting, i will take a look at it later, but for now. Here is your patch:

open this PHP file:
/modules/mod_flexible_cart/tmpl/default.php

and look for this line:
<div class="clear">

and replace with this:
<div class="clearfix">

(you will find this expression in 4 different lines, change them all)

and the layout problem of "Checkout Button" will be fixed.

To change the link URL of the "Checkout" button (which goes to homepage on your website for example), look for this line:
<?php	echo JHTML::_('link',JRoute::_('index.php?option=com_virtuemart&view=cart'.($data->dataValidated==true?'&task=confirm':''),true,vmConfig::get('useSSL',0)),$lang->_($data->dataValidated==true?'COM_VIRTUEMART_CART_CONFIRM':'COM_VIRTUEMART_CHECKOUT_TITLE')); ?>

and replace it to this:
<a href="/index.php?option=com_virtuemart&view=cart">Check Out Now</a>

Actually i still don't know why the original line doesn't print the link of index.php?option=com_virtuemart&view=cart, (which is the URL for the shopping cart page). Something must be breaking the URL re_writing for shopping cart page.

But by making this change above, you are manually defining the "Cart" URL as /index.php?option=com_virtuemart&view=cart

Regards,
Support
Last Edit: 9 years 7 months ago by Support.
The administrator has disabled public write access.

Cart module loads homepage when Checkout now used? 9 years 7 months ago #10597

Thanks for your great reply as always ;)

I have modified as you suggested & this has pretty much fixed the issue. The only problem now, which is pretty minor for me is;

When you now view the checkout now page, from the "flexible cart module" this takes you to the checkout page, but if you then hover over the cart icon, nothing happens - no popup shows up
I know its pretty unlikely that someone will try to view the cart module popup, when actually at the cart page, I just wanted to point it out.

I modified this in both the staging1&2 sites if you need to have a look.

Also Just wanted to share that I use SH404SEF, so maybe this is causing the problem with this checkout link?

Thanks

Andy
Last Edit: 9 years 7 months ago by Andy Connell.
The administrator has disabled public write access.

Cart module loads homepage when Checkout now used? 9 years 7 months ago #10609

It is because of the "jquery conflict" that is happening in the shopping cart.
And since you are using a 3rd party extension on shopping cart page, i can't guide you any further to solve that conflict.

Open the "Browser Console" and you will see the "jQuery Conflict error message" there. The shopping cart module (which works based on jQuery) doesn't show up because of that conflict issue. Once the conflict resolved, the module will start working just fine.

Regards,
Support
Last Edit: 9 years 7 months ago by Support.
The administrator has disabled public write access.
Time to create page: 0.170 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo