Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 main.dwt not editable - Wrong directory
Author « Topic »  

sjones1787
Starting Member

USA
35 Posts

Pre-sales questions only
(More Details...)

Posted - 09/29/2017 :  13:03:32  
Hello, I uploaded the shopping cart to a directory (Jan-San) I unzipped all of the files into that directory. The store seems to be functioning fine but I am unable to make any changes to the template file main.dwt.

For example when I look at the cart.php page line #9 calls to the template <!-- #BeginTemplate "/Templates/main.dwt" --> However, in Dreamweaver from the cart.php page when I go to -> Modify -> Templates -> Open Attached Template I get an error that is telling me C:\xampp\htdocs\Domain\Templates\main.dwt was not found.

The Templates directory was not installed into C:\xampp\htdocs\Domain\Templates\ - it is in C:\xampp\htdocs\Domain\Jan-San\Templates\ - the same directory as all of the other files. So I then tried to move main.dwt to the root directory like it said it was looking for. Then it lost all of its styling for obvious reasons.

Is there anyway to attach the files to a template located in C:\xampp\htdocs\Domain\Jan-San\Templates\ -??? Otherwise I will have to detach all of my pages from the template and hand code all of the changes.

It is almost like Dreamweaver does not allow you to have a template outside of the root directory?

Any suggestions??

S Jones

sjones1787
Starting Member

USA
35 Posts

Pre-sales questions only
(More Details...)

Posted - 09/29/2017 :  13:34:24  
FIXED IT

Okay, what I ended up doing was taking the main.dwt located in my sub directory and doing a save as template, naming it main2.dwt - upon saving, it asked to update links, I selected yes and Dreamweaver put it in the root directory Template folder. Then when I attached it to the cart.php page the styling is all there and I can just make the changes from the main2.dwt located in the Root directory for now.

S Jones

Andy
ECT Moderator

95440 Posts

Posted - 09/29/2017 :  23:17:53  
Hi

Glad you fixed it. One other solution would have been to edit the cart etc pages in a text editor changing the path from

<!-- #BeginTemplate "/Templates/main.dwt" -->

to

<!-- #BeginTemplate "Templates/main.dwt" -->

Andy

Please feel free to review / rate our software

stevep
Advanced Member

USA
182 Posts

Pre-sales questions only
(More Details...)

Posted - 01/06/2020 :  10:57:18  
I've run into a curious issue when updating my copyright date for the web site, now that we are into a new year. I figured all I needed to do was update my .dwt files which I have done. This updates all pages except categories.asp and products.asp. These files have the same line above <head>: <!-- #BeginTemplate "Templates/project.dwt" -->
Any idea as to why these files are not included in the site update?

Thank you,
Steve

Vince
Administrator

42874 Posts

Posted - 01/06/2020 :  11:10:20  
Hi Steve
When you save the template file and it asks you if you want to update all pages, are there any indications of any errors? Do you see those two pages in the list of pages that were updated?

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

stevep
Advanced Member

USA
182 Posts

Pre-sales questions only
(More Details...)

Posted - 01/06/2020 :  11:55:47  
Vince,

It must have been some anomaly - I re-edited and re-saved the project.dwt and this time it attached to 17 files instead of 15, so the ones I noted were updated and when published, display the new date. So good to go.

Thank you,
Steve

1818charlie
ECT Moderator

United Kingdom
1198 Posts

Posted - 01/07/2020 :  01:01:03  
Hi Steve

Instead of manually adjusting the copyright date every year why don't you use the PHP code

<?php echo date("Y") ?>

which will auto adjust the year for you. I've used this on all the sites I work on for years and is one less thing to overlook.

For me, one thing about a website with an out of date copyright leads me to think a website that isn't maintained and comes across less trustworthy.

Steve
Manchester, UK

Using ECT since 2004

Edited by - 1818charlie on 01/07/2020 01:21:26

stevep
Advanced Member

USA
182 Posts

Pre-sales questions only
(More Details...)

Posted - 01/07/2020 :  04:47:17  
Steve, well said - I will look into that. My site is ASP so I'll look for the equivalent.
Steve

Vince
Administrator

42874 Posts

Posted - 01/07/2020 :  05:30:15  

1818charlie
ECT Moderator

United Kingdom
1198 Posts

Posted - 01/07/2020 :  05:32:13  
Hi Steve,

I only work on PHP so I can't assist with the ASP code. Probably worth having a sniff over at w3schools.com to see if there's an ASP equivalent.

Having said that your topic is in the PHP section of the forum.

Steve
Manchester, UK

Using ECT since 2004
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000