Jump to content

asterix040173

Members
  • Posts

    19
  • Joined

  • Last visited

Posts posted by asterix040173

  1. <?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

  2. I have an issue on my website.

    I have 4000 products and the search is not working.

    as example: I search Bomb Girl which is a manufacturer and i should have 3 or 4 pages of products, but i have only 1 products coming out..

    I tried to desactivate the search and reactivate..but nothing is working..

    any one as some idea?

     

    my site is www.preciosa.fr

     

    thanks for any help.

  3. Hi,

    I was wondering is someone new how to add a IBP and Arelis Link manager template to a  CMS page?

    I am trying but i cant save it and i got the error contenue invalide(in french) which mean invalid contents .

    I know this is coming from the code inside the file.

     

    I attach the file if that can help.

     

     

    Thanks for any advice.

    links.htm

  4. hi, I would like some tester to tell me if my store is set up properly for the transporter.

     

    I have set up for UK, USA and south america fedex as courrier and i need to know from people in those country i the right courrier is offered as transport.

     

    I need as well for france and europe.

     

    my store is http://www.preciosa.fr

     

    I will also apreciate any comments regarding the store (good or bad)

     

    thanks a lot.

     

     

     

     

     

     

  5. hi,

    I have been trying to upload my products by CVS files, but it doesnt go well.

    My file has 15000 line and some of the products are getting uploaded but some with missing pictures and description.

    and i get this error on the upload page after a while:

    I have contacted my hosting (Godaddy) and they told me that nothing was wrong with the hosting.

    they told me to try with less line in the file and i tried with 500 line but i got the same results.

     

    any one can help me? 

    that would be cool.

    as well sorry if i didnt post in the right forum as i wasnt sure where to post.OSYiZXf.png

×
×
  • Create New...

Important Information

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