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
 All Forums
 Technical
 Getting Started and Pre-Sales
 Can't update dreamweaver templates...
Author « Topic »  

ClaireArt
Advanced Member

101 Posts

Posted - 03/20/2019 :  04:28:15  
… without destroying the php. I like using dreamweaver because I can tweak the template and it propagates the change to all pages once I save the template. However when I made a change to the template (small change, size of text) it changed all the pages but the php coding in php pages got over written and I got a fatal error. I had to go back to the original code and start again? Any advice on how to stop this from happening?

Thank you

Andy
ECT Moderator

95440 Posts

Posted - 03/20/2019 :  04:54:01  
Hi Claire

What is the code that is being changed and where is it on the page?

Andy

Please feel free to review / rate our software

ClaireArt
Advanced Member

101 Posts

Posted - 03/20/2019 :  05:04:49  
so I have been creating a new php page in dreamweaver, then I apply my template.
Then I copy your php, for example, from the categories.php page and paste it into the coding just after the edit region 3 bit.
Then I tweaked some html links, uploaded and everything worked beautifully...

But then I wanted to make a global change on my template. Made the change, and instead of the template being updated it seemed to corrupt the coding within the edit region bit eg. This is what it did to the affiliate page, which when viewed gives an error https://www.claire-harrison.co.uk/shop/affiliate.php (i'm not using the affiliate page which is why I have left it)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html><!-- InstanceBegin template="/Templates/2019 template.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- InstanceBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
<style type="text/css">
<!--
body {
background-image: url();
background-color: #E4E4E4;
}
body,td,th {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
color: #666666;
font-size: 9px;
}
h1 {
font-size: large;
color: #666666;
font-family: "MS Serif", "New York", serif;
font-style: italic;
}
-->
</style></head>

<body>
<table width="1004">
<tr align="left" valign="top">
<td width="996" height="260" colspan="2" bgcolor="#E4E4E4"><div align="center">
<p align="center"><img src="../New Website Images May 08/menu buttons 2019.jpg" width="1000" height="20" usemap="#Map3" border="0"><br>
<br>
<img src="../New Website Images May 08/2018 banner v3 1000 pixels wide.jpg" alt="Claire Harrison Art" width="1000" height="273"></p>
</div></td>
</tr>
<tr align="left" valign="top">

<td align="left" bgcolor="#E4E4E4"><!-- InstanceBeginEditable name="EditRegion3" -->
<form name="form1" method="post" action="">
<p><?php
session_cache_limiter('none');
session_start();
ob_start();
include "vsadmin/db_conn_open.php";
include "vsadmin/inc/languagefile.php";
include "vsadmin/includes.php";
include "vsadmin/inc/incfunctions.php";
include "vsadmin/inc/metainfo.php";?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><!-- InstanceBegin template="/Templates/2019 template.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- InstanceBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
<style type="text/css">
<!--
body {
background-image: url();
background-color: #E4E4E4;
}
body,td,th {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
color: #666666;
font-size: 11px;
}
h1 {
font-size: large;
color: #666666;
font-family: "MS Serif", "New York", serif;
font-style: italic;
}
-->
</style></head>

<body>
<table width="1004">
<tr align="left" valign="top">
<td width="996" height="260" colspan="2" bgcolor="#E4E4E4"><div align="center">
<p align="center"><img src="../New%20Website%20Images%20May%2008/menu%20buttons%202019.jpg" width="1000" height="20" usemap="#Map3" border="0"><br>
<br>
<img src="../New%20Website%20Images%20May%2008/2018%20banner%20v3%201000%20pixels%20wide.jpg" alt="Claire Harrison Art" width="1000" height="273"></p>
</div></td>
</tr>
<tr align="left" valign="top">

