Jump to content
Jiten rash (away)

Fully Responsive + rich snippets Home featured module

Recommended Posts

yes vekia..wait 2 min itemscope spells wrong here in on one element..i will quick edit it..

after some day i m planning to add slides with jquery tabs featured products>best selller>new products

  • Like 1

Share this post


Link to post
Share on other sites

Hi, 

Nice module bur I have an isue installing it!

 

"Responsive homefeatured is not a valid module name."

I tried to delete everything with the same name, but it is the same.

 

Prestshop 1.5.4.1

www.impression-drapeaux.fr

Share this post


Link to post
Share on other sites

ummm its in config.xml change it to home featured,,,

 

but no issue u just upload homefeatured.tpl from folder >homefeatured\themes\your theme or default\modules\homefeatured

to same in your server and replace ur css with

Share this post


Link to post
Share on other sites

Hi Jiten,

it is working now!! Thanks!

 

But I have a error:

Warning: math: parameter liHeight: is not numeric in /home/www/zzimpressiondrapeaux/tools/smarty/plugins/function.math.php on line 63

 

an Idea?

Share this post


Link to post
Share on other sites

i wud like to see how it looks

Warning: math: parameter liHeight: is not numeric in /home/www/zzimpressiondrapeaux/tools/smarty/plugins/function.math.php on line 63

 

its saying height is not numeric cos i have given auto as a value

u can simply remove this line

    {assign var='liHeight' value=auto} on themes/modules/homefeatured/homefeatured.tpl line 31

Share this post


Link to post
Share on other sites

ok done, now I have:

Warning: math: function call liHeight not allowed in /home/www/zzimpressiondrapeaux/tools/smarty/plugins/function.math.php on line 50

 

Sorry!!! 

Share this post


Link to post
Share on other sites

ok Jiten, i updated free modules list, your module is there in "front office features" section

thank you for your contribution, its very useful!

  • Like 1

Share this post


Link to post
Share on other sites

Hi,

 

Great module, thank you so much for this . 

 

But one question,

 

I successfully installed the module and no errors or no change in the front office,i did not change or edit any page after installing it

 

How i know rich snippets working or do i need to edit and add any of my details (like webmaster tool account name) to some files ?Simply clicking module installation button in the back office is enough ?

 

Sorry i'm new to the rich snippets.

 

Thank you again.

Share this post


Link to post
Share on other sites

hello Jiten

 

does it work in lates 1.5.6 release?

Share this post


Link to post
Share on other sites

How can i edit or remove grey bottom line with shadow in this module ? 

And i tested in 1.5.6 rel. it's working.

 

Share this post


Link to post
Share on other sites

u need to remove this line on #featured-products_block_center{

    box-shadow: 0px 8px 6px -6px rgb(136, 136, 136);
 

 

if u like image to zoom a little on hover add this
 here on this

featured-products_block_center .product_image:hover {

    transform: scale(1.1);

Share this post


Link to post
Share on other sites

Hello,

 

thanks for this module can you think we can organize products per categories?

Share this post


Link to post
Share on other sites
Hi,

 

thank you for the module.

 

I have replaced homefeatured.css in my homefeatured module with the replacement homefeatured.css file and did the same with the homefeatured.tpl in my themes/modules/homefeatured module but when I go to configure the homefeatured module in the BO I don't see any changes.

 

Have I done this correctly? If so will I see rich snippets once Google revisits my site?

Share this post


Link to post
Share on other sites

Hello, does this module work on prestashop 1.4.8.2 ?

 

I get an error message stating that the module was not installed successfully.

 

I tried to install by uploading from my computer to the back office, and then clicking on install.

 

Thanks

Share this post


Link to post
Share on other sites

Does this module have pagination? i'd like to put all my products (more or less 150) in homepage, so i need to display it in different pages...

Share this post


Link to post
Share on other sites

I have a module like this default on my modules list

 

Featured products on the homepage. INSTALLED
Developed by : PrestaShop+jiten... | Version : 0.9 | Category : Front Office Features

 

 

 

 

Is it the same as the module in this topic? When I try to install the module downloaded from this topic it seems to be the same

Share this post


Link to post
Share on other sites

Hello guys Fully Responsive very beautifully designed + added with rich snippets

Home featured module .

I have spent a lot of time Improving this module Download :)

