What's New
- AuthorPosts
Hi,
Pleaes modify the \themes\panda\templates\catalog\product.tpl and the \themes\panda\templates\catalog\product\product-third.tpl, add the following code and clear the Smarty cache.
{if $product.quantity_all_versions <= 0}{hook h='displayFooterProduct' product=$product category=$category}{/if}
See attached screenshot.
Best regards.Attachments:
Thank you Yobo
There is a problem. there are 2 related product slider in out of stock product pages and 2 features table and there is no related product slider in available products.
Please check these URLs
https://b2n.ir/359076
https://b2n.ir/760849Hi,
Please use the child theme: https://www.sunnytoo.com/21017/create-child-theme-prestashop-1-7-using-child-theme-feature
Best regards.unfortunately I didn’t get what you mean.
the product-third.tpl file in this root has been changed.
themes\panda\templates\catalog\product\product-third.tpl
I just have this codes. I couldn’t modify the file.{**
* 2007-2016 PrestaShop
*
* 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:
* http://opensource.org/licenses/osl-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-2016 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{block name=’product_footer’}
{hook h=’displayFooterProduct’ product=$product category=$category}
{/block}{block name=’page_footer_container’}
<footer class=”page-footer”>
{block name=’page_footer’}
<!– Footer content –>
{/block}
</footer>
{/block}I changed the code but nothing happened. and I clear the smarty cash too.
`{**
* 2007-2016 PrestaShop
*
* 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:
* http://opensource.org/licenses/osl-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-2016 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{block name=’product_footer’}
{if $product.quantity_all_versions <= 0}{hook h=’displayFooterProduct’ product=$product category=$category}{/if}
{/block}{block name=’page_footer_container’}
<footer class=”page-footer”>
{block name=’page_footer’}
<!– Footer content –>
{/block}
</footer>
{/block}Hi,
I need to ensure your requirement. do you want to remove the Related products slider if the current is out of stock? for example, when I go to the detail page of product A, if A is in stock, the related products slider will show out while product A is out of stock, the related products slider will disappear?
Best regards.- AuthorPosts
You must be logged in to reply to this topic.