marty.net 1001 Postcards Love Love Love Meep Meep ZenZodiac DailyQuotation

YOU ARE HERE:
Are Store "Codes" Constant?

HOME

CPSHOP|

|

|

EMAIL MARTY
  marty.net message board
  « Are Store "Codes" Constant? »
Welcome, Guest. Please Login or Register.
12/16/17 at 22:40:37
Home Help Search Login Register
   marty.net message board
   About cpshop
   Customization Help
   Are Store "Codes" Constant?
(Moderator: Marty)
Pages: 1 Reply Notify of replies Send the topic Print 
   Author  Topic: Are Store "Codes" Constant?  (Read 694 times)
viking
White Dragon
**

Posts: 15



Go Scots!
   

Are Store "Codes" Constant?
« on: 04/07/07 at 21:22:40 »
Reply with quote Modify message

CPshop generates a sidebar with links for the different stores. However, in our own prototype pages we have "cool" rollover javascript links.

I guess that, in general, we can not use these type of links with CPshop but must use the simpler links generated by CPshop?

I otherwise see 2 possible "solutions":
1. Modify the perl scrip to generate the "cool" rollover javasript links. This may be very difficult to do though.....?

OR

2. I noticed that the different store ID's are associated with a code, e.g.
http://www.myshop.com/cgi-bin/store/cpshop.pl/2148173041.

How are these numbers generated by the CPShop script? Will they ever change? If not, then we could hardcode these URL's in the template and thus keep our "cool" javascript links.  A bit inflexible, but it would work.....
« Last Edit: 04/07/07 at 21:29:42 by viking » Logged
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: Are Store "Codes" Constant?
« Reply #1 on: 04/07/07 at 23:00:12 »
Reply with quote Modify message

The numbers are created by cpshop when you don't enter an alias for that store ID.  If you enter an alias, it'll use that text instead, and your links can be hardcoded.  (And your links will be prettier.)
Logged

--
Regards,
Marty·.¸¸.·´¯`·.¸¸.-> marty@marty.net
viking
White Dragon
**

Posts: 15



Go Scots!
   

Re: Are Store "Codes" Constant?
« Reply #2 on: 04/08/07 at 01:19:37 »
Reply with quote Modify message

OK. Great!

This was an example of the demise of missing explanations of the Admin Options. I had no idea what the purpose of the "Alias" was for.
See my post here: http://www.marty.net/cgi/marty/board/messageboard?board=cptemplate&action=display&num=1175981917

I guess that I should search the boards to find out what the other options are for... It would otherwise help beginners (such as myself) a lot if these were explained all together somewhere in a "manual" or directly on the admin pages.
« Last Edit: 04/08/07 at 01:48:44 by viking » Logged
Pages: 1 Reply Notify of replies Send the topic Print 
Jump to:


marty.net message board (http://www.marty.net/cgi/marty/board/messageboard)

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