mandel/testing/: ocyan-plugin-google-0.1.1 metadata and description

Homepage Simple index

Setup recaptcha, and configure product attributes for google_shopping and google_rich_snippets plugins.

author Motolani Olaiya
author_email [email protected]
classifiers
  • Framework :: Ocyan
  • Environment :: Plugins
description_content_type text/markdown
dynamic
  • author
  • author-email
  • classifier
  • description
  • description-content-type
  • home-page
  • provides-extra
  • requires-dist
  • requires-python
  • summary
provides_extras
  • test
requires_dist
  • Django<6,>=5
  • ocyan.core>=1.2.7
  • python-stdnum
  • django-recaptcha
  • ocyan.plugin.testing; extra == "test"
  • pylint-django; extra == "test"
  • ruff; extra == "test"
  • coverage; extra == "test"
requires_python >=3.12,<3.13
File Tox results History
ocyan_plugin_google-0.1.1-py3-none-any.whl
Size
14 KB
Type
Python Wheel
Python
3
ocyan_plugin_google-0.1.1.tar.gz
Size
11 KB
Type
Source

Ocyan plugin Google

Installation

Add ocyan.plugin.google to your projects dependencies.

Follow configuration below.

About & Usage of the Google plugin

Every duplicate config options and utils between the google plugins (google_shopping, google_rich_snippets) should be added in this plugin. This way we keep it clean. If in the future something new is moved/added, please write unit tests if this a breaking change!

Product type

By default the google shopping product type is based on the oscar product class name. For sites having a LOT if product types, this is not feasable and it is possible to store the product type on a product attribute instead. If so required, specify the product_type_attribute in ocyan.json

Configuration

Settings you need to configure in config.json

Example:

    "google": {
        "gtin_attribute": "custom_gtin",
        "mpn_attribute": "custom_mpn",
        "brand_attribute": "custom_brand",
        "recaptcha_public_key": "xxxx",
        "recaptcha_private_key": "xxxx",
        "recaptcha_version": "v3"
    }