first commit
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2015 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 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:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2015 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,58 @@
|
||||
{* * @Module Name: Leo Feature * @Website: leotheme.com.com - prestashop
|
||||
template provider * @author Leotheme
|
||||
<leotheme@gmail.com>
|
||||
* @copyright Leotheme * @description: Leo feature for prestashop 1.7: ajax
|
||||
cart, review, compare, wishlist at product list *}
|
||||
|
||||
<div class="button-container cart">
|
||||
<form action="{$link_cart}" method="post">
|
||||
<input type="hidden" name="token" value="{$static_token}" />
|
||||
<input
|
||||
type="hidden"
|
||||
value="{$leo_cart_product.quantity}"
|
||||
class="quantity_product quantity_product_{$leo_cart_product.id_product}"
|
||||
name="quantity_product"
|
||||
/>
|
||||
<input
|
||||
type="hidden"
|
||||
value="{if isset($leo_cart_product.product_attribute_minimal_quantity) && $leo_cart_product.product_attribute_minimal_quantity>$leo_cart_product.minimal_quantity}{$leo_cart_product.product_attribute_minimal_quantity}{else}{$leo_cart_product.minimal_quantity}{/if}"
|
||||
class="minimal_quantity minimal_quantity_{$leo_cart_product.id_product}"
|
||||
name="minimal_quantity"
|
||||
/>
|
||||
<input
|
||||
type="hidden"
|
||||
value="{$leo_cart_product.id_product_attribute}"
|
||||
class="id_product_attribute id_product_attribute_{$leo_cart_product.id_product}"
|
||||
name="id_product_attribute"
|
||||
/>
|
||||
<input
|
||||
type="hidden"
|
||||
value="{$leo_cart_product.id_product}"
|
||||
class="id_product"
|
||||
name="id_product"
|
||||
/>
|
||||
<input
|
||||
type="hidden"
|
||||
name="id_customization"
|
||||
value="{if $leo_cart_product.id_customization}{$leo_cart_product.id_customization}{/if}"
|
||||
class="product_customization_id"
|
||||
/>
|
||||
|
||||
<input
|
||||
type="hidden"
|
||||
class="input-group form-control qty qty_product qty_product_{$leo_cart_product.id_product}"
|
||||
name="qty"
|
||||
value="{if isset($leo_cart_product.wishlist_quantity)}{$leo_cart_product.wishlist_quantity}{else}{if $leo_cart_product.product_attribute_minimal_quantity && $leo_cart_product.product_attribute_minimal_quantity>$leo_cart_product.minimal_quantity}{$leo_cart_product.product_attribute_minimal_quantity}{else}{$leo_cart_product.minimal_quantity}{/if}{/if}"
|
||||
data-min="{if $leo_cart_product.product_attribute_minimal_quantity && $leo_cart_product.product_attribute_minimal_quantity>$leo_cart_product.minimal_quantity}{$leo_cart_product.product_attribute_minimal_quantity}{else}{$leo_cart_product.minimal_quantity}{/if}"
|
||||
/>
|
||||
<button
|
||||
class="btn btn-primary btn-product add-to-cart leo-bt-cart leo-bt-cart_{$leo_cart_product.id_product}{if !$leo_cart_product.add_to_cart_url} disabled{/if}"
|
||||
data-button-action="add-to-cart"
|
||||
type="submit"
|
||||
>
|
||||
{* <i class="icon-btn-product icon-cart material-icons shopping-cart"></i> *}
|
||||
<span class="name-btn-product">Dodaj do koszyka</span>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</leotheme@gmail.com>
|
||||
@@ -0,0 +1,16 @@
|
||||
{*
|
||||
* @Module Name: Leo Feature
|
||||
* @Website: leotheme.com.com - prestashop template provider
|
||||
* @author Leotheme <leotheme@gmail.com>
|
||||
* @copyright Leotheme
|
||||
* @description: Leo feature for prestashop 1.7: ajax cart, review, compare, wishlist at product list
|
||||
*}
|
||||
<div class="compare">
|
||||
<a class="leo-compare-button btn-product btn{if $added} added{/if}" href="javascript:void(0)" data-id-product="{$leo_compare_id_product}" title="{if $added}{l s='Remove from Compare' d='Shop.Theme.Global'}{else}{l s='Add to Compare' d='Shop.Theme.Global'}{/if}">
|
||||
<span class="leo-compare-bt-loading cssload-speeding-wheel"></span>
|
||||
<span class="leo-compare-bt-content">
|
||||
<i class="ti-reload"></i>
|
||||
<span>{l s='Add to Compare' d='Shop.Theme.Global'}</span>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
35
themes/at_movic/modules/leofeature/views/templates/index.php
Normal file
35
themes/at_movic/modules/leofeature/views/templates/index.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2015 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 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:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2015 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
Reference in New Issue
Block a user