我的目录中存在分页问题,当我更改页面时,“添加到购物车”按钮不会加载任何值,因此无效。当我刷新页面时,它开始工作。由于我不知道问题出在哪里,我正在寻找快速解决方案..我想在页面更改按钮中实现刷新。任何想法如何实现到href重定向然后刷新新页面?或者在访问时只刷新一次页面的东西?
<nav class="pagination">
{block name='pagination_page_list'}
<div>
<ul class="page-list clearfix text-xs-center">
{foreach from=$pagination.pages item="page"}
<li {if $page.current} class="current" {/if}>
{if $page.type === 'spacer'}
<span class="spacer">…</span> {else}
<a rel="{if $page.type === 'previous'}prev{elseif $page.type === 'next'}next{else}nofollow{/if}" href="{$page.url}" class="{if $page.type === 'previous'}previous {elseif $page.type === 'next'}next {/if}{['disabled' => !$page.clickable, 'js-search-link' => true]|classnames}">
{if $page.type === 'previous'}
<i class="material-icons">keyboard_arrow_left</i>{l s='Previous' d='Shop.Theme.Actions'}
{elseif $page.type === 'next'}
{l s='Next' d='Shop.Theme.Actions'}<i class="material-icons">keyboard_arrow_right</i>
{else}
{$page.page}
{/if}
</a>
{/if}
</li>
{/foreach}
</ul>
</div>
{/`block`}
</nav>