-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.3.6
-- PHP version -- : 2.5.x
I'm working on customizing my Hikashop to look more professional and user friendly, but I'm experiencing some problems.
1. Somehow only free download links are displayed on the product pages, while up until recently I'm pretty sure it would list the free download links and the paid download links if a customer bought that product. The way my site is setup is like this:
I sell digital products that don't need any sort of shipping, a customer buys a product and can then download the files when the payment is confirmed. Most of my products contain of a free demo package containing a small selection of the files and a full paid download that customers can download after purchase. They can access their files from the 'cpanel' or from the product page directly, but since recently the last option doesn't work anymore... After purchase of a product still only the free demo pack link is the only download link visible. Inside the cpanel I'm able to see the right files and links so my customers are still able to download their files, but I want this back to how it once was. So maybe you can help, I just want to display the 'paid download link' underneath the 'free demo download link' on my product pages.
Here is a screenshot of the product page where you can see the 'free demo download link':
As you can see I also added a new custom tab to the tabular layout containing those same download links as the ones talked about above. I took the code used to display the file download links and placed them in that new tab, so that I will have my file download links in a tab instead of under the 'Add to cart' button. However in this tab I get the same problem, only the free download links are displayed, not the links to the full product download even though I have a created confirmed order with those products under my own account.
As soon as I have the paid product links back and they work, I will then delete the default position for the file download links from the product page and continue using my own custom location for the links inside the new tab.
So please help me to get my paid links to display as well.
2. Question number two is regarding the cpanel. I'm using the cpanel and I've linked a menu item to the cpanel page. However when looking at the page the design looks not how it should be. I looked at the code inside the 'cpanel' display and saw that the table for each cpanel item is placed in a link code so that the entire table becomes the link and that the background and borders of the link code are changed in height regarding to the content in the table code.
I have so far NOT made any changes to the cpanel display so everything is still as default, but when looking at the resulting cpanel code on my site's frontend I can see something weird. The background and border of the link code are placed above the table and not around it, which is weird since the table is in the link code. So I then looked at the actual code of my cpanel page and saw that the table is located AFTER the closing link code and not INSIDE it like in the cpanel display on my backend...
Something must be conflicting with the layout of the cpanel but after searching for 5 hours today I'm starting to pull my hair out on this one... Please help!
This is how the 'cpanel' code looks on the backend:
<?php
/**
* @package HikaShop for Joomla!
* @version 2.4.0
* @author hikashop.com
* @copyright (C) 2010-2015 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><div class="hikashop_cpanel_main" id="hikashop_cpanel_main">
<div class="hikashop_cpanel_title" id="hikashop_cpanel_title">
<fieldset>
<div class="header hikashop_header_title"><h1><?php echo JText::_('CUSTOMER_ACCOUNT');?></h1></div>
</fieldset>
</div>
<div class="hikashopcpanel" id="hikashopcpanel">
<?php
foreach($this->buttons as $oneButton){
$url = hikashop_level($oneButton['level']) ? 'onclick="document.location.href=\''.$oneButton['link'].'\';"' : ''; ?>
<div <?php echo $url; ?> class="icon hikashop_cpanel_icon_div icon hikashop_cpanel_icon_div_<?php echo $oneButton['image'];?>">
<a href="<?php echo hikashop_level($oneButton['level']) ? $oneButton['link'] : '#'; ?>">
<table class="hikashop_cpanel_icon_table">
<tr>
<td class="hikashop_cpanel_icon_image">
<span class="hikashop_cpanel_icon_image_span icon-48-<?php echo $oneButton['image']; ?>" title="<?php echo $oneButton['text']; ?>"> </span>
<span class="hikashop_cpanel_button_text"><?php echo $oneButton['text']; ?></span>
</td>
<td>
<div class="hikashop_cpanel_button_description">
<?php echo $oneButton['description']; ?>
</div>
</td>
</tr>
</table>
</a>
</div>
<?php } ?>
</div>
</div>
<div class="clear_both"></div>
You can see that the table is placed INSIDE the link code.
This is the source code from the cpanel page on my frontend:
<div class="hikashopcpanel" id="hikashopcpanel">
<div onclick="document.location.href='/index.php/en/edit-account/profile?layout=edit';" class="icon hikashop_cpanel_icon_div icon hikashop_cpanel_icon_div_user2">
<a href="/index.php/en/edit-account/profile?layout=edit">
</a><table class="hikashop_cpanel_icon_table"><tr>
<td class="hikashop_cpanel_icon_image">
<span class="hikashop_cpanel_icon_image_span icon-48-user2" title="Customer Account"> </span>
<span class="hikashop_cpanel_button_text">Customer Account</span>
</td>
<td>
<div class="hikashop_cpanel_button_description">
<ul><li>Edit your account information</li></ul>
</div>
</td>
</tr></table>
</div>
Here you can see that the table is placed OUTSIDE and AFTER the closing link code... How can that even happen?
Please help on this since I'm all out of luck.