The shopping cart screens are not database pages in the Page section, so
there is no way to dynamically assign page links to the shopping cart
screens.
The only way I can think of to do something that would simulate that
would be to put an INCLUDE in the shopping cart template that would
include a file in your data/templates/includes/ directory that is really
a symbolic link to the filename of a Page that you have created
specifically for this purpose (might have it's own page template so that
all it contains is page links navigation). In fact, if you want global
navigation, you could use this same page as an include in your page and
product templates for navigation on all of your other pages.
As far as VAR's go, no they are not constant globals for every part of
ShopSite, they are global in memory for as long as the particular
process that set them is alive, for example VAR's in the page or product
templates will last for the entire Publish once they are encountered.
VAR's in the shopping cart templates will only last for that instance of
the shopping cart CGI, so as soon as one cart screen is finished, any
VAR's are dumped, so VAR's are not a good way to pass information from
one shopping cart screen to another. They can be useful individually
within each DEFINE section, though, and I believe the default cart
template does use them like that.
-Loren
David wrote:
I'm generating my links "dynamically" with the Shopsite template parser
- I'd like to be able to utilize those links on the shopping cart
without having to copy the template generated html snippet and manually
paste it into the 'Text at . .' fields. Using the suggested method (if
I'm interpreting it correctly) means that every link addition or
deletion invoked by a database change requires that a manual edit be
performed to the shopping cart.
Is there any form of "include" that can be used within the shopping cart
template or in the SC 'Text at . .' fields?
Also, it appears that, despite the 'global' attribute for VAR.-,
Shopsite does not store VAR.- values for use by the shopping cart CGI
- is this correct?
Dave
On Mon, 26 Jan 2004 19:51:40 -0700, Loren <loren_d_c@yahoo.com> wrote:
This is probably not in the cart template, the ability to do this
pre-dates the ability to customize the cart template which was just
introduced in v7.
You can add HTML to your shopping cart pages in the Commerce Setup -
Order System menus for the various cart screens. Each cart screen menu
there usually has a 'Text at the top of' and 'Text at the bottom of'
setting, and they have probably placed their navigation HTML in these
. . . . .[snip]