and well tested in two colums + 1 column

 

DEMO HERE

Всем привет! Ссылка: http://botqhomeneeds.com/demox не работает, поправьте ее плиз! 

Share this post


Link to post
Share on other sites

that's right, demo link doesn't work

Jiten - can you post working demo please?

Share this post


Link to post
Share on other sites

you have to reduce width of <li> object, change it from 157 t

#featured-products_block_center li {
width: 137px;
height: 242px;
margin: 21px 8px 1px 14px;
padding: 1px 7px;
border: 1px dotted #ede;
} 

o 137

Share this post


Link to post
Share on other sites

Hello Vekia,

 

Still doesn`t work :( 

 

Is there something else I can do? 

 

Best Regards!

Share this post


Link to post
Share on other sites

thank you for confirmation

i checked it also on other browsers and seems like everything is fine now :)

Share this post


Link to post
Share on other sites

Thanks do you have the results and it's work on 1.5.6.1?

 

Do you have a method to show all categories without ID?

Edited by papich (see edit history)

Share this post


Link to post
Share on other sites

in this case you will have to modify a bit core.

it's necessary to add this function:

	public static function getAllProducts($id_lang, $page_number = 0, $nb_products = 10, $count = false, $order_by = null, $order_way = null, Context $context = null)
	{
		if (!$context)
			$context = Context::getContext();

		$front = true;
		if (!in_array($context->controller->controller_type, array('front', 'modulefront')))
			$front = false;

		if ($page_number < 0) $page_number = 0;
		if ($nb_products < 1) $nb_products = 10;
		if (empty($order_by) || $order_by == 'position') $order_by = 'date_add';
		if (empty($order_way)) $order_way = 'DESC';
		if ($order_by == 'id_product' || $order_by == 'price' || $order_by == 'date_add'  || $order_by == 'date_upd')
			$order_by_prefix = 'p';
		else if ($order_by == 'name')
			$order_by_prefix = 'pl';
		if (!Validate::isOrderBy($order_by) || !Validate::isOrderWay($order_way))
			die(Tools::displayError());

		$groups = FrontController::getCurrentCustomerGroups();
		$sql_groups = (count($groups) ? 'IN ('.implode(',', $groups).')' : '= 1');
		if (strpos($order_by, '.') > 0)
		{
			$order_by = explode('.', $order_by);
			$order_by_prefix = $order_by[0];
			$order_by = $order_by[1];
		}
		if ($count)
		{
			$sql = 'SELECT COUNT(p.`id_product`) AS nb
					FROM `'._DB_PREFIX_.'product` p
					'.Shop::addSqlAssociation('product', 'p').'
					WHERE product_shop.`active` = 1
					'.($front ? ' AND product_shop.`visibility` IN ("both", "catalog")' : '').'
					AND p.`id_product` IN (
						SELECT cp.`id_product`
						FROM `'._DB_PREFIX_.'category_group` cg
						LEFT JOIN `'._DB_PREFIX_.'category_product` cp ON (cp.`id_category` = cg.`id_category`)
						WHERE cg.`id_group` '.$sql_groups.'
					)';
			return (int)Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($sql);
		}

		$sql = new DbQuery();
		$sql->select(
			'p.*, product_shop.*, stock.out_of_stock, IFNULL(stock.quantity, 0) as quantity, pl.`description`, pl.`description_short`, pl.`link_rewrite`, pl.`meta_description`,
			pl.`meta_keywords`, pl.`meta_title`, pl.`name`, MAX(image_shop.`id_image`) id_image, il.`legend`, m.`name` AS manufacturer_name
			 '
		);

		$sql->from('product', 'p');
		$sql->join(Shop::addSqlAssociation('product', 'p'));
		$sql->leftJoin('product_lang', 'pl', '
			p.`id_product` = pl.`id_product`
			AND pl.`id_lang` = '.(int)$id_lang.Shop::addSqlRestrictionOnLang('pl')
		);
		$sql->leftJoin('image', 'i', 'i.`id_product` = p.`id_product`');
		$sql->join(Shop::addSqlAssociation('image', 'i', false, 'image_shop.cover=1'));
		$sql->leftJoin('image_lang', 'il', 'i.`id_image` = il.`id_image` AND il.`id_lang` = '.(int)$id_lang);
		$sql->leftJoin('manufacturer', 'm', 'm.`id_manufacturer` = p.`id_manufacturer`');

		$sql->where('product_shop.`active` = 1');

		if ($front)
			$sql->where('product_shop.`visibility` IN ("both", "catalog")');
		

		$sql->where('p.`id_product` IN (
			SELECT cp.`id_product`
			FROM `'._DB_PREFIX_.'category_group` cg
			LEFT JOIN `'._DB_PREFIX_.'category_product` cp ON (cp.`id_category` = cg.`id_category`)
			WHERE cg.`id_group` '.$sql_groups.')'
		);
		$sql->groupBy('product_shop.id_product');

		$sql->orderBy((isset($order_by_prefix) ? pSQL($order_by_prefix).'.' : '').'`'.pSQL($order_by).'` '.pSQL($order_way));
		$sql->limit($nb_products, $page_number * $nb_products);

		if (Combination::isFeatureActive())
		{
			$sql->select('MAX(product_attribute_shop.id_product_attribute) id_product_attribute');
			$sql->leftOuterJoin('product_attribute', 'pa', 'p.`id_product` = pa.`id_product`');
			$sql->join(Shop::addSqlAssociation('product_attribute', 'pa', false, 'product_attribute_shop.default_on = 1'));
		}
		$sql->join(Product::sqlStock('p', Combination::isFeatureActive() ? 'product_attribute_shop' : 0));

		$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql);

		if ($order_by == 'price')
			Tools::orderbyPrice($result, $order_way);
		if (!$result)
			return false;

		$products_ids = array();
		foreach ($result as $row)
			$products_ids[] = $row['id_product'];
		// Thus you can avoid one query per product, because there will be only one query for all the products of the cart
		Product::cacheFrontFeatures($products_ids, $id_lang);

		return Product::getProductsProperties((int)$id_lang, $result);
	}

add it to Product.php class located in /classes/ directory

 

then use this Product::getAllProducts($this->context->language->id, (int)($this->p) - 1, (int)($this->n), false, $this->orderBy, $this->orderWay) to define products in smarty array variable.

  • Like 1

Share this post


Link to post
Share on other sites

Hello,

 

Thanks

 

Where i put this?



then use this Product::getAllProducts($this->context->language->id, (int)($this->p) - 1, (int)($this->n), false, $this->orderBy, $this->orderWay) to define products in smarty array variable.

Do you have the result?

Share this post


Link to post
Share on other sites

in module php file where you've got function to get products from home category

it's a part of displayHome function

Share this post


Link to post
Share on other sites

This module is great!! I am trying to make some design modifications.

 

First, when I hover the mouse over the featured products it shows "View" where the black circles are. Is there a way to delete those.

Second, After I installed the module I changed it so there is one row, instead of two rows. The red bullets show there are 3 lines of text for the product description and the 2 featured products on the right only have 2 lines of text. I would like to have 3 and keep it all the same.

Third, In blue bullets, most likely attached to 2nd problem... I would like to have that row moved down to match the 2 on the right. I have looked in the "homefeatured.css" and the "homefeatured.tpl" and couldn't fine where to change this.

 

Capture.JPG

 

Thank you!

Edited by generalexperts (see edit history)

Share this post


Link to post
Share on other sites

I was able to get rid of the "view" by removing  <a class="lnk_more" href="{$product.link}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a> from the homefeatured.tpl file.

 

The other two were cause by the product descriptions. The two on the right had bullets for each line. As the two on the left were in a short paragraph. After removing the bullets in the short description for the product the problem fixed itself.

Edited by generalexperts (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites

The DEMO link redirects to a domain for sale. And does it work for 1.6?

 

I tried Yotpo reviews but I never saw the module frontoffice

 

Does someone knows another alternative?

 

This is my shop if someone could help me on this thanks:

camisetas de fútbol baratas

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More