Coder Social home page Coder Social logo

alpixelshopbundle's Introduction

AlpixelShopBundle

๐Ÿ˜… Things are getting serious.

Installation

Download the bundle

From your project directory.

$ composer require alpixel/shopbundle

Enable the bundle

Then, you need to enable the bundle by adding the following line in the app/AppKernel.php file.

// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Alpixel\Bundle\ShopBundle\AlpixelShopBundle(),
            
            new Happyr\GoogleAnalyticsBundle\HappyrGoogleAnalyticsBundle(), 
            new Http\HttplugBundle\HttplugBundle(),
            //If you don't disable the analytics trackings, you will need the bundle above
        );

        // ...
    }
}

Configuration

alpixel_shop:
    customer_class: AppBundle\Entity\CustomEntity # A custom class extend the Alpixel\Bundle\ShopBundle\Entity\Customer class
    stock:
        strategy: soft #['soft', 'tolerant', 'strict']
        update: false # Update stock quantity for products [true, false]
    product_inheritance:
            - { key: myCustomKey, class: AppBundle\Entity\CustomProduct }
    use_google_analytics: true #Allow google analytics trackings with happyr bundle

The bundle is now ready to work

Configuration Reference

alpixel_shop:
    customer_class: AppBundle\Entity\CustomEntity

You can add a custom entity who extend the Alpixel\Bundle\ShopBundle\Entity\Customer to add your properties or also directly use the Alpixel\Bundle\ShopBundle\Entity\Customer entity.

alpixel_shop:
    stock:
        strategy: soft #['soft', 'tolerant', 'strict']

The option stock strategy allow you to work with different behaviour of stock management.

soft: Allow the order, even if the product has not enough stock tolerant: Allow the order if the current stock of the product > 0 strict: Allow the order only if the stock has enough quantities

alpixelshopbundle's People

Contributors

alexbdev avatar benjamin-hubert avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.