Subida del módulo y tema de PrestaShop

This commit is contained in:
Kaloyan
2026-04-09 18:31:51 +02:00
parent 12c253296f
commit 16b3ff9424
39262 changed files with 7418797 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
{**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License version 3.0
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* 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.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
*}
<script>
if (undefined !== window.ps_checkout) {
ps_checkout.initialize({
orderPrestaShopId: {$orderPrestaShopId|intval},
orderPayPalBaseUrl: '{$orderPayPalBaseUrl|escape:'javascript':'UTF-8'}',
orderPayPalContainer: '.paypal-order-container',
orderPayPalLoaderContainer: '.paypal-order-loader',
orderPayPalNotificationsContainer: '.paypal-order-notifications',
orderPayPalRefundButton: '#ps_checkout a.refund',
orderPayPalRefundButtonValue: 'button.refund-submit span.refund-value',
orderPayPalRefundSubmitButton: 'button.refund-submit',
orderPayPalRefundConfirmButton: 'button.refund-confirm',
orderPayPalModalContainerPrefix: '#ps-checkout-refund-',
orderPayPalModalContainer: '.ps-checkout-refund',
orderPayPalModalNotificationsContainer: '.modal-notifications',
orderPayPalModalContentContainer: '.modal-content-container',
orderPayPalModalLoaderContainer: '.modal-loader',
orderPayPalModalRefundForm: '.ps-checkout-refund-form',
});
}
</script>

View File

@@ -0,0 +1,74 @@
{**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License version 3.0
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* 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.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
*}
<div>
<form id="ps_checkout-card-fields-form" class="form-horizontal loading">
<div id="ps_checkout-card-fields-form-loader">
<img src="{$modulePath}views/img/tail-spin.svg" alt="spin">
</div>
<div>
<label class="form-control-label" for="ps_checkout-card-fields-name">{l s='Cardholder Name (optional)' d='Modules.Checkout.Pscheckout'}</label>
<div id="ps_checkout-card-fields-name"></div>
<div id="ps_checkout-card-fields-name-error" class="alert alert-danger hidden">{l s='Card holder name is invalid' d='Modules.Checkout.Pscheckout'}</div>
</div>
<div>
<label class="form-control-label" for="ps_checkout-card-fields-number">{l s='Card number' d='Modules.Checkout.Pscheckout'}</label>
<div id="ps_checkout-card-fields-number" ></div>
<div id="ps_checkout-card-fields-number-error" class="alert alert-danger hidden">{l s='Card number is invalid' d='Modules.Checkout.Pscheckout'}</div>
<div id="ps_checkout-card-fields-vendor-error" class="alert alert-danger hidden">{l s='Card vendor is invalid' d='Modules.Checkout.Pscheckout'}</div>
</div>
<div class="row">
<div class="col-xs-6 col-6">
<label class="form-control-label" for="ps_checkout-card-fields-expiry">{l s='Card expiration date' d='Modules.Checkout.Pscheckout'}</label>
<div id="ps_checkout-card-fields-expiry" ></div>
<div id="ps_checkout-card-fields-expiry-error" class="alert alert-danger hidden">{l s='Card expiration date is invalid' d='Modules.Checkout.Pscheckout'}</div>
</div>
<div class="col-xs-6 col-6">
<div class="ps_checkout-card-fields-cvv-label-wrapper">
<label class="form-control-label" for="ps_checkout-card-fields-cvv">{l s='CVC' d='Modules.Checkout.Pscheckout'}</label>
<div class="ps_checkout-info-wrapper">
<div class="ps_checkout-info-button" onmouseenter="cvvEnter()" onmouseleave="cvvLeave()">i
<div class="popup-content" id="cvv-popup">
<img src="{$modulePath}views/img/cvv.svg" alt="cvv">
{l s='The security code is a' d='Modules.Checkout.Pscheckout'} <b>{l s='3-digits' d='Modules.Checkout.Pscheckout'}</b> {l s='code on the back of your credit card. In some cases, it can be 4-digits or on the front of your card.' d='Modules.Checkout.Pscheckout'}
</div>
</div>
</div>
</div>
<div id="ps_checkout-card-fields-cvv" ></div>
<div id="ps_checkout-card-fields-cvv-error" class="alert alert-danger hidden">{l s='CVV code is invalid' d='Modules.Checkout.Pscheckout'}</div>
</div>
</div>
{if $vaultingEnabled}
{include file='module:ps_checkout/views/templates/hook/partials/vaultPaymentFields.tpl' paymentIdentifier='card'}
{/if}
<div id="payments-sdk__contingency-lightbox"></div>
</form>
</div>
<script>
function cvvEnter() {
var popup = document.getElementById("cvv-popup");
popup.classList.add("show");
}
function cvvLeave() {
var popup = document.getElementById("cvv-popup");
popup.classList.remove("show");
}
</script>

