thelia/google-shopping-xml-module 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

thelia/google-shopping-xml-module

最新稳定版本:3.0.8

Composer 安装命令:

composer require thelia/google-shopping-xml-module

包简介

README 文档

README

This module allows you to export your catalog to Google Shopping through XML feeds.

Installation

Manually

  • Copy the module into <thelia_root>/local/modules/ directory and be sure that the name of the module is GoogleShoppingXml.
  • Activate it in your thelia administration panel

Composer

Add it in your main thelia composer.json file

composer require thelia/google-shopping-xml-module ~1.2.0

Usage

See the module configuration in the back-office for explanations about how to use it.

Events

NEW ! (>1.2.0)

You can now add your own fields by events like this :

class GoogleShoppingXmlListener extends BaseAction implements EventSubscriberInterface
{
    public static function getSubscribedEvents()
    {
        return array(
            AdditionalFieldEvent::ADD_FIELD_EVENT => ['addMyField', 64]
        );
    }

    public function addMyField(AdditionalFieldEvent $event)
    {
        $pseId = $event->getProductSaleElementsId();
        
        $event->addField('custom_label_0', "MY VALUE");
    }

}

统计信息

  • 总下载量: 1.04k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 4
  • Forks: 9
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0
  • 更新时间: 2017-10-24