Jump to content

Changing link destination - newbie question


Guest Steve Wilson

Recommended Posts

Guest Steve Wilson

Hi,

Yeap dumb newbie question coming up.

I have successfully installed the latest Cubecart (well done to the guys for making it simple.)

Now I wish to integrate it with my existing site. I've checked forum but can't find an answer to the following.

Classic skin has links to About Us | Contact Us | Privacy Policy | Terms & Conditions.

Quite simply I wish these links to point to exisiting pages on my website rather than to pages inside cubecart.

QUESTION: You've guessed it, where do I find the <a href> for these four links to change first the actual text and also the URL they point to, or is it not as simple as that?

I searched but I have not found, I guess because I'm missing the obvious, can someone please enlighten me.

Thanks

Steve

Link to comment
Share on other sites

Guest Steve Wilson

Thanks Ansuk,

You've very kindly come to my aid yet again.

I've also took the advice you gave me on an earlier posting not to use my fantastico install and instead did a fresh install which proved nice and simple.

This is just to say a big thanks for your support it is appreciated.

All the best

Steve

Link to comment
Share on other sites

Guest Steve Wilson

Ansuk,

Um! I guess by the below tpl that I need to find and change DATA.doc_id and DATA.doc_name to point to my exisitng website pages rather than cubecart pages but yet again being new to all this I can not find where this data is kept.

<!-- BEGIN: site_docs -->

<div class="siteDocs">

<!-- BEGIN: a -->

<a href="index.php?act=viewDoc&amp;docId={DATA.doc_id}" class="txtSiteDocs">{DATA.doc_name}</a>

<!-- BEGIN: sep --><span class="txtSiteDocs">|</span><!-- END: sep -->

<!-- END: a -->

</div>

<!-- END: site_docs -->

I get the feeling as I come to cubecart for the first time that I really should have a better understanding of PHP than I do. I was hoping to find for xhtml and CSS so I'm having to learn on my feet here.

Steve

Link to comment
Share on other sites

That data is kept in the database and is a result of a db query running a php loop between the tags

<!-- BEGIN: a -->

and

<!-- END: a -->

I know that's prolly just geek speak to you, so forget about it :huh:

PART ONE

If you want to not use any of these CubeCart™ site docs, then this is how you re-code that page:

1. Make a copy of the page and rename to siteDocs.tpl.BAK - this is your backup

2. Put this in siteDocs.tpl:

<!-- BEGIN: site_docs -->

<div class="siteDocs">

<a href="url_to_link_1" class="txtSiteDocs">Link 1 Name</a>

<span class="txtSiteDocs">|</span>

<a href="url_to_link_2" class="txtSiteDocs">Link 2 Name</a>

<span class="txtSiteDocs">|</span>

<a href="url_to_link_3" class="txtSiteDocs">Link 3 Name</a>

<span class="txtSiteDocs">|</span>

<a href="url_to_link_4" class="txtSiteDocs">Link 4 Name</a>

<span class="txtSiteDocs">|</span>

<a href="url_to_link_5" class="txtSiteDocs">Link 5 Name</a>

<span class="txtSiteDocs">|</span>

<a href="url_to_link_6" class="txtSiteDocs">Link 6 Name</a>

</div>

<!-- END: site_docs -->

PART TWO

OTOH, if you want to use some CubeCart™ site docs along with more links to outside pages, that can be easily managed as well. Just let me know whether you want the CC site docs to come before your external links or after them :huh:

Link to comment
Share on other sites

Guest Steve Wilson

Thanks Markscart,

That was exactly what I needed. I must admit now that I'm getting into Cubecart I realise why so many people recommend it.

Steve

Link to comment
Share on other sites

  • 2 weeks later...
Guest jaydvd

That data is kept in the database and is a result of a db query running a php loop between the tags

<!-- BEGIN: a -->

and

<!-- END: a -->

I know that's prolly just geek speak to you, so forget about it :o

PART ONE

If you want to not use any of these CubeCart™ site docs, then this is how you re-code that page:

1. Make a copy of the page and rename to siteDocs.tpl.BAK - this is your backup

2. Put this in siteDocs.tpl:

<!-- BEGIN: site_docs -->

<div class="siteDocs">

<a href="url_to_link_1" class="txtSiteDocs">Link 1 Name</a>

<span class="txtSiteDocs">|</span>

<a href="url_to_link_2" class="txtSiteDocs">Link 2 Name</a>

<span class="txtSiteDocs">|</span>

<a href="url_to_link_3" class="txtSiteDocs">Link 3 Name</a>

<span class="txtSiteDocs">|</span>

<a href="url_to_link_4" class="txtSiteDocs">Link 4 Name</a>

<span class="txtSiteDocs">|</span>

<a href="url_to_link_5" class="txtSiteDocs">Link 5 Name</a>

<span class="txtSiteDocs">|</span>

<a href="url_to_link_6" class="txtSiteDocs">Link 6 Name</a>

</div>

<!-- END: site_docs -->

PART TWO

OTOH, if you want to use some CubeCart™ site docs along with more links to outside pages, that can be easily managed as well. Just let me know whether you want the CC site docs to come before your external links or after them :w00t:

I'm also new to CubeCart and I actually need to Part Two as my solution. I need to add a few external links in front of the standard CubeCart site docs. It would be great if you could let me know how I'd go about doing that.

Thanks,

Jason

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...