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

TOPIC: Guest checkout not work

Guest checkout not work 5 years 1 month ago #14425

Only registered users can checkout OFF

Click Guest Checkout (kiskerpro.nextcomp.hu/component/virtuemart/editaddresscartBT?tmpl=component&flexible=guest&Itemid=531)

but the destination page is

Login/Registration form

thx
Attachments:
The administrator has disabled public write access.

Guest checkout not work 5 years 1 month ago #14430

Hi,

This has been discussed in this forum many times. The solution has been provided already

Please see this topic:
www.flexiblewebdesign.com/forum-virtuemart-2-template-puremart-support/542-register-and-checkout-popup-goes-to-joomla-login#2261

Regards.
The administrator has disabled public write access.

Guest checkout not work 5 years 1 month ago #14441

Hi,

this post helped, but the problem was this:

templates/flexible_lightmart/html/com_virtuemart/user/login.php

row 175:
<a class="flexibleButton flexibleModal" href="<?php echo JRoute::_('index.php?option=com_virtuemart&view=user&tmpl=component&flexible=guest&task=editaddresscart&addrtype=BT',$this->useXHTML,$this->useSSL) ?>" title="<?php echo JText::_('COM_VIRTUEMART_CHECKOUT_AS_GUEST'); ?>"><?php echo JText::_('COM_VIRTUEMART_CHECKOUT_AS_GUEST'); ?></a>

This row has to modify to absolute url with your domain (not menu's item):
<a class="flexibleButton flexibleModal" href="<?php echo JRoute::_('http://yourdomain.com/index.php?option=com_virtuemart&view=user&tmpl=component&flexible=guest&task=editaddresscart&addrtype=BT',$this->useXHTML,$this->useSSL) ?>" title="<?php echo JText::_('COM_VIRTUEMART_CHECKOUT_AS_GUEST'); ?>"><?php echo JText::_('COM_VIRTUEMART_CHECKOUT_AS_GUEST'); ?></a>

templates/flexible_lightmart/html/com_virtuemart/user/edit_adress.php

row 68:
<form method="post" id="userForm" target="_parent" name="userForm" class="form-validate <?php echo ($parameter == "guest")?'flexibleGuest':''?>" action="<?php echo JRoute::_('index.php?option=com_virtuemart&view=user',$this->useXHTML,$this->useSSL) ?>"

This row has to modify to absolute url with your domain (not menu's item):
<form method="post" id="userForm" target="_parent" name="userForm" class="form-validate <?php echo ($parameter == "guest")?'flexibleGuest':''?>" action="<?php echo JRoute::_('http://yourdomain.com/index.php?option=com_virtuemart&view=user',$this->useXHTML,$this->useSSL) ?>" >

Regards.
Last Edit: 5 years 1 month ago by Zsolt Sziklai.
The administrator has disabled public write access.

Guest checkout not work 5 years 1 month ago #14448

Hi,

According to feedbacks (and according to my experiences), menu-item adjustment is enough to tackle this problem.

But if you find editing the codes is better than the menu-item adjustment; then that's fine.

FYI: Editing the menu-item is basically the same thing as what you did to login.php file -- both of them avoids Joomla to generate SEF URL that requires login for guest-checkout links

Regards.
The administrator has disabled public write access.
Time to create page: 0.220 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