Post by pCpaLex » Tue Apr 25, 2017 5:16 pm

Salut opencart,

Am si eu o problema si sper sa o rezolvam . Problema consta in faptul ca la mine in categorie nu se afiseaza descrierea ..
http://climapro.ro/Incalzire , ventilatie , etc ...

Care sa fie problema ?

Active Member

Posts

Joined
Wed Sep 17, 2014 4:53 pm

Post by florinsith » Tue Apr 25, 2017 9:15 pm

Daca sunteti 100% sigur ca acea categorie are descriere, atunci probabil tema este cea care nu o afiseaza.

Image
My Extensions - SuperTheme - Opencart templates - Opencart modules


User avatar
Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am


Post by pCpaLex » Wed Apr 26, 2017 12:57 am

Sunt 100% sigur ca are descriere . Pai si cum pot modifica tema sa imi arate ?

Active Member

Posts

Joined
Wed Sep 17, 2014 4:53 pm

Post by pCpaLex » Thu Apr 27, 2017 2:50 pm

Upp !

Active Member

Posts

Joined
Wed Sep 17, 2014 4:53 pm

Post by asistentu » Thu Apr 27, 2017 7:03 pm

ia legatura cu dezvoltatorul temei hugeshop

New member

Posts

Joined
Thu Jan 30, 2014 12:58 am


Post by iwspal » Fri Apr 28, 2017 7:11 pm

Sal.

Cauta "echo $description;" in fisierul : opencart_root/catalog/view/theme/hugeshop/template/product/category.tpl
Daca exista, verifica daca se afla in interiorul unui "IF" si, daca da, vezi daca se verifica acea conditie din IF. Daca nu, de-aia nu se afiseaza.
Daca nu exista, de-aia nu se afiseaza si ar trebui sa iei legatura cu producatorul temei.

Newbie

Posts

Joined
Fri Apr 28, 2017 6:59 pm

Post by pCpaLex » Tue May 02, 2017 2:55 pm

Arata asa :
<?php if ($description) { ?>
<div class="category-des"><?php echo $description; ?></div>
<?php } ?>
<?php } ?>
Am modificat asa : ( si tot nu merge ) " <?php if echo $description; ?>

Active Member

Posts

Joined
Wed Sep 17, 2014 4:53 pm

Post by florinsith » Tue May 02, 2017 9:24 pm

Nu inteleg modificarea facuta. Vad } de 2 ori si un singur if, asta sugereaza ca mai este un if deasupra celui pus de tine.

Image
My Extensions - SuperTheme - Opencart templates - Opencart modules


User avatar
Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am


Post by pCpaLex » Mon May 08, 2017 4:14 pm

Ma duc in catalog/view/theme/tt_huge1/template/product/category.tpl si am asa :
Ce modific ?

Code: Select all

<?php echo $header; ?>
<div class="content-top">
	<h2><?php echo $heading_title; ?></h2>
	<ul class="breadcrumb">
		<?php foreach ($breadcrumbs as $breadcrumb) { ?>
		<li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
		<?php } ?>
	</ul>
