PDA

View Full Version : Template just text


arthomas
30-03-07, 18:05
Hi all, hope someone can help... I’m a newbie and am very excited about this shop window concept, but am having some troubles getting it set up and intergrated. Have followed the setup guide which was very helpful but came into my first problem which was server permissions

When loading the files onto the server (Apluss) I came into this problem - http://api.productserve.com/v1/Produ...eService?wsdl

To get the shop front up I spoke directly to Apluss and they advised me; I needed to send them an email asking for permission to get through their firewall. The email consisted of :

"We are working closely in the UK with a company called "Affiliate Window" to sell commissioned goods to the traffic coming through our site. The company we work with (Affiliate Window - http://www.affiliatewindow.com ) have a service called 'Shop window' which compiles all of the affiliate merchants into an easy to use shop front within our site. The Firewall settings at Aplus stop the shop from working. This is what happens;

Our site: http://www.sassussex.com/shopwindow/index.php

So could you please remove the restrictions to the following proxy settings:

URL: http://api.productserve.com/v1/ProductServeService?wsdl

Post: 80"

are the objects above in bold correct, because now what happens when i go to the my shop window - (http://www.sassussex.com/shopwindow/index.php) the details come up but there is no template structure, Im sure people using a larger similar server will encounter these problems as well.

Please help.
Thank you

Confuscius
30-03-07, 18:36
View the source of your pages:

Your stylesheet links are at:

/templates/template_2a_green//css/styles.css

Not found! see the extra '/' ?

Go to index.tpl (then category, product, search) and edit out the offending '/' in the css link, then refresh your home page.

Hope this helps.

Paul

arthomas
30-03-07, 21:28
Hi Paul

In the tpl files there doesnt seem to be a repertition of // this is what it lookes like:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>{#siteTitle#} {$sBreadCrumbText}</title>
<link rel="stylesheet" href="{$templatePath}/css/styles.css" type="text/css">
</head>

the line in bold is the one you were refering to i guess...? might try to take out the slash after {$templatePath} see what happens...?!

will let you know, thanks for the help, if you have any other suggestions i would be happy to hear and try them... thank you

arthomas
30-03-07, 21:48
:) Very happy looks much better but there is still the same problem with some of the images and hot links etc. Could you give me some direction of how to edit the Image URL'S to get them right for example the buy now button and header. have looked at the sites source just cant seen to find the code in the files....

http://www.sassussex.com/shopwindow/index.php

Hope this helps other users as well it has for me.

Thanks Paul

shopper
30-03-07, 22:11
Hi,

I have had the same problem, just text no templates.

I cleared all the shopwindow folders and files from my webserver and re- installed them. Now there working fine.

http://shop-easy-at.a1-shopping-center.co.uk/

Read my page source:

The code works fine for me, with the double //

<link rel="stylesheet" href="http://shop-easy-at.a1-shopping-center.co.uk/templates/template_3a_red//css/styles.css" type="text/css">

Regards
shopper

Confuscius
30-03-07, 22:26
My first set up also works fine with the double //. The point being that if you point your browser at the css file then it was returning a 404 for that particular server so to solve that particular issue removal of one of ghe /'s solved the issue but it seems that the coding is introducing the extra / iin more than one place - looks like an application wide code review needs to be done. Perhaps AW coders could have a look at this issue and advise further.

arthomas
30-03-07, 22:28
Hummm i dont understand that....

Might try using another style of template, like 3a,b,c style i'll give it a go

thanks

Confuscius
30-03-07, 22:36
Compare : http://www.sassussex.com/shopwindow/templates/template_2a_green//css/styles.css

with: http://shop-easy-at.a1-shopping-center.co.uk/templates/template_3a_red//css/styles.css


by clicking the links. Same link structure but different server responses. I will have a dig around tomorrow to see what I can unearth.

arthomas
30-03-07, 22:41
There may be a diffrence in firewalls etc (that was my first problem) so i will contact apluss tomorrow to see what i can find out, will post back here.... for now have changed the template to see if that makes any diffrence!!!

Good luck

cheers for the help.

Confuscius
30-03-07, 23:42
Done a bit of digging and ... includes/classes/class.smarty_sw.php generates the {$templatePath} and this is passed through with the config template path and a / appended. Unfortunately, it appears that it is not as simple as amending the class file! Therefore the solution I have implemented for the time being is to go through the template and element files and replace all occurences of '{$templatePath}/' with '{$templatePath}'. This only takes a few minutes and picks up references to some images, logo and css file. You may also need to tweak the references to images found within the css file.

I should be grateful if AW would confirm this template coding error and that the 'fix' that I have suggested is the appropriate one i.e. amend the template files rather than the underlying code or laternatively advise the changes necessary to the underlying code.

Paul