Skip to content

Instantly share code, notes, and snippets.

@akadak
akadak / Product.php
Last active March 21, 2020 12:59
Product.php dosyası
<?php
class Product extends ProductCore
{
//TODO: Eklenen alan
/** @var int point */
public $eticaret; //burası veritabanındaki sütun adıyla aynı olmalıdır.
public function __construct($id_product = null, $full = false, $id_lang = null, $id_shop = null, Context $context = null)
{
<?php
/**
* 2007-2019 PrestaShop and Contributors
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
{if $product.eticaret}
<button
style="background-color: #ff4338; margin-bottom: 10px"
onclick="location.href='{$product.eticaret}' "
class="btn btn-primary add-to-cart"
data-button-action="add-to-cart"
type="submit"
{if !$product.eticaret}
disabled
{/if}