I'm attempting to set up the counter to add a number to the end of id="wl-prices" like Steve suggested. I'm not sure how to do it correctly. Here is what the set up is.
from /common_files/customer/main/bcse_evv.tpl:
Code:
{foreach from=$variants key=vntid item=vnt}{*Loop through variants*}
{assign var='bcse_evv_disabled' value=0}
...
{if $product.forsale ne "B"}{include file="customer/main/product_prices.tpl" product_wholesale=$vnt.wholesale}{/if}
...
{/foreach}{*/variants*}
from customer/main/product_prices.tpl:
Code:
<div id="wl-prices"{if not $product_wholesale} style="display: none;"{/if}>
...
I'm thinking that I need to initiate a counter maybe here? (not quite sure of correct bracketing, etc)
/common_files/customer/main/bcse_evv.tpl:
Code:
$counter = 0;
{foreach from=$variants key=vntid item=vnt}{*Loop through variants*}
$counter++;
{assign var='bcse_evv_disabled' value=0}
...
then append the number to wl-prices like this somehow in
customer/main/product_prices.tpl:
Code:
<div id="wl-prices$counter"{if not $product_wholesale} style="display: none;"{/if}>
Am I even close?
