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

Is it possible to Add links to an individual product page?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-16-2008, 08:20 AM
 
designerweb designerweb is offline
 

Advanced Member
  
Join Date: Feb 2006
Posts: 94
 

Default Is it possible to Add links to an individual product page?

Is it possible to Add links to an individual product page?

For example, if I am selling a chair. On that chair page I would
like to place links to a page that help cusomters polish their chair.

And on my Table page, I would like to add a link on how to polish tables.

- I dont want the table link to display on the chair page and vice-versa.

Being that the prouct pages are generated on the fly via database - is this possible?

Thanks for the help!
__________________
JimmyBoy
xcart v4.0.17 [unix]
Reply With Quote
  #2  
Old 04-16-2008, 08:25 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Is it possible to Add links to an individual product page?

Add the link to the product description
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 04-16-2008, 09:08 AM
 
designerweb designerweb is offline
 

Advanced Member
  
Join Date: Feb 2006
Posts: 94
 

Default Re: Is it possible to Add links to an individual product page?

Yeah, I thought of that but...
have 100's of products that I want to add specific links to.

I need an easier way to do it via DB or PHP combo.

Any other methods?
__________________
JimmyBoy
xcart v4.0.17 [unix]
Reply With Quote
  #4  
Old 04-16-2008, 10:02 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Is it possible to Add links to an individual product page?

You could use {if} statements, but you'd still have to write them to tell the system which links to show on what pages.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 04-16-2008, 10:16 AM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: Is it possible to Add links to an individual product page?

What about using some sort of upselling module?

Or perhaps adapt featured products to be displayed on all product pages and stripping the line of code that is only needed to display a link. (Think the above is easier)
__________________
Doms
kube v4.1.9
Reply With Quote
  #6  
Old 04-16-2008, 10:32 AM
 
designerweb designerweb is offline
 

Advanced Member
  
Join Date: Feb 2006
Posts: 94
 

Default Re: Is it possible to Add links to an individual product page?

Maybe this is easier:

Id like to have code on each page that can read the product name (title) and based on that show proper link(s) from a database.

If it sees Chair in the title then it shows all chair links, etc.
__________________
JimmyBoy
xcart v4.0.17 [unix]
Reply With Quote
  #7  
Old 04-16-2008, 01:12 PM
 
xsurf xsurf is offline
 

Advanced Member
  
Join Date: Mar 2008
Posts: 56
 

Default Re: Is it possible to Add links to an individual product page?

Being a newbie am not sure if the following makes sense, but why wouldn't the following work - add an extra field to products, then add code that makes use of the extra field wherever you want that link displayed?
__________________
X-cart Gold 4.1.12
One Page Checkout
CDSEO Pro
Smart Search
PHP 5.2.5
FreeBSD
Reply With Quote
  #8  
Old 04-16-2008, 01:32 PM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: Is it possible to Add links to an individual product page?

Quote:
Originally Posted by xsurf
Being a newbie am not sure if the following makes sense, but why wouldn't the following work - add an extra field to products, then add code that makes use of the extra field wherever you want that link displayed?

It wouldn't be any different than hard-coding a link. In other words, it would be hard to maintain if a product were to be disabled, removed, etc. The only dynamic part would be the extra field displaying its contents; the contents of which, would be static in this case.
__________________
Doms
kube v4.1.9
Reply With Quote
  #9  
Old 04-16-2008, 01:44 PM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: Is it possible to Add links to an individual product page?

It would be easy to display a certain product through a link and even check for its existence with an IF/ELSE statement but then the problems arise again with maintenance - what happens if that product were to be disabled or he/she wanted to point to another product.

Then there would be lots of IF/ELSE statements being executed all the time for no reason. Hope that makes a little more sense.
__________________
Doms
kube v4.1.9
Reply With Quote
  #10  
Old 04-16-2008, 01:50 PM
 
xsurf xsurf is offline
 

Advanced Member
  
Join Date: Mar 2008
Posts: 56
 

Default Re: Is it possible to Add links to an individual product page?

I don't get it. I create an extra field called URL_field, and another called LinkText_field. Now let's use designerweb's example (but assume for simplicity's sake that it's one link per product):

"For example, if I am selling a chair. On that chair page I would
like to place a link to a page that help customers polish their chair".
Okay, so for product chair URL_field contains the url to a page on how to polish a chair and LinkText_field contains "how to polish your chair".

"And on my Table page, I would like to add a link on how to polish tables."
Okay, so for product Table extra field URL_field contains the url to a page on polishing tables and LinkText_field contains "how to polish tables".

Now for each product, there will be a place for such a link. If fields are empty, the code says do not display. If fields for product not empty, then the code displays <a href="URL_field">LinkText_field</a>.

What does it matter if a product is discontinued, removed, or something else? This code will be in a product template page, and if the field values are empty, it will simply not display anything ? So what am I missing? As far as I understand these links will not be to other products?
__________________
X-cart Gold 4.1.12
One Page Checkout
CDSEO Pro
Smart Search
PHP 5.2.5
FreeBSD
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:08 AM.

   

 
X-Cart forums © 2001-2020