-- Joomla version -- : 3.8
-- PHP version -- : 5.6
I have both free and paid products. I want the users to be redirected to a link after checkout.
I modified the end.php as given below. It works perfectly fine for free products. After checkout gets redirected to the page "my-cabin" (a link within my website)
(fyi editing after_end.php file has no effect in altering the functionality in anyway)
<?php
/**
* @package HikaShop for Joomla!
* @version 2.3.3
* @author hikashop.com
* @copyright (C) 2010-2014 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><?php
$app = JFactory::getApplication();
$app->enqueueMessage( JText::_('Thank You For Purchasing The Task.') );
$app->redirect('/my-cabin');
But the problem is with the paid products. After checkout, instead of going to the payment gateway page, it gets redirected to "my-cabin" page.
Can i have help in knowing what exactly needs to be changed in the code so that for the paid products, it gets redirected to the payment gateway page.
(i use payu india and the plugin has the functionality for the return url after order confirmation.)