View File

@@ -0,0 +1,29 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License version 3.0
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* 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.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
*/
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;

View File

@@ -0,0 +1,40 @@
{**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License version 3.0
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* 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.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
*}
<div>
<form id="ps_checkout-pay-upon-invoice-fields-form" class="form-horizontal loading">
<div class="form-group">
<label for="ps_checkout-pui-birthday" class="form-control-label required">
{l s='Date of Birth' d='Modules.Checkout.Pscheckout'}
</label>
<input
type="date"
id="ps_checkout-pui-birthday"
name="ps_checkout-pui-birthday"
class="form-control"
required="required"
placeholder="YYYY-MM-DD"
{if !empty($min_date)}min="{$min_date}"{/if}
{if !empty($max_date)}max="{$max_date}"{/if}
{if isset($customerBirthday) && $customerBirthday}value="{$customerBirthday|escape:'html':'UTF-8'}"{/if}
/>
<span class="form-control-comment" id="ps_checkout-pui-birthday-error" style="display: none; color: #dc3545;"></span>
</div>
<div id="paypal-legal-container"></div>
</form>
</div>

View File

@@ -0,0 +1,27 @@
{**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License version 3.0
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* 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.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
*}
<div class="ps_checkout-vault-payment-container-{$paymentIdentifier} ps_checkout-vault-fields">
<div>
<label for="ps_checkout-vault-payment-{$paymentIdentifier}" class="ps_checkout-vault-label">
<input type="checkbox" value="1" name="ps_checkout-vault-payment-{$paymentIdentifier}" id="ps_checkout-vault-payment-{$paymentIdentifier}">
{l s='Securely store payment details for future purchases' d='Modules.Checkout.Pscheckout'}
<img src="{$modulePath}views/img/icons/lock_fill.svg" alt="lock" width="15" height="15">
</label>
</div>
</div>

View File

@@ -0,0 +1,23 @@
{**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License version 3.0
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* 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.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
*}
{if $vaultingEnabled}
<form id="ps_checkout-vault-payment-form-{$paymentIdentifier}" class="form-horizontal">
{include file='module:ps_checkout/views/templates/hook/partials/vaultPaymentFields.tpl' paymentIdentifier=$paymentIdentifier}
</form>
{/if}

View File

@@ -0,0 +1,35 @@
{**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License version 3.0
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* 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.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
*}
<form id="ps_checkout-vault-token-form-{$paymentIdentifier}" class="form-horizontal ps_checkout-vault-token-form">
<div>
<span class="ps_checkout-token-explanation">
{if $isFavorite}
{l s='This payment method has been saved to your account and defined as favorite for future purchases.' d='Modules.Checkout.Pscheckout'}
{else}
{l s='This payment method has been saved to your account.' d='Modules.Checkout.Pscheckout'}
{/if}
</span>
</div>
<div>
<button type="button" id="delete-{$paymentIdentifier}" class="ps_checkout-vault-token-delete">{l s='Delete' d='Modules.Checkout.Pscheckout'}</button>
</div>
<input type="hidden" name="ps_checkout-funding-source-{$paymentIdentifier}" value="{$fundingSource}">
<input type="hidden" name="ps_checkout-vault-id-{$paymentIdentifier}" value="{$vaultId}">
<input type="hidden" name="ps_checkout-vault-label-{$paymentIdentifier}" value="{$label}">
</form>