1001 Postcards Love Love Love Meep Meep ZenZodiac DailyQuotation

Default Templates?





EMAIL MARTY message board
  « Default Templates? »
Welcome, Guest. Please Login or Register.
03/21/18 at 18:29:34
Home Help Search Login Register message board
   About cpshop
   Customization Help
   Default Templates?
(Moderator: Marty)
Pages: 1 Reply Notify of replies Send the topic Print 
   Author  Topic: Default Templates?  (Read 790 times)
Gold Dragon

Posts: 53

Your mileage may vary.

Default Templates?
« on: 04/04/03 at 00:09:15 »
Reply with quote Modify message

I noticed that when you leave certain fields blank in the cpshop admin screen, it says it will use it's own default template...

Where are the default templates? Other than cptemplate.html, everything seems to be in the library of the script. What about the other templates that make up <[content]>?

Such as the default "Product Thumbnail page HTML Template" (cptemplate_store.html)? Are the templates available online somewhere? (In original template form, not post-script use, where all the variable tags are replaced with content.)

Also, is it possible to use <[variables]> on the admin screen in fields such as "Product Thumbnail Page Greeting" field? I couldn't get them to work from there.

Appreciate any help/info.

« Last Edit: 04/04/03 at 00:10:39 by jca » Logged

Administrator Dragon

Gender: male
Posts: a whole lot

That's me. :)

WWW E-Mail
Re: Default Templates?
« Reply #1 on: 04/05/03 at 11:43:56 »
Reply with quote Modify message

Okay, I just sent you some temporary code that should let you do that.

And for anyone else that wants to hack something like this in, here's what I said:

In cpshop.cgi, after this line:

$html =~ s/<\[content\]>/$content/;

Add this line:

$html =~ s/<\[(.*?)\]>/${$1}/g;

Then go ahead and use the <[storeid]> tag in the "product page greeting" box in your cpshop admin screen.  That new line of code should replace that tag with the correct store ID, which is, I believe, what you want to do.

Pages: 1 Reply Notify of replies Send the topic Print 
Jump to: message board (

Powered by YaBB 1 Gold - Release (Yet Another Bulletin Board)
Copyright © 2000-2001, X-Null. All Rights Reserved.