</div>
<div class="container">
	<div class="row"><?php echo $column_left; ?>
    <?php if ($column_left && $column_right) { ?>
    <?php $class = 'col-sm-6'; ?>
    <?php } elseif ($column_left || $column_right) { ?>
    <?php $class = 'col-sm-9'; ?>
    <?php } else { ?>
    <?php $class = 'col-sm-12'; ?>
    <?php } ?>
    <div id="content" class="<?php echo $class; ?>">
		<div class="thum-category">
			<?php if ($thumb || $description) { ?>
			<?php if ($thumb) { ?>
			<div class="category-image"><img src="<?php echo $thumb; ?>" alt="<?php echo $heading_title; ?>" title="<?php echo $heading_title; ?>" class="img-thumbnail" /></div>
			<?php } ?>
			<?php if ($description) { ?>
			<div class="category-des"><?php echo $description; ?></div>
			<?php } ?>
			<?php } ?>
		</div>
		<?php echo $content_top; ?>
		<div class="category-list">
		  <?php if ($categories) { ?>
		  <h3><?php echo $text_refine; ?></h3>
		  <?php if (count($categories) <= 5) { ?>
		  <ul>
			<?php foreach ($categories as $category) { ?>
			<li><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a></li>
			<?php } ?>
		  </ul>
		  <?php } else { ?>
			<?php foreach (array_chunk($categories, ceil(count($categories) / 4)) as $categories) { ?>
			  <ul>
				<?php foreach ($categories as $category) { ?>
				<li><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a></li>
				<?php } ?>
			  </ul>
			<?php } ?>
		  <?php } ?>
		  <?php } ?>
	</div>
      <?php if ($products) { ?>
      <div class="row-compare"><a href="<?php echo $compare; ?>" id="compare-total"><?php echo $text_compare; ?></a></div>
      <div class="product-filter">
        <div class="btn-group">
            <button type="button" id="list-view" class="btn btn-default"  title="<?php echo $button_list; ?>"><i class="fa fa-th-list"></i></button>
            <button type="button" id="grid-view" class="btn btn-default"  title="<?php echo $button_grid; ?>"><i class="fa fa-th"></i></button>
        </div>
        <div class="sort">
          <label class="control-label" for="input-sort"><?php echo $text_sort; ?></label>
          <select id="input-sort" class="form-control col-sm-3" onchange="location = this.value;">
            <?php foreach ($sorts as $sorts) { ?>
            <?php if ($sorts['value'] == $sort . '-' . $order) { ?>
            <option value="<?php echo $sorts['href']; ?>" selected="selected"><?php echo $sorts['text']; ?></option>
            <?php } else { ?>
            <option value="<?php echo $sorts['href']; ?>"><?php echo $sorts['text']; ?></option>
            <?php } ?>
            <?php } ?>
          </select>
        </div>
        <div class="limit">
          <label class="control-label" for="input-limit"><?php echo $text_limit; ?></label>
          <select id="input-limit" class="form-control" onchange="location = this.value;">
            <?php foreach ($limits as $limits) { ?>
            <?php if ($limits['value'] == $limit) { ?>
            <option value="<?php echo $limits['href']; ?>" selected="selected"><?php echo $limits['text']; ?></option>
            <?php } else { ?>
            <option value="<?php echo $limits['href']; ?>"><?php echo $limits['text']; ?></option>
            <?php } ?>
            <?php } ?>
          </select>
        </div>
      </div>	  
      <div class="row products-category">
        <?php foreach ($products as $product) { ?>
        <div class="product-layout product-list col-xs-12">
		<div class="product-container">
			<div class="item">
				<div class="item-inner">
					<div class="products-images">
						<div class="left-block">
							<div class="image"><a href="<?php echo $product['href']; ?>"><img class="image1" src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" /><img class="image2" src="<?php echo $product['rotator_image'] ?>" alt="" /></a></div>
							<div class="add-to-links">
								<div class="wishlist"><button type="button" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>');"><span><?php echo $button_wishlist; ?></span></button></div>
								<div class="compare"><button type="button" title="<?php echo $button_compare; ?>" onclick="compare.add('<?php echo $product['product_id']; ?>');"><span><?php echo $button_compare; ?></span></button></div>
							</div>
						</div>
					</div>
					<div class="right-block">
						<div class="caption">
							<div class="box-content">
								<div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>
								<?php if (isset($product['rating'])) { ?>
								<div class="rating"><img src="catalog/view/theme/default/image/stars-<?php echo $product['rating']; ?>.png" alt=""  /></div>
								<?php } ?>
								<div class="price-box">
									<?php if ($product['price']) { ?>
									<p class="price">
									  <?php if (!$product['special']) { ?>
									  <?php echo $product['price']; ?>
									  <?php } else { ?>
									  <span class="price-new"><?php echo $product['special']; ?></span> <span class="price-old"><?php echo $product['price']; ?></span>
									  <?php } ?>
									  <?php if ($product['tax']) { ?>
									  <span class="price-tax"><?php echo $text_tax; ?> <?php echo $product['tax']; ?></span>
									  <?php } ?>
									</p>
									<?php } ?>
								</div>
								<p class="description"><?php echo $product['description']; ?></p>
							</div>
							<div class="item-hover">
								<div class="actions">
									<div class="button-group">
										<div class="cart"><button type="button" title="<?php echo $button_cart; ?>" onclick="cart.add('<?php echo $product['product_id']; ?>');"><span><?php echo $button_cart; ?></span></button></div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		</div>
        <?php } ?>
      </div>
      <div class="row">
        <div class="col-sm-6 text-left"><?php echo $pagination; ?></div>
        <div class="col-sm-6 text-right"><?php echo $results; ?></div>
      </div>
      <?php } ?>
      <?php if (!$categories && !$products) { ?>
      <p><?php echo $text_empty; ?></p>
      <div class="buttons">
        <div class="pull-right"><a href="<?php echo $continue; ?>" class="btn btn-primary"><?php echo $button_continue; ?></a></div>
      </div>
      <?php } ?>
      <?php echo $content_bottom; ?></div>
    <?php echo $column_right; ?></div>
</div>
<?php echo $footer; ?>

Active Member

Posts

Joined
Wed Sep 17, 2014 4:53 pm

Post by asistentu » Mon May 08, 2017 9:10 pm

<?php if ($description) { ?>
<div class="category-des"><?php echo $description; ?></div>
<?php } ?>

in

<div class="category-des"><?php echo $description; ?></div>

New member

Posts

Joined
Thu Jan 30, 2014 12:58 am


