View Single Post
  #9  
Old 06-29-2012, 07:17 AM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 787
 

Default Re: w3c validation question

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?
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3
mods:
reCaptcha
running on UNIX

www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2
mods:
reCaptcha
cdseo pro
running on UNIX
Reply With Quote