PHP Troubleshooting for Joomla/Virteumart Online Store
$30-250 USD
Fechado
Publicado há mais de 12 anos
$30-250 USD
Pago na entrega
My site runs on Joomla, and my shop is powered by VirtueMart. Almost everything is working properly, but I'm having one problem with it. I'm using 2 different types of templates - one for the main site, and one for the [login to view URL] problem is occuring when a person puts an item in the cart, then goes to check-out. They are required to register on the site by filling out the form that comes up when selecting the radio button "New? Please Provide Your Billing Information". Once you fill out the information and hit the "Send Registration" button, you are redirected to [login to view URL] which is using the main site's template, so it screws up the layout. Is it possible to redirect that to go to the cart page instead of [login to view URL] I think this is the code that needs to be edited:
// Redirect to the Checkout Page if the cart is not empty
if( !empty( $_SESSION['cart']['idx'])) {
$redirect_to_page = $d['page'];
} else {
$redirect_to_page = HOMEPAGE;
}
vmRedirect( $sess->url( '[login to view URL]'.$redirect_to_page, false, false ), $VM_LANG->_('REG_COMPLETE') );
}
if( !empty($my->id) || !empty($auth['user_id']) ) {
$redirect_to_page = $d['page'];
vmRedirect( $sess->url( '[login to view URL]'.$redirect_to_page, false, false ) );
}
else {
$GLOBALS['page'] = '[login to view URL]';
$msg = strip_tags( $VM_LANG->_('REG_COMPLETE_ACTIVATE',false) );
$vmLogger->info( $msg );
}