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
Forum Search
Google Site Search
Author « Topic »  

janhall_us1
Ecommerce Template Expert

USA
551 Posts

Pre-sales questions only
(More Details...)

Posted - 07/07/2017 :  13:35:51  
Is it possible to add blocks of boilerplate text to the product detail page? I sell T-shirts and have a list of attributes that need to be listed on every page (such as 100% cotton, preshrunk, etc.).

Eco-friendly Unique T-shirts and Unusual Greeting Cards
http://www.EquineAddicts.com

Sinbad
ECT Moderator

USA
65937 Posts

Posted - 07/07/2017 :  14:04:20  
Hi you can use custom fields on the product detail page we have information here on adding that to the detailpagelayout https://www.ecommercetemplates.com/help/ecommplus/parameters.asp#csslayout.

Winners never quit, quitters never win
CSS and Responsive Designs
User Manual for Ecommerce Templates

janhall_us1
Ecommerce Template Expert

USA
551 Posts

Pre-sales questions only
(More Details...)

Posted - 09/09/2018 :  13:04:38  
Hi,

I'm back to this again and still haven't found a solution. Using the Custom field doesn't save me any work if I need to change something that will affect several hundred products...it's not any different than putting it directly in the description as far as I understand it. I'm looking for something like a server-side include that I can put in the product description that will allow me to make one change to a text file and have it reflected on many pages. Is this possible? I haven't been able to get an Include to work.

Thanks!
Jan

Andy
ECT Moderator

95440 Posts

Posted - 09/09/2018 :  13:23:51  
Hi Jan

I can't think of an obvious solution there. One suggestion I saw was to use an frame but that would still need copying and pasting.

Andy

Please feel free to review / rate our software

dbdave
ECT Moderator

USA
10507 Posts

Posted - 09/09/2018 :  14:19:53  
I have a tip out there for using javascript and one of the custom fields to populate them with common text.
You can download the products csv (or used the quick entry) to add one small line to the custom filed for all of the products that need this common text.

I also use a javascript client side include to add some common items to the product descriptions as well.
I like that better than the iframe.
You cannot use a server side include in the product description.

I'll see if I can locate the tips and post them here.

dbdave
ECT Moderator

USA
10507 Posts

Posted - 09/09/2018 :  14:37:17  
Ok, I could not locate the post I was looking for, but it's super easy, so here it is.

In the custom field you just add this
<div id="customone"></div>

Remember you can do that quickly with the quick entry, or via csv.

Next, in your proddetail.asp page, before the closing </body> tag add this

<script>
if (document.getElementById('customone') != null) {
var customtextone = ('Your common info that you<br/>want to show on a large number of products<br/>This is also useful if you have more info than allowed in that field in the admin');
document.getElementById('customon').innerHTML = customtextone; }
</script>




Alternately, if you want something to include an html page, like an iframe, I use this
https://johannburkard.de/blog/programming/javascript/inc-a-super-tiny-client-side-include-javascript-jquery-plugin.html

Edited by - dbdave on 09/09/2018 14:37:43

janhall_us1
Ecommerce Template Expert

USA
551 Posts

Pre-sales questions only
(More Details...)

Posted - 09/09/2018 :  15:40:43  
Thanks guys, and "dbdave", you're awesome! I assume this is limited to the three Custom fields provided? I'm already using one and will need about a dozen more

dbdave
ECT Moderator

USA
10507 Posts

Posted - 09/09/2018 :  19:25:55  
You can just insert <div id="customone"></div> in the product description somewhere too.
If you are not using the SKU field, there is another one too.

Glad I could help.
  « 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