| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Linking pages from product pages | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Linking pages from product pages
Hi all
When you are editing the product description and are using html to design it, is there an alternative to link to another page other than a static link? This is what I am using <a href="http://www.testsite.com/xcart/testpage.html"> I would like to use a dynamic link like: <a href="testpage.html"> Because when I change my cart the the root directory all the links I have made will have to be redone. Is that possible? What code do I have to use to enable these links? Or should I keep the static link for SEO purposes? Wow - So much to learn!
__________________
Gold 4.2.0 CDSEOPRO v.1.3.1 Advanced MiniCart ezUpsell One Page Checkout Drug Test Kits |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Linking pages from product pages
I don't understand why you would create a product page in html, x-cart creates product pages dynamically using templates.
__________________
Two Separate X-Cart Stores Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series. Integrated with Stone Edge Order Manager + POS Version 4.1.12 Gold (fresh install) - X-AOM - Linux Mods - XCSEO free |
|||||||||
#3
|
|||||||
|
|||||||
Re: Linking pages from product pages
I am using html to design the layout of the product description - not the actual product page. Sorry, I wasn't very clear about that.
I want to link to static pages without having to input a static link.
__________________
Gold 4.2.0 CDSEOPRO v.1.3.1 Advanced MiniCart ezUpsell One Page Checkout Drug Test Kits |
|||||||
#4
|
|||||||||
|
|||||||||
Re: Linking pages from product pages
I also am not clear on what you are trying to do and why
<a href="testpage.html"> would not work if testpage is a static page or rewritten URL created within xcart. I don't use 4.2, but on 4.1.x, you can use a smarty variable that indicates your cart location: <a href="{$current_location}/testpage.html"> This works in XCART - so if you are making html pages outside xcart, there is more involved in using the smarty variables.
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold (CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module) |
|||||||||
#5
|
|||||||
|
|||||||
Re: Linking pages from product pages
Two issues
#1 What I am trying to do is link a to a page from either text or an image. To link a page I am trying to use: <a href="testpage.html"> this works with static pages - I think I have sorted this prob out. #2 When I try to show an image into the product description I would like to use smarty but I am having problems If I use: <img src="{$ImagesDir}/test.gif" alt="" /> in the HTML of the product description it won't pull the image. But if I use this: <img src="http://www.testsite/images/test.gif" alt="" /> It works Thanks for the help
__________________
Gold 4.2.0 CDSEOPRO v.1.3.1 Advanced MiniCart ezUpsell One Page Checkout Drug Test Kits |
|||||||
#6
|
|||||||||
|
|||||||||
Re: Linking pages from product pages
In admin - general settings is the field "Parse Smarty tags in the content of embedded static pages" checked?
__________________
Two Separate X-Cart Stores Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series. Integrated with Stone Edge Order Manager + POS Version 4.1.12 Gold (fresh install) - X-AOM - Linux Mods - XCSEO free |
|||||||||
#7
|
|||||||
|
|||||||
Re: Linking pages from product pages
Quote:
Your images must live in /skin1/images /skin1/images = {$ImagesDir} DO NOT use /images unless you want to break your site when it goes https.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
|
|||
X-Cart forums © 2001-2020
|