Giter Site home page Giter Site logo

baraja-core / shop-product Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 1.29 MB

Advanced product manager with administration interface in PHP. Compatible with Baraja CMS.

Home Page: https://baraja.cz/cms

License: MIT License

PHP 76.69% JavaScript 23.31%
shop baraja-cms cms product ecommerce php

shop-product's Introduction

Baraja e-shop product

Advanced product manager with administration interface in PHP. Compatible with Baraja CMS.

📦 Installation

It's best to use Composer for installation, and you can also find the package on Packagist and GitHub.

To install, simply use the command:

$ composer require baraja-core/shop-product

You can use the package manually by creating an instance of the internal classes, or register a DIC extension to link the services directly to the Nette Framework.

How to use

Install the package in your PHP application and register the services. If you are using Baraja CMS, the installation will be fully automatic.

The tool natively supports product creation, search, management and advanced editing.

Product Overview:

Product default list

Custom user fields:

Product custom field manager

Details of specific product settings:

Product detail and overview

Manage parameters and variants:

Parameters and variants

📄 License

baraja-core/shop-product is licensed under the MIT license. See the LICENSE file for more details.

shop-product's People

Contributors

imgbot[bot] avatar janbarasek avatar renovate-bot avatar restyled-commits avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

shop-product's Issues

Pořadí kategorie produktů

Možnost nastavit pořadí kategorií přímo v CMS.

S každým nastavením nového pořadí se musí přepočítat všechny pozice v rámci společného parenta, aby každá hodnota position byla unikátní.

Kolekce produktů

U produktu možnost nastavit podřazené produkty, které dohromady tvoří kolekci. Pokud produkt obsahuje aspoň jeden podřazený, tak se jedná o kolekci.

Kolekce slouží k označení výhodných nákupů, proto by se měla zobrazovat cena za kolekci, ale také součet cen za produkty, z kterých se kolekce skládá (a kolik tedy zákazník ušetří).

Inspirace: https://standswood.com/collections/vyhodne-kombinace

Free delivery

Moznost u produktu nastavit dopravu zdarma - vyhodnotit v kosiku

Poškozené varianty

Když produkt nemá ani jeden parametr označený jako variantní, ale obsahuje aspoň jednu variantu, zobrazit v přehledu variant výraznou chybu.

Když má produkt jen jednu variantu, nabídnout možnost konvertovat produkt jako nevariantní.

Enumeration parameters

Implementovat podporu pro nativní enumeration hodnot, kde si mohu specifické parametry rovnou zvolit a poté vybírat z možností.

Hlavní varianta

U produktu půjde nastavit relace na hlavní variantu. Vždy bude maximálně jedna nebo žádná.

Při nedostupnosti neodebírat.

Při smazání varianty odebrat relaci a nebude tedy hlavní varianta žádná.

Image processing after upload

  • If a PNG image was uploaded, automatically convert to JPG with 85% compression
$image = imagecreatefrompng($filePath);
$bg = imagecreatetruecolor(imagesx($image), imagesy($image));
imagefill($bg, 0, 0, imagecolorallocate($bg, 255, 255, 255));
imagealphablending($bg, TRUE);
imagecopy($bg, $image, 0, 0, 0, 0, imagesx($image), imagesy($image));
imagedestroy($image);
$quality = 50; // 0 = worst / smaller file, 100 = better / bigger file 
imagejpeg($bg, $filePath . ".jpg", $quality);
imagedestroy($bg);

Or:

// Quality is a number between 0 (best compression) and 100 (best quality)
function png2jpg($originalFile, $outputFile, $quality) {
    $image = imagecreatefrompng($originalFile);
    imagejpeg($image, $outputFile, $quality);
    imagedestroy($image);
}
  • Remove EXIF data from JPG

https://stackoverflow.com/questions/3614925/remove-exif-data-from-jpg-using-php

https://www.php.net/manual/en/imagick.stripimage.php

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.