checkout payment start download

  • Posts: 16
  • Thank you received: 0
11 years 5 months ago #135219

-- url of the page with the problem -- : mywebsite.com/mypage
-- HikaShop version -- : 2.3.x
-- Joomla version -- : 2.5
-- Payment -- Fidelity Points Card
-- Browser(s) name and version -- : ff

hi
i sell digital media
now when user gos to checkout nd clicks pay, points are reduced and text shows up: Your order is now complete.

is it possible when payment is done, download start automaticly or user is automaticli redirected to download folder so he can download the file?

regards
igor

Please Log in or Create an account to join the conversation.

  • Posts: 83779
  • Thank you received: 13566
  • MODERATOR
11 years 5 months ago #135273

You,

You can edit "end" file of view "checkout" via the menu Display>Views and add a redirect to the download folder if you want.

The following user(s) said Thank You: IgorMM

Please Log in or Create an account to join the conversation.

  • Posts: 16
  • Thank you received: 0
11 years 5 months ago #135334

thx
for the fast reply

i can only see this code

<?php
/**
 * @package  HikaShop for Joomla!
 * @version  2.2.2
 * @author  hikashop.com
 * @copyright  (C) 2010-2013 HIKARI SOFTWARE. All rights reserved.
 * @license  GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?><?php
if(empty($this->html)){
  echo JText::_('THANK_YOU_FOR_PURCHASE');
}else{
  echo $this->html;
}
$this->nextButton = false;

what must i edit here so when users Finishes purches, he's redirected so cutumer_downloadlist

regards

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 5 months ago #135345

Hi,
The best solution will probably be to redirect your customers to their download space so that they can directly download their files.
Here is more information about the download space :

I think that the best solution to handle download file will be to enable your customer download space, through the "Enable customer download area" option of your "Hikashop->System->Configuration->'Main'" page.

The download space will allow your customer to see all their available download files and download them until they reach the download limit.

This download will be available through the "User control panel"
Hope this will help you.

The following user(s) said Thank You: IgorMM

Please Log in or Create an account to join the conversation.

  • Posts: 16
  • Thank you received: 0
11 years 5 months ago #135349

hi
thx for the reply

yes i understand that user can see in there's user control panel, and download.
but on my site about 70% of people are "stupid" so i need to be as few clicks as possible.
so i need, when user clicks add to cart, cart opens automaticly, and when the click Finish - i dont need text thx for payment ect..
i need to open user_download section so the just click download,
i think that this cant be so big of a problem.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 5 months ago #135358

Ok, so using this kind of code will probably do the job :

<?php
global $Itemid;
$ItemidUrl = '';
      if(!empty($Itemid)){
        $ItemidUrl='&Itemid='.$Itemid;
      }
$link = "index.php?option=com_hikashop&ctrl=user&task=downloads".$ItemidUrl;
$app = JFactory::getApplication();
$app->redirect(HIKASHOP_LIVE. $link .$Itemid);
?>

The following user(s) said Thank You: IgorMM

Please Log in or Create an account to join the conversation.

  • Posts: 16
  • Thank you received: 0
11 years 5 months ago #135368

thenk you werry much :lol: you made my day :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum