Jump to content

rss flux produit aide urgent:)


Recommended Posts

bonjours.

jai besoin daide niveau flux.

je ne comprend tout simplement pas comment fair marcher se module.

Flux RSS de produits

 

je lai activer, mais je ne voit rien ou je peut creer ou recuperer le lien flux.

 

je cherche depuis 2 jours et je devient fous..

 

aider moi...lol

 

merci..lSbvGDs.pngb3X8LrT.png

Link to comment
Share on other sites

Le bloc de flux RSS permet en réalité d'afficher un flux RSS. Ok, jusque là ça semble logique.

 

Bon, plus sérieusement... Il n'active pas de flux RSS sur base de votre catalogue mais vous permet d'afficher un flux RSS de votre choix (l'actualité PrestaShop, l'actualité d'un blog, ...). L'URL a mentionnée est donc externe à votre boutique (elle peut être interne, mais ce n'est pas l'idée).

 

Dans votre cas, l’activation d'un flux RSS se fait par le module "Flux RSS" (sans le Bloc).

 

L'URL du flux sera comme suit: /modules/feeder/rss.php

Link to comment
Share on other sites

<?php
/*
* 2007-2014 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-2014 PrestaShop SA
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*/

if (!defined('_PS_VERSION_'))
	exit;

class Feeder extends Module
{
	private $_postErrors = array();
	
	public function __construct()
	{
		$this->name = 'feeder';
		$this->tab = 'front_office_features';
		$this->version = 0.5;
		$this->author = 'PrestaShop';
		$this->need_instance = 0;
		
		$this->_directory = dirname(__FILE__).'/../../';
		parent::__construct();
		
		$this->displayName = $this->l('RSS products feed');
		$this->description = $this->l('Generate a RSS feed for your latest products.');
		$this->ps_versions_compliancy = array('min' => '1.5.6.1', 'max' => _PS_VERSION_);
	}
	
	function install()
	{
		return (parent::install() && $this->registerHook('header'));
	}
	
	function hookHeader($params)
	{
		if (!($id_category = (int)Tools::getValue('id_category')))
		{
			if (isset($_SERVER['HTTP_REFERER']) && strstr($_SERVER['HTTP_REFERER'], Tools::getHttpHost()) && preg_match('!^(.*)\/([0-9]+)\-(.*[^\.])|(.*)id_category=([0-9]+)(.*)$!', $_SERVER['HTTP_REFERER'], $regs))
			{
				if (isset($regs[2]) && is_numeric($regs[2]))
					$id_category = (int)($regs[2]);
				elseif (isset($regs[5]) && is_numeric($regs[5]))
					$id_category = (int)$regs[5];
			}
			elseif ($id_product = (int)Tools::getValue('id_product'))
			{
				$product = new Product($id_product);
				$id_category = $product->id_category_default;
			}
		}

		$orderBy = Tools::getProductsOrder('by', Tools::getValue('orderby'));
		$orderWay = Tools::getProductsOrder('way', Tools::getValue('orderway'));
		$this->smarty->assign(array(
			'feedUrl' => Tools::getShopDomain(true, true).__PS_BASE_URI__.'modules/'.$this->name.'/rss.php?id_category='.$id_category.'&orderby='.$orderBy.'&orderway='.$orderWay,
		));
		return $this->display(__FILE__, 'feederHeader.tpl');
	}
}

here is the code of the feeder.php  is this in this one ? thnaks

Link to comment
Share on other sites

Bonjour,

 

les flux RSS sont toujours limité à 10 car le but n'est pas d'exporter le catalogue complet mais seulement aux gens de suivre les nouveautés d'un site, d'où le nom de FLUX car c'est "fluctuant".

 

donc pas de soucis ce module est totalement fonctionnel en l'état.

 

 et oui vous trouverais sur chaque catégorie le lien vers ce fichiers dans l'entête du code source. Ce qui permet aux gens de suivre en 1 clic dans leur navigateur votre site et ses catégories.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...