| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Is it possible to Add links to an individual product page? | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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] |
|||||||
#2
|
|||||||
|
|||||||
![]() Add the link to the product description
![]()
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() 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] |
|||||||
#4
|
|||||||
|
|||||||
![]() 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 |
|||||||
#5
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
#6
|
|||||||
|
|||||||
![]() 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] |
|||||||
#7
|
|||||||
|
|||||||
![]() 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 |
|||||||
#8
|
|||||||||
|
|||||||||
![]() Quote:
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 |
|||||||||
#9
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
#10
|
|||||||
|
|||||||
![]() 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 |
|||||||
|
|||
X-Cart forums © 2001-2020
|