2017 © Pedro Peláez
 

magento2-module tweakwise-export

Magento 2 module for Tweakwise export

image

emico/tweakwise-export

Magento 2 module for Tweakwise export

  • Wednesday, April 25, 2018
  • by Fgruntjes
  • Repository
  • 7 Watchers
  • 3 Stars
  • 2,985 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 5 Forks
  • 5 Open issues
  • 23 Versions
  • 27 % Grown

The README.md

Installation

If you have the package emico/tweakwise installed, uninstall this first. This package replaces that one, (*1)

Install package using composer, (*2)

composer require tweakwise/magento2-tweakwise-export

Enable module, (*3)

Run installers, (*4)

php bin/magento module:enable Tweakwise_Magento2TweakwiseExport
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

Usage

All export settings can be found under Stores -> Configuration -> Catalog -> Tweakwise -> Export., (*5)

Generating feeds can be done using the command line., (*6)

php bin/magento tweakwise:export
php bin/magento tweakwise:export -t stock //stock export
php bin/magento tweakwise:export -t price //price export
php bin/magento tweakwise:export -s storecode //store level export, only works is store level export is enabled.

If 'Store Level Export' enabled single store feed can be generated using the command line., (*7)

php bin/magento tweakwise:export --store '<storecode>'

Debugging

Debugging is done using the default debugging functionality of Magento / PHP. You can enable indentation of the feed by setting deploy mode to developer., (*8)

php bin/magento deploy:mode:set developer

Usage:
 tweakwise:export [-c|--validate] [file]

Arguments:
 file                  Export to specific file (default: "var/feeds/tweakwise.xml")
 store                 Export a specific storeId, only possible of Store Level Export is enabled.

Options:
 --validate (-c)       Validate feed and rollback if fails.
 --help (-h)           Display this help message
 --quiet (-q)          Do not output any message
 --verbose (-v|vv|vvv) Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
 --version (-V)        Display this application version
 --ansi                Force ANSI output
 --no-ansi             Disable ANSI output
 --no-interaction (-n) Do not ask any interactive question

Feed structure

The feed contains some header information followed by categories and then products. Tweakwise does not natively support multiple stores, in order to circumvent this all categories and products are prefixed with 1000{store_id}. If a product (with id 1178) is active and visible in multiple stores (say 1, 5 and 8) then it will appear three times in the feed (Or if Store Level Export is enabled the products is exported in 3 diffrent feeds) with ids: 100011178, 100051178 and 100081178. The data on that product depends on the attribute values of the specific store. In short an entity is available in the feed as 1000{store_id}{entity_id}, (*9)

The feed only contains products that are visible under your catalog configuration. If a product has children (say it is configurable) then the feed will also contain all the data from those children. Child data is aggregated onto the "parent" product. The reason for this is that when a user searches for a t-shirt with size M then the configurable must show up in the results, therefor the configurable should be exported with all sizes available among its children., (*10)

The feed contains only attributes which have bearing on search or navigation, check src/Model/ProductAttributes.php:45 to see the criteria an attribute must meet in order to be exported., (*11)

The feed prices are exported in the default configured currency of the store (from v5.1.0 forward). If an exchange rate is available the prices for that currency are calculated. If no exchange rate is available, the original prices are used., (*12)

A note on the feed implementation

Magento's native interfaces and handlers for data retrieval were deemed to slow for a large catalog. Since performance is essential we decided on our own queries for data retrieval. The consequence is that we need to keep track of the inner workings of magento and are subject to its changes. If you find an issue with data retrieval please create an issue on github., (*13)

Feed urls

https://yoursite.com/tweakwise/feed/export/key/{{feed_key}} https://yoursite.com/tweakwise/feed/export/key/{{feed_key}}/type/stock //stock export https://yoursite.com/tweakwise/feed/export/key/{{feed_key}}/type/price //price export https://yoursite.com/tweakwise/feed/export/key/{{feed_key}}/store/storecode //store level export, only available if store level export is enabled, (*14)

Export Settings

  • Store Level Export: Enables generating seperate feed for each store. If store level export is enabled.
  • Enabled: If products of that store should be exported to tweakwise, note that if this is false for some store then navigation and search should also be disabled for that store.
  • Schedule: Cron schedule for generating the feed. We strongly encourage you to register the export task on the server crontab instead of using the Magento cron.
  • Schedule export: Generate the feed on the next cron run. (default feed)
  • Key: This will be validated by the export module when the ExportController is asked for feed content or when the CacheFlush controller is asked to flush cache. If the request does not have a key parameter that matches the feed will not be served (or in case of the cache controller the cache will not be flushed).
  • Allow cache flush: Allow automated flushing of cache, you can configure a task in the navigator to run after it is done publishing to flush Magento caches. You must specify an url in the task configuration: use https://yoursite.com/tweakwise/cache/flush/key/{{feed_key}} as its url, here feed_key is equal to the key configured in the Key setting (see above). If this setting is set to no tweakwise-export will ignore these requests.
  • Export realtime: When the ExportController is asked for a feed it will generate a new one on the fly. Note that this is not recommended!
  • Tweakwise import API url: Tasks in the navigator can be executed via API. Use the import task API url here to automatically tell tweakwise to import the feed after it has been generated. An seperate trigger for stock/price export can be used.
  • Export out of stock Combined product children: Tweakwise export aggregates child data on parent products, this setting determines if data from out of child products should be included in this aggregation.
  • Exclude child attributes: These values of these attributes will be excluded from product data when aggregating onto the parent product.
  • Which price value will be exported as "price" to tweakwise.

