Post by supportip » Fri Dec 22, 2017 8:11 pm

Available module (Feature Category) Its current form

https://image.opencart.com/cache/59a74b ... 10x380.jpg


I want to change its design to

https://i.stack.imgur.com/bfiG9.jpg


i am trying my best, even i have fcategory.tpl file, which is showing category on home page, i also try to modify it but its not working.

fcategory.tpl

Code: Select all

<div class="row">
  <?php foreach ($categories as $category) { ?>
  <div class="product-layout col-lg-3 col-md-3 col-sm-6 col-xs-12">
    <div class="product-thumb transition">
      <div class="image"><a href="<?php echo $category['href']; ?>"><img src="<?php echo $category['thumb']; ?>" alt="<?php echo $category['name']; ?>" title="<?php echo $category['name']; ?>" class="img-responsive" /></a></div>
        <h4 style="padding: 0 30px;"><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a></h4>
    </div>
  </div>
  <?php } ?>
</div>
fcategory.php

Code: Select all

<?php
class ControllerExtensionModuleFcategory extends Controller {
	public function index($setting) {
		$this->load->language('extension/module/fcategory');

		$data['heading_title'] = $this->language->get('heading_title');

		$data['text_tax'] = $this->language->get('text_tax');

		$data['button_cart'] = $this->language->get('button_cart');
		$data['button_wishlist'] = $this->language->get('button_wishlist');
		$data['button_compare'] = $this->language->get('button_compare');

		$this->load->model('catalog/category');

		$this->load->model('tool/image');

		$data['categories'] = array();

		if (!$setting['limit']) {
			$setting['limit'] = 4;
		}

		if (!empty($setting['category'])) {
			$categories = array_slice($setting['category'], 0, (int)$setting['limit']);

			foreach ($categories as $category_id) {
				$category_info = $this->model_catalog_category->getCategory($category_id);

				if ($category_info) {
					if ($category_info['image']) {
						$image = $this->model_tool_image->resize($category_info['image'], $setting['width'], $setting['height']);
					} else {
						$image = $this->model_tool_image->resize('placeholder.png', $setting['width'], $setting['height']);
					}

					$data['categories'][] = array(
						'category_id'  => $category_info['category_id'],
						'thumb'       => $image,
						'name'        => $category_info['name'],
						'description' => utf8_substr(strip_tags(html_entity_decode($category_info['description'], ENT_QUOTES, 'UTF-8')), 0, $this->config->get('config_product_description_length')) . '..',
						'href'        => $this->url->link('product/category', 'path=' . $category_info['category_id'])
					);
				}
			}
		}

		if ($data['categories']) {
			if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/fcategory.tpl')) {
				return $this->load->view($this->config->get('config_template') . '/template/module/fcategory.tpl', $data);
			} else {
				return $this->load->view('extension/module/fcategory.tpl', $data);
			}
		}
	}
}
How much the development price ?

payment methods paypal

Newbie

Posts

Joined
Fri Apr 01, 2016 5:25 am

Post by Smith_1208 » Fri Dec 22, 2017 9:50 pm

Hello,

I have checked your requirement and I would be more than happy to assist you. As I understand you want to change the category grid layout as https://i.stack.imgur.com/bfiG9.jpg if so then please let me know if you have html or design ready to integrate or we need to create html for this block?

Please add me on Skype: cis.vincent so that we will discuss this more.

Regards,
Vincent

Newbie

Posts

Joined
Fri Dec 22, 2017 9:41 pm

Post by rgbrewer » Fri Dec 22, 2017 11:06 pm

I can handle this for you. Send me an email at rgbrewer@gmail.com :)

New member

Posts

Joined
Sat Apr 22, 2017 9:30 am

Post by supportip » Tue Dec 26, 2017 6:14 pm

Thank you all
Developed by #shivankagrawal
Thank you

Newbie

Posts

Joined
Fri Apr 01, 2016 5:25 am
Who is online

Users browsing this forum: No registered users and 9 guests