Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

How to write links for categories?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-30-2003, 01:44 PM
  JeffQuestad's Avatar 
JeffQuestad JeffQuestad is offline
 

Advanced Member
  
Join Date: Sep 2003
Posts: 33
 

Default 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
Reply With Quote
  #2  
Old 10-30-2003, 01:51 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Version number please.

Can you provide a little more information? This is a very broad question.
Reply With Quote
  #3  
Old 10-30-2003, 02:04 PM
  JeffQuestad's Avatar 
JeffQuestad JeffQuestad is offline
 

Advanced Member
  
Join Date: Sep 2003
Posts: 33
 

Default

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
Reply With Quote
  #4  
Old 10-30-2003, 02:07 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

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?
Reply With Quote
  #5  
Old 10-30-2003, 02:24 PM
  JeffQuestad's Avatar 
JeffQuestad JeffQuestad is offline
 

Advanced Member
  
Join Date: Sep 2003
Posts: 33
 

Default

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
Reply With Quote
  #6  
Old 10-30-2003, 02:34 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

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.
Reply With Quote
  #7  
Old 10-30-2003, 03:08 PM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

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
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #8  
Old 10-30-2003, 03:09 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

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!
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:22 PM.

   

 
X-Cart forums © 2001-2020