<td align="left" bgcolor="#E4E4E4"><!-- InstanceBeginEditable name="EditRegion3" -->
<form name="form1" method="post" action="">
<p><?php
session_cache_limiter('none');
session_start();
ob_start();
include "vsadmin/db_conn_open.php";
include "vsadmin/inc/languagefile.php";
include "vsadmin/includes.php";
include "vsadmin/inc/incfunctions.php";
include "vsadmin/inc/metainfo.php";?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Ecommerce Templates - Generic Version</title>
<!-- The js file, ectcart.js contains the javascript functions used in the cart pages and shouldn't be edited as it will be overwritten by updaters.-->
<script type="text/javascript" src="js/ectcart.js"></script>
<!-- The css file, ectcart.css contains the css classes used in the cart pages and shouldn't be edited as it will be overwritten by updaters.-->
<link rel="stylesheet" type="text/css" href="css/ectcart.css"/>
<!-- The css file, generic.css contains the css classes used in this design so if you are using your own design, it can be deleted.-->
<link href="css/generic.css" rel="stylesheet" type="text/css" />
<!-- The css file, ectstyle.css contains the css classes used in the shopping cart software layouts.-->
<link rel="stylesheet" type="text/css" href="css/ectstyle.css"/>
</head>
<body>

<div class="container">
<!-- start header -->
<div class="header"></div>
<div class="hdrR">
<a href="search.php">SEARCH</a> | <a href="giftcertificate.php">GIFT CERTIFICATES</a> | <a href="cart.php">VIEW CART</a><br />

<br /><div class="searchbox">
<!-- The following code will produce the mini search feature. More details are available here https://www.ecommercetemplates.com/help/searching.asp -->
<form method="post" action="search.php">
<input type="hidden" name="posted" value="1"/>
<input type="text" name="stext" size="16" class="tpsearch" />
<input name="Submit" type="submit" value="Search" class="sub" />
</form>
<!-- end search -->
</div> </div><div class="clearfloat"></div>
<!-- end header -->
<div class="title">our affiliate program</div>

<div class="content">
<!-- The following include line should go in the main body of the page where you want the affiliate login box to appear. If you are not using an affiliate program you can remove the link from the navigation and delete this page. Details of the affiliate program are outlined here https://www.ecommercetemplates.com/help/affiliate_program.asp -->
<?php include "vsadmin/inc/incaffiliate.php" ?>
<!-- end .content --></div>

<div class="sidebar1">
<p class="menu">sample products</p>
<!-- The following 2 lines will generate the dynamic accordion menu. The categories are pulled from those added in the admin categories page of the store control panel-->
<?php $menustyle='verticalmenu2' ?>
<?php include "vsadmin/inc/incmenu.php"?>
<p class="menu">shopping cart</p>
<!-- The following include line will generate the mini shopping cart. It needs to be placed where you want the minicart to appear on the page and must come somewhere after the four include lines defined above in the code.-->
<?php include "vsadmin/inc/incminicart.php" ?>
<br />
<p class="menu"><!-- end .sidebar1 --></p>
</div>

<div class="footer">
<p align ="center"><a href="../index.htm" target="_self">Home</a><a href="index.php"></a> | <a href="categories.php" target="_self">All Products</a><a href="products.php"></a> || <a href="mailto:art@claire-harrison.co.uk">Contact Us</a><a href="https://www.ecommercetemplates.com/contact.asp"></a></p>
<p class="ftr">© Copyright 2017 - <a href="https://www.ecommercetemplates.com/">Shopping cart</a> by Ecommerce Templates </p>
<!-- end .footer --></div>
<!-- end .container --></div>
</body>
</html>
 </p>
