X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How to write links for categories? (https://forum.x-cart.com/showthread.php?t=5016)

JeffQuestad 10-30-2003 01:44 PM

How to write links for categories?
 
I want to link from some graphics to some of the catagories within the site. How do I write the link?

For that matter how do I do it for any other page?

J

adpboss 10-30-2003 01:51 PM

Version number please.

Can you provide a little more information? This is a very broad question.

JeffQuestad 10-30-2003 02:04 PM

Version 3.4.7

And I just want to replace some of the categories with a link from a graphic. I don't know how to write that link so it still retains the customer information.

Thanks

adpboss 10-30-2003 02:07 PM

Wow.

I still don't get it.

Where are these links? in the cat menu? Or are you creating new links from images in a different part of the layout?

What do you mean by customer information?

JeffQuestad 10-30-2003 02:24 PM

Sorry, I'm new to this. I'm not sure how else to explain it.

There are categories. I made some of them products (naturally) and some of them brands. I am assiging each product both a product category and a brand category.

The brands I am attempting to suppress so they don't show up in the category menu and then I am putting graphic buttons there instead with those brand logos and I want those buttons to be links to the categories.

I just don't know how to write hyperlinks in X-cart so it will retain whatever customer info. I'm a traditional web designer and only marginally experienced with PHP, only enough to know I could very well write code here that will lost the customer ID, etc.

This is probably such a simple bonehead question that it seems complicated. :) I'm on my first store and I've tried to find a simple primer on this in the forums and can't. I appreciate your help.

J

adpboss 10-30-2003 02:34 PM

OK, I won't beat you up anymore then. I don't want you to quit using X-cart! :)

FIRST thing. NEVER include the session info in your links. It gets transferred automatically. Adding session info to your links will cause ALL kinds of problems.

Your category link should be clean link this

http://www.adpmods.com/xcart/customer/home.php?cat=14

That's it. Nice and simple.

Second.

I will add link for the category supression idea. I have to go find it.

Just put your image placeholder in the template you want it to appear in and add the hyperlink as per usual. very simple. I will help find out how you can "Suppress" those cats.

shan 10-30-2003 03:08 PM

probably best to make links as just

home.php?cat=4

save your images in the skin1/images directory and then reference the images as

{$ImagesDir}/yourpic.jpg

adpboss 10-30-2003 03:09 PM

Here is the link to split up the categories.

http://forum.x-cart.com/viewtopic.php?p=29135#29135

My advice would be to order your brand categories very high (POS field) and then only display categories below the POS number of the first brand category.

Then insert your images and links and you are a happy camper!


All times are GMT -8. The time now is 03:54 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.