Jump to content

how to solve these 3 problems?


Recommended Posts

 I have 3 extremely important questions which are essential to building this site. I apologize if I've already posted something similar, but I haven't managed to solve the problems.

 

 1. It's about an image that I want to be displayed here (see the attached image) on the same line with the "categories" module and only on the first page. Right now, if I make the "slider" module public, the image will be displayed on all pages, which is why I've decided to remove it until I solve the problem.
2. A similar thing happens with the "block_categories" module, but this one is displayed on several pages, not on all of them. For example, if I click the "checkout" button, you'll notice that the "block_categories" module was made public as well, and I don't want that.
3. it's about the items on the product page. "Availability", "title", "items in stock" and "features"(annata, altezza, tipologia, and gradazione). As a result of some changes done by me, these items have moved on the right side and the title moved lower. I want the title to be back in its initial place and the items above to be on the left side.
 
 I really need help, especially with the first 2 problems, and I hope that I can find a solution here.

post-715508-0-11439100-1392802584_thumb.png

post-715508-0-55623600-1392802589_thumb.png

post-715508-0-18632400-1392802596_thumb.png

Link to comment
Share on other sites

For the homepage, have you tried enabling the home editorial block, and adding an image there?

 

ALso, you have a custom hook for the category block it seems, this is why it's showing up in the checkout as well. You might want to ensure that hook is only displayed in the homepage ({if $page_name == 'index'} added to the template where your hook is)

 

As for the product page layout, there are so many errors that it's hard to tell what you can begin with, did you pay for this template? Start by removing all those insane top margins from many elements in product.css maybe

Link to comment
Share on other sites

I've tried that code both for block_categories and for home_slider. Below I've posted the code segments that show that I've input that code and it doesn't work.

 

/modules/home_slider.tpl

{if $page_name == index}
<!-- Module HomeSlider -->

{if isset($homeslider)}
<script type="text/javascript">
{if isset($homeslider_slides) && $homeslider_slides|@count > 1}
	{if $homeslider.loop == 1}
		var homeslider_loop = true;
	{else}
		var homeslider_loop = false;
	{/if}
{else}
	var homeslider_loop = false;
{/if}
var homeslider_speed = {$homeslider.speed};
var homeslider_pause = {$homeslider.pause};
</script>
{/if}
{if isset($homeslider_slides)}
<ul id="homeslider">
{foreach from=$homeslider_slides item=slide}
	{if $slide.active}
		<li>
			<a href="{$slide.url|escape:'htmlall':'UTF-8'}" title="{$slide.description|escape:'htmlall':'UTF-8'}">
			<img src="{$link->getMediaLink("`$module_dir`images/`$slide.image|escape:'htmlall':'UTF-8'`")}" alt="{$slide.legend|escape:'htmlall':'UTF-8'}" height="{$homeslider.height|intval}" width="{$homeslider.width|intval}" />
			</a>
		</li>
	{/if}
{/foreach}
</ul>
{/if}

<!-- /Module HomeSlider -->
{/if}

/theme/default/modules/blockcategories/blockcategories.tpl

{if $page_name == index}
<!-- Module HomeSlider -->

{if isset($homeslider)}
<script type="text/javascript">
{if isset($homeslider_slides) && $homeslider_slides|@count > 1}
	{if $homeslider.loop == 1}
		var homeslider_loop = true;
	{else}
		var homeslider_loop = false;
	{/if}
{else}
	var homeslider_loop = false;
{/if}
var homeslider_speed = {$homeslider.speed};
var homeslider_pause = {$homeslider.pause};
</script>
{/if}
{if isset($homeslider_slides)}
<ul id="homeslider">
{foreach from=$homeslider_slides item=slide}
	{if $slide.active}
		<li>
			<a href="{$slide.url|escape:'htmlall':'UTF-8'}" title="{$slide.description|escape:'htmlall':'UTF-8'}">
			<img src="{$link->getMediaLink("`$module_dir`images/`$slide.image|escape:'htmlall':'UTF-8'`")}" alt="{$slide.legend|escape:'htmlall':'UTF-8'}" height="{$homeslider.height|intval}" width="{$homeslider.width|intval}" />
			</a>
		</li>
	{/if}
{/foreach}
</ul>
{/if}

<!-- /Module HomeSlider -->
{/if}{*
* 2007-2013 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <[email protected]>
*  @copyright  2007-2013 PrestaShop SA
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}

<!-- Block categories module -->
{if $page_name == index}
<div id="categories_block_left" class="block">
	<p class="title_block">{l s='Categories' mod='blockcategories'}</p>
	<div class="block_content">
		<ul class="tree {if $isDhtml}dhtml{/if}">
		{foreach from=$blockCategTree.children item=child name=blockCategTree}
			{if $smarty.foreach.blockCategTree.last}
				{include file="$branche_tpl_path" node=$child last='true'}
			{else}
				{include file="$branche_tpl_path" node=$child}
			{/if}
		{/foreach}
		</ul>
		{* Javascript moved here to fix bug #PSCFI-151 *}
		<script type="text/javascript">
		// <![CDATA[
			// we hide the tree only if JavaScript is activated
			$('div#categories_block_left ul.dhtml').hide();
		// ]]>
		</script>
	</div>
</div>
{/if}
<!-- /Block categories module -->

 I've also published the home_slider module in order for you to see how it looks.

 

 Do I need to add the code in a specific place? I've added it for home_slider and the entire module displayed. That's why I've posted the code, maybe you can help me input it.. although it shouldn't bee too complicated..

Edited by d.crysty23 (see edit history)
Link to comment
Share on other sites

 look.. I've done just like you said and there's no change

 

homeslider.tpl

<!-- Module HomeSlider -->
{if $page_name == 'index'}
{if isset($homeslider)}
<script type="text/javascript">
{if isset($homeslider_slides) && $homeslider_slides|@count > 1}
	{if $homeslider.loop == 1}
		var homeslider_loop = true;
	{else}
		var homeslider_loop = false;
	{/if}
{else}
	var homeslider_loop = false;
{/if}
var homeslider_speed = {$homeslider.speed};
var homeslider_pause = {$homeslider.pause};
</script>
{/if}
{if isset($homeslider_slides)}
<ul id="homeslider">
{foreach from=$homeslider_slides item=slide}
	{if $slide.active}
		<li>
			<a href="{$slide.url|escape:'htmlall':'UTF-8'}" title="{$slide.description|escape:'htmlall':'UTF-8'}">
			<img src="{$link->getMediaLink("`$module_dir`images/`$slide.image|escape:'htmlall':'UTF-8'`")}" alt="{$slide.legend|escape:'htmlall':'UTF-8'}" height="{$homeslider.height|intval}" width="{$homeslider.width|intval}" />
			</a>
		</li>
	{/if}
{/foreach}
</ul>
{/if}
{/if}
<!-- /Module HomeSlider -->

Link to comment
Share on other sites

I solved the first two prolems, the most important ones, by adding exceptions to the specific module. 

Regarding the last problem, do you think I should add the original product.css file and try to rearrange the elements from scratch? Or should I try correcting what is wrong now?

Link to comment
Share on other sites

×
×
  • Create New...