</form>
<!-- InstanceEndEditable -->
<p><div class="a2a_kit a2a_kit_size_32 a2a_floating_style a2a_default_style" style="bottom:0px; left:50%; transform:translateX(-50%);"> <a class="a2a_button_facebook"></a> <a class="a2a_button_twitter"></a> <a class="a2a_button_google_plus"></a> <a class="a2a_button_pinterest"></a> <a class="a2a_dd" href="https://www.addtoany.com/share"></a> </div> <script async src="https://static.addtoany.com/menu/page.js"></script> </p>
<p> </p></td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> 
</p>
<p> </p>
<p> </p>
<map name="Map2">
<area shape="rect" coords="129,17,305,47" href="../Form%20Submission%20Page.htm" target="_self">
<area shape="rect" coords="203,45,305,80" href="../Contact.htm" target="_self">
<area shape="rect" coords="186,79,306,111" href="../Contact.htm" target="_self">
<area shape="rect" coords="331,17,480,48" href="../Gallery/Photographs.htm" target="_self">
<area shape="rect" coords="348,48,481,79" href="../Gallery/Paintings%20Natural%20Forms%20Based%20on%20Geometry%20and%20Patterns.htm" target="_self">
<area shape="rect" coords="381,78,481,109" href="../Concept.htm" target="_self">
<area shape="rect" coords="536,14,679,46" href="../Creative%20Consultancy.htm" target="_self">
<area shape="rect" coords="554,43,678,78" href="../Services%20Menu%20Page.htm" target="_self">
<area shape="rect" coords="581,77,676,107" href="../Services%20Menu%20Page.htm" target="_self">
<area shape="rect" coords="723,14,850,46" href="../Exhibitions.htm" target="_self">
<area shape="rect" coords="741,44,851,79" href="../Contact.htm" target="_self">
<area shape="rect" coords="789,76,849,107" href="../Links.htm" target="_self">
<area shape="rect" coords="859,16,966,49" href="../Old%20News.htm" target="_self">
</map>
<map name="Map">
<area shape="rect" coords="217,1,349,34" href="#">
<area shape="rect" coords="378,2,476,36" href="#">
<area shape="rect" coords="502,2,651,33" href="#">
<area shape="rect" coords="682,0,847,31" href="#">
<area shape="rect" coords="878,2,1024,37" href="#">
<area shape="rect" coords="-33,21,10,22" href="#">
</map>

<map name="Map3">
<area shape="rect" coords="6,3,57,19" href="../index.htm" target="_self">
<area shape="rect" coords="885,3,909,19" href="https://www.facebook.com/ClaireHarrisonArtist" target="new">
<area shape="rect" coords="916,3,938,18" href="https://www.instagram.com/claireharrisonartist/ " target="new">
<area shape="rect" coords="946,3,965,16" href="https://twitter.com/ArtatClaire " target="new">
<area shape="rect" coords="974,3,994,20" href="www.linkedin.com/in/claireharrison" target="new">
<area shape="rect" coords="403,3,462,21" href="../Contact-Claire-Harrison-Art.html" target="_self">
<area shape="rect" coords="69,3,114,21" href="https://claireharrisonart.tictail.com/" target="new">
<area shape="rect" coords="131,3,186,19" href="../Gallery/Gallery-Front-Page-oil-paintings.html" target="_self">
<area shape="rect" coords="201,3,248,22" href="../Blog%20Front%20Page.htm" target="_self">
<area shape="rect" coords="266,3,322,19" href="../Tuition.htm" target="_self">
<area shape="rect" coords="340,3,388,19" href="../About-Claire-Harrison-Art-menu-page.html" target="_self">
</map>
</body>
<!-- InstanceEnd --></html>

Andy
ECT Moderator

95440 Posts

Posted - 03/20/2019 :  06:51:53  
There's a lot of duplicate and unnecessary code there so that would cause problems. Do you have a dwt file without all the extras, I mean one for an existing design and not cart related?

Andy

Please feel free to review / rate our software

ClaireArt
Advanced Member

101 Posts

Posted - 03/20/2019 :  07:16:52  
I can email you my 2019 dwt template file?

Or copy the coding just from the template?

Andy
ECT Moderator

95440 Posts

Posted - 03/20/2019 :  07:21:53  
Maybe best to send me am copy as it's a bit difficult with heaps of code in the forum.

Andy

Please feel free to review / rate our software
  « 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