Merge pull request 'refactor: update product description layout and bodymeasurement section' (#13) from abhisheks/theme-elegance:main into main

Reviewed-on: brooksbingham/theme-elegance#13
pagebuilder
abhisheks 2023-12-08 14:58:03 +00:00
commit 12e5e9d89d
3 changed files with 32 additions and 5 deletions

View File

@ -0,0 +1,25 @@
{**
* 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
*}
<a class="w-full md:w-1/3 lg:w-1/4 flex flex-col p-4 border-gray-500" id="wishlist-link" href="{$url}">
<span class="flex flex-col items-center font-semibolds text-lg">
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-ruler-measure" width="32" height="32" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M19.875 12c.621 0 1.125 .512 1.125 1.143v5.714c0 .631 -.504 1.143 -1.125 1.143h-15.875a1 1 0 0 1 -1 -1v-5.857c0 -.631 .504 -1.143 1.125 -1.143h15.75z" /><path d="M9 12v2" /><path d="M6 12v3" /><path d="M12 12v3" /><path d="M18 12v3" /><path d="M15 12v2" /><path d="M3 3v4" /><path d="M3 5h18" /><path d="M21 3v4" /></svg>
Body Measurements
</span>
</a>

View File

@ -22,7 +22,7 @@
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="product-add-to-cart flex flex-col gap-3 mt-12 mb-4">
<div class="product-add-to-cart flex flex-col gap-3 mt-8 mb-4">
{if !$configuration.is_catalog}
{block name='product_availability'}

View File

@ -4,12 +4,14 @@
<h1 class='text-lg font-bold text-gray-600'>
Description
</h1>
<ul class="product-features list-[square] w-full">
<ul class="product-features list-[square] w-full flex flex-col gap-1 justify-center">
{foreach from=$product.grouped_features item=feature}
<li>
<span class="name inline-flex w-40 font-semibold">{$feature.name}</span>
<span class="value">{$feature.value|escape:'htmlall'|nl2br nofilter}</span>
<div class="flex gap-2">
<li class="w-44 shrink-0">
<span class="name font-semibold">{$feature.name}</span>
</li>
<span class="value">{$feature.value|escape:'htmlall'|nl2br nofilter}</span>
</div>
{/foreach}
</ul>
</div>