رفتن به مطلب

faraed

عضو انجمن
  • تعداد ارسال ها

    8
  • تاریخ عضویت

  • آخرین بازدید

پست ها ارسال شده توسط faraed

  1. سلام

     

    می خواستم ببینم ماژول اتصال پرستاشاپ فارسی به وردپرس وجود دارد.

     

    رایگان یا پولی

     

    اگر پولی هست به تومان چقدر می شود.

     

    برای اتصال سایت

    http://faraed.com/

     

    به فروشگاه خودم به آدرس

    http://shop.faraed.com/

     

    می خوام

     

    آدرس ها را فرستادم از نسخه 1.6 استفاده می کنم.

     

    خیلی ممنون از زحماتتون

  2. من این کار را برای http://eshop.faraed.com/modules/feeder/rss.php

    انجام داد ام کلا سفید شد


    اینم کد

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

    * @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

    */

    include(dirname(__FILE__).'/../../config/config.inc.php');

    require_once(dirname(__FILE__).'/../../init.php');

     

    if (!Module::getInstanceByName('feeder')->active)

    exit;

     

    // Get data

    $number = ((int)(Tools::getValue('n')) ? (int)(Tools::getValue('n')) : 10);

    $orderBy = Tools::getProductsOrder('by', Tools::getValue('orderby'));

    $orderWay = Tools::getProductsOrder('way', Tools::getValue('orderway'));

    $id_category

    = ((int)(Tools::getValue('id_category')) ?

    (int)(Tools::getValue('id_category')) :

    Configuration::get('PS_HOME_CATEGORY'));

    $products =

    Product::getProducts((int)Context::getContext()->language->id, 0,

    ($number > 10 ? 10 : $number), $orderBy, $orderWay, $id_category,

    true);

    $currency = new Currency((int)Context::getContext()->currency->id);

    $affiliate = (Tools::getValue('ac') ? '?ac='.(int)(Tools::getValue('ac')) : '');

    $metas = Meta::getMetaByPage('index', (int)Context::getContext()->language->id);

     

    // Send feed

    header("Content-Type:text/xml; charset=utf-8");

    echo '<?xml version="1.0" encoding="UTF-8"?>'."\n";

    ?>

    &lt;?php echo Configuration::get('PS_SHOP_NAME') ?&gt;

    &lt;?php echo $metas['description'] ?&gt;

    <?php echo _PS_BASE_URL_.__PS_BASE_URI__; ?>

    <?php echo Configuration::get('PS_SHOP_EMAIL') ?>

    PrestaShop

    <?php echo Context::getContext()->language->iso_code; ?>

    &lt;?php echo Configuration::get('PS_SHOP_NAME') ?&gt;

    <?php echo _PS_BASE_URL_.__PS_BASE_URI__.'img/logo.jpg'; ?>

    <?php echo _PS_BASE_URL_.__PS_BASE_URI__; ?>

    <?php

    foreach ($products AS $product)

    {

    $image = Image::getImages((int)($cookie->id_lang), $product['id_product']);

    echo "\t\t\n";

     

    echo "\t\t\t

    ".$product['name']." - </p><p>".html_entity_decode(Tools::displayPrice(Product::getPriceStatic($product['id_product']),</p><p>$currency), ENT_COMPAT, 'UTF-8')." \n";

    echo "\t\t\t";

    $cdata = true;

    if (is_array($image) AND sizeof($image))

    {

    $imageObj = new Image($image[0]['id_image']);

     

    echo "<img </p><p>src=".$link->getImageLink($product['link_rewrite], </p><p>$image[0]['id_image'], 'small_default')."' title='".str_replace('&',</p><p>'', $product['name'])."' alt='thumb' />";</p><p>$cdata = false;</p><p>}</p><p>if ($cdata)</p><p>echo "<![CDATA[";</p><p>echo $product['description_short']."\n";

     

     

    echo "\t\t\t".str_replace('&', </p><p>'&', </p><p>htmlspecialchars($link->getproductLink($product['id_product'], </p><p>$product['link_rewrite'], </p><p>Category::getLinkRewrite((int)($product['id_category_default']), </p><p>$cookie->id_lang)))).$affiliate."\n";

    echo "\t\t\n";

    }

    ?>

×
×
  • اضافه کردن...