Post by pCpaLex » Mon May 08, 2017 9:15 pm

Nimic ... Nici o schimbare...

Active Member

Posts

Joined
Wed Sep 17, 2014 4:53 pm

Post by pCpaLex » Wed May 10, 2017 1:49 pm

Up... !

Active Member

Posts

Joined
Wed Sep 17, 2014 4:53 pm

Post by opencartromania » Wed May 10, 2017 4:26 pm

Salutare!

Cauze:
1. un vqmod or ocmod care suprascrie informatie legata de descriere in controller sau view (indicat ar fi sa verifici si log-urile)
2. thema incompleta sau cu probleme, null-ific-ata de pe undeva ... (motiv ptr. care nu iei legatura cu dezvoltatorul)

Verifica cele de mai sus si vei gasi raspuns problemei.

Succes!

User avatar
Active Member

Posts

Joined
Wed Sep 25, 2013 9:26 pm


Post by asistentu » Wed May 10, 2017 4:54 pm

ti-am trimis mesaj privat.

New member

Posts

Joined
Thu Jan 30, 2014 12:58 am


Post by pCpaLex » Wed May 10, 2017 6:28 pm

opencartromania wrote:
Wed May 10, 2017 4:26 pm
Salutare!

Cauze:
1. un vqmod or ocmod care suprascrie informatie legata de descriere in controller sau view (indicat ar fi sa verifici si log-urile)
2. thema incompleta sau cu probleme, null-ific-ata de pe undeva ... (motiv ptr. care nu iei legatura cu dezvoltatorul)

Verifica cele de mai sus si vei gasi raspuns problemei.

Succes!
Multumesc pentru raspuns .

Am verificat log-urile si am doar o singura eroare de vre-o 100 de ori .

Eroare tip:

Code: Select all

2017-05-10 9:31:43 - PHP Notice:  Undefined index: rotator_image2 in /public_html/catalog/view/theme/tt_huge1/template/extension/module/oclayerednavigation/occategoryfilter.tpl on line 40
Am verificat linia 40 si este aceasta :

Code: Select all

<div class="image"><a href="<?php echo $product['href']; ?>"><img class="image1" src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" /><img class="image2" src="<?php echo $product['rotator_image2'] ?>" alt="" /></a></div>
Si aici este tot fisierul Occategoryfilter.tpl

Code: Select all

<?php if ($products) { ?>
<p><a href="<?php echo $compare; ?>" id="compare-total"><?php echo $text_compare; ?></a></p>
<div class="product-filter">
	<div class="btn-group">
		<button type="button" id="list-view" class="btn btn-default" title="<?php echo $button_list; ?>"><i class="fa fa-th-list"></i></button>
		<button type="button" id="grid-view" class="btn btn-default" title="<?php echo $button_grid; ?>"><i class="fa fa-th"></i></button>
	</div>
    <div class="sort">
        <label class="control-label" for="input-sort"><?php echo $text_sort; ?></label>
        <select id="input-sort" class="form-control" onchange="oclayerednavigationajax.filter(this.value)">
            <?php foreach ($sorts as $sorts) { ?>
            <?php if ($sorts['value'] == $sort . '-' . $order) { ?>
            <option value="<?php echo $sorts['href']; ?>" selected="selected"><?php echo $sorts['text']; ?></option>
            <?php } else { ?>
            <option value="<?php echo $sorts['href']; ?>"><?php echo $sorts['text']; ?></option>
            <?php } ?>
            <?php } ?>
        </select>
    </div>
    <div class="limit">
        <label class="control-label" for="input-limit"><?php echo $text_limit; ?></label>
        <select id="input-limit" class="form-control" onchange="oclayerednavigationajax.filter(this.value)">
            <?php foreach ($limits as $limits) { ?>
            <?php if ($limits['value'] == $limit) { ?>
            <option value="<?php echo $limits['href']; ?>" selected="selected"><?php echo $limits['text']; ?></option>
            <?php } else { ?>
            <option value="<?php echo $limits['href']; ?>"><?php echo $limits['text']; ?></option>
            <?php } ?>
            <?php } ?>
        </select>
    </div>
</div>
<div class="row products-category">
				<?php foreach ($products as $product) { ?>
				<div class="product-layout product-list col-xs-12">
				<div class="product-container">
					<div class="item-inner">
						<div class="left-block">
							<div class="products">
								<div class="image"><a href="<?php echo $product['href']; ?>"><img class="image1" src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" /><img class="image2" src="<?php echo $product['rotator_image2'] ?>" alt="" /></a></div>
							</div>
						</div>
						<div class="right-block">
							<div class="caption">
								<div class="box-content">
									<div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>
									<div class="price-box">
										<?php if ($product['price']) { ?>
										<p class="price">
										  <?php if (!$product['special']) { ?>
										  <?php echo $product['price']; ?>
										  <?php } else { ?>
										  <span class="price-new"><?php echo $product['special']; ?></span> <span class="price-old"><?php echo $product['price']; ?></span>
										  <?php } ?>
										  <?php if ($product['tax']) { ?>
										  <span class="price-tax"><?php echo $text_tax; ?> <?php echo $product['tax']; ?></span>
										  <?php } ?>
										</p>
										<?php } ?>
									</div>
									<p class="description"><?php echo $product['description']; ?></p>
									<?php if (isset($product['rating'])) { ?>
									<div class="rating"><img src="catalog/view/theme/default/image/stars-<?php echo $product['rating']; ?>.png" alt=""  /></div>
									<?php } ?>
									<div class="item-box-hover">
										<div class="actions">
											<div class="button-group">
												<div class="add-to-links">
													<div class="cart"><button type="button" title="<?php echo $button_cart; ?>" onclick="cart.add('<?php echo $product['product_id']; ?>');"><span><span><?php echo $button_cart; ?></span></span></button></div>
													<div class="wishlist"><button type="button" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>');"><span><?php echo $button_wishlist; ?></span></button></div>
													<div class="compare"><button type="button" title="<?php echo $button_compare; ?>" onclick="compare.add('<?php echo $product['product_id']; ?>');"><span><?php echo $button_compare; ?></span></button></div>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
				</div>
				<?php } ?>
				</div>
<div class="row">
    <div class="col-sm-6 text-left"><?php echo $pagination; ?></div>
    <div class="col-sm-6 text-right"><?php echo $results; ?></div>
</div>
<?php } ?>
<?php if (!$categories && !$products) { ?>
<p><?php echo $text_empty; ?></p>
<div class="buttons">
    <div class="pull-right"><a href="<?php echo $continue; ?>" class="btn btn-primary"><?php echo $button_continue; ?></a></div>
</div>
<?php } ?>

