Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Author « Topic »  

freewaytrailer
Starting Member

USA
43 Posts

Posted - 06/10/2024 :  06:00:01  
Has anyone come up with an asp solution to add content regions to the dynamic tab panels?

Dermontti
Advanced Member

USA
161 Posts

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.
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000