Posted - 06/12/2024 : 08:15:30
This is the code to insert a content region: <% regionid=8 %> <!--#include virtual="/yourpath/inccontentregion.asp"-->
This is the sub that handles that output: sub pdddescription() if NOT usecsslayout then print "<br>" longdesc=longdesc&ectextralongdescription if usedetailbodyformat=3 then elseif longdesc<>"" then print "<div class=""detaildescription"""&displaytabs(longdesc)&"</div>" elseif shortdesc<>"" then print "<div class=""detaildescription""" & IIfVs(NOT noschemamarkup," itemprop=""description""") & ">"&shortdesc&"</div>" end if end sub
You could insert a placeholder like %%CONTENT_REGION%% and then make a replace function. You would need IF/CASE logic if you have more than one region you want to add or some condition so it only loads for some products. This would need to save the region data into a variable and replace before the above code.
|