<script type="text/javascript">
    // Product List
    $('#list-view').click(function() {
        $('#content .product-layout > .clearfix').remove();

        $('#content .product-layout').attr('class', 'product-layout product-list col-xs-12');

        localStorage.setItem('display', 'list');
    });

    // Product Grid
    $('#grid-view').click(function() {
        $('#content .product-layout > .clearfix').remove();

        // What a shame bootstrap does not take into account dynamically loaded columns
        cols = $('#column-right, #column-left').length;

        if (cols == 2) {
            $('#content .product-layout').attr('class', 'product-layout product-grid col-lg-6 col-md-6 col-sm-12 col-xs-12');
        } else if (cols == 1) {
            $('#content .product-layout').attr('class', 'product-layout product-grid col-lg-4 col-md-4 col-sm-6 col-xs-12');
        } else {
            $('#content .product-layout').attr('class', 'product-layout product-grid col-lg-3 col-md-3 col-sm-6 col-xs-12');
        }

        localStorage.setItem('display', 'grid');
    });
</script>

Care este problema ???

Active Member

Posts

Joined
Wed Sep 17, 2014 4:53 pm

Post by opencartromania » Wed May 10, 2017 8:19 pm

Ai sarit complet punctul 1, unde banuiesc ca e problema (ai mod-uri care sa-ti rescrie controller-ul, dezactiveaza-le pe rand)

Incearca:
- pune urmatoarea linie, inmediat dupa foreach vezi daca apare ceva:

<?php echo $product['description']; ?>

Posteaza si controller-ul aici.

User avatar
Active Member

Posts

Joined
Wed Sep 25, 2013 9:26 pm


Post by pCpaLex » Thu May 11, 2017 3:30 pm

opencartromania wrote:
Wed May 10, 2017 8:19 pm
Ai sarit complet punctul 1, unde banuiesc ca e problema (ai mod-uri care sa-ti rescrie controller-ul, dezactiveaza-le pe rand)

Incearca:
- pune urmatoarea linie, inmediat dupa foreach vezi daca apare ceva:

<?php echo $product['description']; ?>

Posteaza si controller-ul aici.

Code: Select all

<?php

abstract class Controller {

	protected $registry;



	public function __construct($registry) {

		$this->registry = $registry;

	}



	public function __get($key) {

		return $this->registry->get($key);

	}



	public function __set($key, $value) {

		$this->registry->set($key, $value);

	}

}
P.s: Ce am mai observat eu este ca descrierea care nu se afiseaza in categorie se afiseaza in titlu...
Poza aici

Active Member

Posts

Joined
Wed Sep 17, 2014 4:53 pm

Post by asistentu » Fri May 12, 2017 12:11 am

Aia e meta descrierea.
Asa o lungim pana la iarna, trimite-mi datele de login pe PM, daca vrei.

New member

Posts

Joined
Thu Jan 30, 2014 12:58 am

Who is online

Users browsing this forum: No registered users and 11 guests