Add buy-by-phone-form

This commit is contained in:
Roman Pyrih
2026-01-14 09:35:45 +01:00
parent 0751588e2e
commit b71ee93e55
77 changed files with 10442 additions and 27 deletions

View File

@@ -16,7 +16,7 @@
</div>
<div class="popup-body--right">
<div class="popup-body-top">
<p>ZADZWOŃ <a href="tel:172000035">172000035</a> lub uzupełnij i wyślij poniższy formularz, wówczas to my skontaktujemy się z Tobą.</p>
<p class="p1">ZADZWOŃ <a href="tel:+48 793 799 700">+48 793 799 700</a> lub uzupełnij i wyślij poniższy formularz, wówczas to my skontaktujemy się z Tobą.</p>
<form id="buy-by-phone-form" action="/buy-by-phone.php" method="post">
<input type="hidden" name="buy-by-phone-mail-from" value="masimmo">
<input type="hidden" name="buy-by-phone-product-name" value="{$product.name}">

View File

@@ -65,19 +65,6 @@
</div>
{/block}
{block name='product_buy_by_phone'}
{if $product_manufacturer->id == 3}
<div class="buy_by_phone" id="buy_by_phone_btn">
<button class="btn btn-primary add-to-cart" {if !$product.add_to_cart_url} disabled {/if}>
{l s='Buy by phone' d='Shop.Theme.Actions'}
</button>
</div>
{include file='catalog/_partials/buy-by-phone-popup.tpl' product=$product}
{/if}
{/block}
{block name='product_availability'}
<span id="product-availability" class="js-product-availability">
{if $product.show_availability && $product.availability_message}

View File

@@ -134,6 +134,18 @@
{block name='product_refresh'}{/block}
</form>
{/block}
{block name='product_buy_by_phone'}
{if $product_manufacturer->id == 3}
<div class="buy_by_phone" id="buy_by_phone_btn">
<button class="btn btn-primary add-to-cart" {if !$product.add_to_cart_url} disabled {/if}>
{l s='Kup przez telefon' d='Shop.Theme.Actions'}
</button>
</div>
{include file='catalog/_partials/buy-by-phone-popup.tpl' product=$product}
{/if}
{/block}
</div>
{if $product.is_customizable && count($product.customizations.fields)}