Visibility settings

Magento has multiple visibility settings, tweakwise only knows visible products meaning that if a product is in the feed then it will be visible while navigating and searching. The magento visibility setting is exported in the feed so you can add a hidden filter to your tweakwise template to artificially use the correct settings. If you do this then exclude the visibility attribute from child products (see "Export Settings")., (*15)

Contributors

If you want to create a pull request as a contributor, use the guidelines of semantic-release. semantic-release automates the whole package release workflow including: determining the next version number, generating the release notes, and publishing the package. By adhering to the commit message format, a release is automatically created with the commit messages as release notes. Follow the guidelines as described in: https://github.com/semantic-release/semantic-release?tab=readme-ov-file#commit-message-format., (*16)

The Versions

25/04 2018

dev-master

9999999-dev

Magento 2 module for Tweakwise export

  Sources   Download

OSL-3.0

The Requires

  • php ~7.0|~7.1

 

The Development Requires

25/04 2018

v1.1.4

1.1.4.0

Magento 2 module for Tweakwise export

  Sources   Download

OSL-3.0

The Requires

  • php ~7.0|~7.1

 

The Development Requires

25/04 2018

dev-issue/42

dev-issue/42

Magento 2 module for Tweakwise export

  Sources   Download

OSL-3.0

The Requires

  • php ~7.0|~7.1

 

The Development Requires

11/04 2018

v1.1.3

1.1.3.0

Magento 2 module for Tweakwise export

  Sources   Download

OSL-3.0

The Requires

  • php ~7.0|~7.1

 

The Development Requires

11/04 2018

dev-issue/41

dev-issue/41

Magento 2 module for Tweakwise export

  Sources   Download

OSL-3.0

The Requires

  • php ~7.0|~7.1

 

The Development Requires

22/01 2018

V1.1.2

1.1.2.0

Magento 2 module for Tweakwise export

  Sources   Download

OSL-3.0

The Requires

  • php ~7.0|~7.1

 

The Development Requires

26/12 2017

V1.1.1

1.1.1.0

Magento 2 module for Tweakwise export

  Sources   Download

OSL-3.0

The Requires

  • php ~7.0|~7.1

 

The Development Requires

14/12 2017

V1.1.0

1.1.0.0

Magento 2 module for Tweakwise export

  Sources   Download

OSL-3.0

The Requires

  • php ~7.0|~7.1

 

The Development Requires

07/12 2017

v1.0.14

1.0.14.0

Magento 2 module for Tweakwise export

  Sources   Download

OSL-3.0

The Requires

  • php ~7.0|~7.1

 

The Development Requires

30/11 2017

V1.0.13

1.0.13.0

Magento 2 module for Tweakwise export

  Sources   Download

OSL-3.0

The Requires

  • php ~7.0|~7.1

 

The Development Requires

28/11 2017

v1.0.12

1.0.12.0

Magento 2 module for Tweakwise export

  Sources   Download

OSL-3.0

The Requires

  • php ~7.0|~7.1

 

The Development Requires

23/11 2017

v1.0.11

1.0.11.0

Magento 2 module for Tweakwise export

  Sources   Download

OSL-3.0

The Requires

  • php ~7.0|~7.1

 

The Development Requires

16/11 2017

v1.0.10

1.0.10.0

Magento 2 module for Tweakwise export

  Sources   Download

OSL-3.0

The Requires

  • php ~7.0|~7.1

 

The Development Requires

07/11 2017

v1.0.9

1.0.9.0

Magento 2 module for Tweakwise export

  Sources   Download

OSL-3.0

The Requires

  • php ~7.0|~7.1

 

The Development Requires

31/10 2017

v1.0.8

1.0.8.0

Magento 2 module for Tweakwise export

  Sources   Download

OSL-3.0

The Requires

  • php ~7.0|~7.1

 

The Development Requires

21/10 2017

v1.0.7

1.0.7.0

Magento 2 module for Tweakwise export

  Sources   Download

OSL-3.0

The Requires

  • php ~7.0|~7.1

 

The Development Requires

28/09 2017

v1.0.6

1.0.6.0

Magento 2 module for Tweakwise export

  Sources   Download

OSL-3.0

The Requires

  • php ~7.0|~7.1

 

The Development Requires

15/08 2017

v1.0.5

1.0.5.0

Magento 2 module for Tweakwise export

  Sources   Download

OSL-3.0

The Requires

  • php ~7.0|~7.1

 

The Development Requires

04/08 2017

v1.0.4

1.0.4.0

Magento 2 module for Tweakwise export

  Sources   Download

OSL-3.0

The Requires

  • php ~5.6|~7.0|~7.1

 

The Development Requires

01/08 2017

v1.0.3

1.0.3.0

Magento 2 module for Tweakwise export

  Sources   Download

OSL-3.0

The Requires

  • php ~5.6|~7.0|~7.1

 

The Development Requires

20/06 2017

v1.0.2

1.0.2.0

Magento 2 module for Tweakwise export

  Sources   Download

OSL-3.0

The Requires

  • php ~5.6|~7.0|~7.1

 

The Development Requires

14/06 2017

v1.0.1

1.0.1.0

Magento 2 module for Tweakwise export

  Sources   Download

OSL-3.0

The Requires

  • php ~5.6|~7.0|~7.1

 

The Development Requires

19/05 2017

v1.0.0

1.0.0.0

Magento 2 module for Tweakwise export

  Sources   Download

OSL-3.0

The Requires

  • php ~5.6|~7.0

 

The Development Requires