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
 Options not updating price
Author « Topic »  

JustDucky923
Ecommerce Template Guru

USA
1333 Posts

Posted - 11/06/2017 :  12:04:36  
One of my sites: alkydigger.net, has many products and many product options. The site owner just sent me an email and said they just noticed that the options within a product are not updating the price of the product until the product goes into the cart. It used to work so that as soon as you added or removed an option, the product price would update right on the product page (as it does on all other sites using ECT). Has something changed or is something set up wrong?

Here is a link to a product to show you how it's (not) working: https://www.alkydigger.net/proddetail.php?prod=EN4005F

Sinbad
ECT Moderator

USA
65937 Posts

Posted - 11/06/2017 :  12:11:08  
Hi Kelly, nothing has changed in the options updating the price as you can see here it works http://www.ectdemostore.com/proddetail.asp?prod=Build+Your+Own Has the site had any changes recently?

Winners never quit, quitters never win
CSS and Responsive Designs
User Manual for Ecommerce Templates

JustDucky923
Ecommerce Template Guru

USA
1333 Posts

Posted - 11/06/2017 :  12:16:46  
Yes, I know how it is suppose to work. As I said it is working correctly on all my other ECT sites. There have been no changes to the site - other than adding some code for Google Ad Words and making a couple of minor image changes on the basic site - nothing in the database or the vsadmin.

What things can we check to see why it's not working?

Sinbad
ECT Moderator

USA
65937 Posts

Posted - 11/06/2017 :  13:16:23  
Hi you can try updating the site and see if that puts things right.

Winners never quit, quitters never win
CSS and Responsive Designs
User Manual for Ecommerce Templates

JustDucky923
Ecommerce Template Guru

USA
1333 Posts

Posted - 11/07/2017 :  07:48:45  
It was using version 6.7.2 and I just upgraded to 6.7.3 and it did not fix the issue.

Here is what I just noticed on the site:

1) Go to https://www.alkydigger.net/proddetail.php?prod=DYER871

2) Base price is $2,300.00

3) Add an option (first option "Teflon Strips for Competition or Alcohol +$300.00")

4) Note that the base price does not change.

5) Refresh the page manually - and the price changes to $2,600.00 (as it should be).

6) Click "Add to cart" - the correct price of $2,600.00 shows in the cart.

Can anyone tell me WHY this is happening and how to fix it?

Phil
ECT Moderator

United Kingdom
7680 Posts

Posted - 11/07/2017 :  08:00:42  
Hi,
This is just a shot in the dark but it needs correcting anyway

<script type="text/javascript" src="Templates/js/stscode.js"></script>

should be
<script type="text/javascript" src="js/stscode.js"></script>



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

JustDucky923
Ecommerce Template Guru

USA
1333 Posts

Posted - 11/07/2017 :  08:17:51  
Actually that line is correct. The js folder is within the Templates folder - it always has been that way.

Phil
ECT Moderator

United Kingdom
7680 Posts

Posted - 11/07/2017 :  08:28:05  
You're right, it is. I didn't browse to it to check - sorry about that.

What I would do is create a stripped down copy of the product detail page with the basics and then browse to your copy and then try it.

<?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";
?><!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<?php include "vsadmin/inc/incproddetail.php";?>
</body>
</html>


Save it as proddetailtest.php then browse to https://www.alkydigger.net/proddetailtest.php?prod=DYER871



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

JustDucky923
Ecommerce Template Guru

USA
1333 Posts

Posted - 11/07/2017 :  08:39:11  
Great suggestion! That works - now how do we figure out what is causing the problem? :)

Andy
ECT Moderator

95440 Posts

Posted - 11/07/2017 :  09:02:04  
Well that tells you it is something on the page and not in the store code.

What you need to do is start removing lines from proddetail.php starting with the js lines to find which is the culprit. My money is on

<script type="text/javascript" src="Templates/js/stscode.js"></script>

Andy

Please feel free to review / rate our software

JustDucky923
Ecommerce Template Guru

USA
1333 Posts

Posted - 11/08/2017 :  12:04:36  
I'm not sure why it would be that line, since it does point to the right place and it has been that way since day one of the site (almost 8 years ago). The option updating was working properly until very recently. Nothing has changed on the site - or the product detail page in quite a while.

That line is actually in the template file and is on every page. Here is the entire proddetail page - can anyone take a look and give me an idea of something that might be wrong? I already tried removing the line: <?php include "editprod.php" ?> -- this is a custom mod and I thought that would be a good place to start, but it did not help. What I've done for now is created a 2nd proddetail page name 2proddetail.php and I'm making the changes to that and checking the live site. Let me know if there's any reason that's not the best way to do it.

<?php
session_cache_limiter('none');
session_start();
ob_start(); ?><!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" lang="en" xml:lang="en"><!-- #BeginTemplate "Templates/project.dwt" --><!-- DW6 -->
<head>
<?php
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";
?>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- #BeginEditable "doctitle" -->
<title>Alkydiggers Fuel Injection, Superchargers, Ignitions | Specializing in Enderle and Hilborn Injection | 615-457-3192</title>
<meta property="og:type" content="product" />
<?php
print $metaogimage;?>



<meta property="og:title" content="<?php print $productname?>" from Alkydiggers Fuel Injection, Superchargers, Ignitions" />
<meta property="og:description" content="<?php print str_replace('"','"',$productdescription);?>" />


<!-- #EndEditable -->
<link rel="stylesheet" type="text/css" href="style.css" />
<link href="css/ectcart.css" rel="stylesheet" type="text/css">
<meta name="viewport" content="width=device-width; initial-scale=1.0" />
<!--[if lte IE 7]>
<style type="text/css">
div#topnav{
margin-top:-13px;
}
</style>
<![endif]-->
<style type="text/css">
<!--
.addressmain {
font-size: 13px;
font-weight: bold;
color: #ED1C24;
}
.newheader {
float: left;
}
.newheadercenter {
}
.newheadercenterID {
}
#newheaderID {
}

#left, #center, #right {
float:left;
}

#left, #center, #right {
float:left;
}
#left {width:500px;}
#left img {500; height:107px;}
#center {
width:300px;
text-align: center;
padding-top: 22px;
}
#center span {
font-size:30px;
top:30%;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
color: #000;
}
#right {width:350px;}


-->
</style>

<script type="text/javascript" src="Templates/js/stscode.js"></script>
<link rel="stylesheet" href="css/scroller.css"/>

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-104034143-1', 'auto');
ga('send', 'pageview');

</script>


</head>
<body>


<!--<script type="text/javascript" src="js/scroller.js"></script>-->


<div id="maincontainer">
<div class="topsocial">
<div class="topleftlinks"><a class="tp" href="index.php">home</a> · <a class="tp" href="products.php">products</a> · <a class="tp" href="cart.php">cart</a>
</div>
<a href="https://www.facebook.com/AlkyMike" target="_blank"><img src="images/facebook.gif" alt="Facebook" width="30" height="30" /></a> <a href="https://twitter.com/Alkydiggercom" target="_blank"><img src="images/twitter.gif" alt="Twitter" width="30" height="30" /></a><a href="http://www.pinterest.com/alkymike/" target="_blank"><img src="images/pinterest.gif" alt="Pinterest" width="30" height="30" /></a>
</div>


<div id="header">
<div id="left"><img src="2014Images/Logo/TopLogoWide.png" width="500" height="100" /></div>
<div id="center"><span>615-457-3192</span></div>
<div id="right">
<div class="hdrR"><span class="toptextlinks"><a href="clientlogin.php">CLIENT LOGIN</a> | <a href="orderstatus.php">ORDER STATUS</a> | <a href="tracking.php">TRACKING</a><br />
<br />
</span>
<div class="searchbox">
<form id="form-search" method="post" action="search.php">
<input type="hidden" name="posted" value="1"/>
<input type="hidden" name="nobox" value="true"/>
<p>
<input type="text" id="input-keywords" name="stext" value="Search our store..." onfocus="if(this.value == 'Search our store...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search our store...';}" />
<input id="submit-search" type="image" src="images/search-icon.jpg" alt="Search" title="Search" value="submit" />
</p>
</form>
</div>
</div>
</div>
<div class="clr"> </div>
<div id="topnav">
<ul id="navlist">
<li><a href="index.php">Home</a></li>
<li><a href="about.php">About Us</a></li>
<li><a href="trade_in.php">Sell/Trade</a></li>
<li><a href="http://www.alkydigger.net/TechInfo">Technical Info</a></li>
<li><a href="videos.php">Videos</a></li>
<li><a href="testimonials.php">Testimonials</a></li>
<li><a href="http://www.alkydigger.net/serviceform.html" target="_blank">Request For Service</a></li>
<li><a href="cart.php">View Cart</a></li>
<li class="navextra"><a class="navextra" href="search.php">Search</a></li>
<li><a href="termsandconditions.php">Terms & Conditions</a></li>
<li><a href="contact.php">Contact</a></li>
</ul>
</div>
</div>







<div class="clr">


</div>


<div id="mainwrapper">

<div id="maincontent">
<!-- #BeginEditable "Body" -->

<?php include "vsadmin/inc/incproddetail.php" ?>
<?php include "editprod.php" ?>
<?php include "vsadmin/inc/inccrosssell.php" ?>




<!-- #EndEditable -->
</div>
</div>

<div class="lefthand">
<div class="leftside">
<div class="menutop">Contact Us</div>
<p class="addressmain">Alkydigger's<br />
307 White Bridge Pike<br />
Nashville, TN 37209</p>
<p><strong>Orders & Inquires<br />
<strong>615-457-3192<br />
<p><strong>Tech Question | Tues-Fri<br />
<strong>615-457-3192<br />
<strong>*Tech calls on Monday may not be returned until Tuesday<br />
<p>615-873-1876 FAX</p></strong>
<p><strong>9AM - 5PM CST</strong></p>
<p><strong><a href="mailto:Mike@alkydigger.com">Email Us</a></strong><a href="mailto:Mike@alkydigger.com"></a></p>
<hr />
<p><strong><a href="http://www.alkydigger.net/CustomerGallery/" style="color: #ED1C24">Customer Gallery</a><br />
</strong><a href="http://www.alkydigger.net/CustomerGallery/"><img src="2015Customer Gallery/MainImage2016SMALL.jpg" width="119" height="109" alt="Customer Gallery" longdesc="http://www.alkydigger.net/CustomerGallery/" /></a><br />

</p>
<div class="menutop">Shopping cart</div>
<div align="center"><?php include "vsadmin/inc/incminicart.php" ?></div>

<div class="menutop">Your account</div>
<div align="center"><?php include "vsadmin/inc/incminilogin.php" ?></div>

<div class="menutop"><strong>Our services</strong></div>
<ul>
<li><a href="search.php">Store search</a></li>
<li><a href="http://www.alkydigger.net/CustomerGallery/">Customer Cars & Projects</a></li>
<li><a href="testimonials.php">Testimonials</a></li>
<li><a href="giftcertificate.php">Gift Certificates</a></li>
<li><a href="contact.php">Map</a></li>
<li>
<hr />
<img src="2014Images/paypal.png" alt="credit cards" width="119" height="48" /></li>
<li>
</li>
</ul>

</p>
</div>
</div>
</div>

<div class="footer1">
<div id="footer">

<div class="bottomlinks1"> <span>
<script type="text/javascript" src="Templates/js/scroller.js"></script>



<!--
sts_bs("jwscroller2dbd",[20080623,"images/","","blank.gif",0,1,1,5,"150px","left",1,3,100,60,0,325,0,1,60,2000,3,24,1,"stEffect(\"scroll(Rate=24,enabled=0,Duration=0.50)\")",-2,60],["none",1,"#454545","#FFFFFF","","repeat"]);
sts_til([0,"Our Vendors","left"],["bold 9pt Verdana,Arial","#000000","none","transparent","bgtitle.gif","repeat"]);
sts_sbd([1],["solid",1,"#454545",5,"round_tl.gif","round_tr.gif","round_br.gif","round_bl.gif","transparent","round_t.gif","repeat","transparent","round_r.gif","repeat","transparent","round_b.gif","repeat","transparent","round_l.gif","repeat"]);
sts_tbd([1],["solid",1,"#454545",5,"round_tl.gif","round_tr.gif","round_br.gif","round_bl.gif","transparent","round_t.gif","repeat","transparent","round_r.gif","repeat","transparent","round_b.gif","repeat","transparent","round_l.gif","repeat"]);
sts_ai("i0",[0,"","","_self","BDSlogosm.jpg",100,27,"center"],["transparent","9pt Verdana,Arial","#000000","none","9pt Verdana,Arial","#000000","none"]);
sts_ai("i1",[,,,,"TBS_blower_logo%20sm.jpg",,37],[],"i0","i0");
sts_ai("i2",[,,,,"vertexlogo1_2.gif",,39],[],"i0","i0");
sts_ai("i3",[,,,,"MPRsmall.jpg",,40],[],"i0","i0");
sts_ai("i4",[,,,,"hilbornlogo.gif",,51],[],"i0","i0");
sts_ai("i5",[,,,,"enderlelogo.jpg",,52],[],"i0","i0");
sts_ai("i6",[,,,,"crrowerlogo.jpg",,53],[],"i0","i0");
sts_es();
//-->
</script>
</span></div>

<div class="bottomlinks2">
<p align="right"><strong>Help</strong></p>
<p align="right">
<a href="orderstatus.php">Order Status</a><br />
<a href="tracking.php">Track Your Order</a><br />
<a href="http://www.alkydigger.net/serviceform.html">Request For Service</a><br />
<a href="termsandconditions.php">Terms & Conditions</a><br />
<p align="right">PayPal Accepted on ALL Transactions<br />
</p>
<p align="right"> We Always Combine Shipping
</p>
<hr />
<span id="siteseal"><script type="text/javascript" src="https://seal.godaddy.com/getSeal?sealID=Q0sVpqAb5YT3NEpUktZU5t7pVwtyIbk8a4Lk8jA2PSD29yVS250qf"></script></span>
<p></p>
<script type="text/javascript" data-pp-pubid="77bbafbf0e" data-pp-placementtype="300x50"> (function (d, t) {
"use strict";
var s = d.getElementsByTagName(t)[0], n = d.createElement(t);
n.src = "//paypal.adtag.where.com/merchant.js";
s.parentNode.insertBefore(n, s);
}(document, "script"));
</script>
<p>
</div>

<div class="bottomlinks3">
<p align="right"><strong>Recent Articles</strong></p>
<p align="right"><a href="http://www.alkydigger.net/TechInfo/">EFI Plumbing Schematic</a><br />
<a href="http://www.alkydigger.net/TechInfo/">Hilborn Barrel Valve Spool Orientation</a><br />
<a href="http://www.alkydigger.net/TechInfo/">Erratic Idle issues with 8 Stack Hilborn</a>
</p>
<hr />
<p align="center">Proud supporter of -<br />
<a href="https://www.hopeclinicforwomen.org/"><img src="2017Images/HopeClinicForWomen.png" width="160" height="111" /></a><br />
</p>
</div>

<div class="bottomlinks4">
<p align="right"><strong>Contact</strong></p>
<p align="right">Alkydigger's<br />
307 White Bridge Road<br />
Nashville, TN 37209</p>
<p align="right">615-457-3192<br />
<a href="mailto:mike@alkydigger.com">Email Us</a></p>
<p align="right">9 AM - 5 PM<a href="#"></a>
</p>
</div>

<div class="footer1">
<div align="center"><br/>
<a href="http://www.alkydigger.net">Home</a> | <a href="about.php">About Us</a> | <a href="http://www.alkydigger.net/TechInfo/">Technical Info</a> | <a href="http://www.alkydigger.net/serviceform.html" target="_blank">Request For Service</a> | <a href="cart.php">View Cart</a> | <a href="search.php">Search</a> | <a href="contact.php">Contact </a></div>
<p class="copyright">© Copyright 2015 -Alkydigger | designed by <a href="http://www.justduckydesigns.com" target="_blank">Just Ducky Designs</a></p>
</div>

</div>
</div>
<!-- start number replacer -->
<script type="text/javascript"><!--
vs_account_id = "xxxxxxxxxxxx";
//--></script>
<script type="text/javascript" src="https://rw1.marchex.io/euinc/number-changer.js">
</script>
<!-- end ad widget -->
</body>
<!-- #EndTemplate --></html>

Sinbad
ECT Moderator

USA
65937 Posts

Posted - 11/08/2017 :  12:15:38  
Hi Kelly, to troubleshoot this you start with a blank page without all the extra scripts, which you have already done as found that it works the next step is to add back the lines one at a time and check the test page after each addition until you locate the line causing the problem. Andy and Phil referenced this line as the possible issue <script type="text/javascript" src="Templates/js/stscode.js"></script>

But it could also be this line.

<script type="text/javascript" src="https://rw1.marchex.io/euinc/number-changer.js">
</script>.

I would make a copy of proddetail and name it proddetail2.php then start removing the lines one at a time and test after each removal.

Winners never quit, quitters never win
CSS and Responsive Designs
User Manual for Ecommerce Templates

JustDucky923
Ecommerce Template Guru

USA
1333 Posts

Posted - 11/08/2017 :  12:40:37  
That is what i just did. When I changed the line:
<script type="text/javascript" src="Templates/js/stscode.js"></script>
to
<script type="text/javascript" src="js/stscode.js"></script>

That did fix the problem - but now the scroller (showing at the bottom right of all other pages) is now gone.

The change I made was in the template file and I only uploaded the proddetail.php file - but all other pages where changed when I updated the template file, so the next time I make a change and upload the new pages (with the above change) - the scroller is going to disappear from all the pages.

Any ideas on how to get it back. The scoller has not been touched or updated for well over a year, so I don't really understand how that one line made this other issue start all of sudden.

Sinbad
ECT Moderator

USA
65937 Posts

Posted - 11/08/2017 :  13:30:02  
Hi Kelly, make sure you have a folder named js at the root level and the file stscode.js inside the folder.
In the template file change the line so that there is a slash infront of the folder name like:
<script type="text/javascript" src="/js/stscode.js"></script>

Winners never quit, quitters never win
CSS and Responsive Designs
User Manual for Ecommerce Templates

JustDucky923
Ecommerce Template Guru

USA
1333 Posts

Posted - 11/08/2017 :  13:44:39  
That didn't change anything. There was already a folder named js and that file is inside it.

The program I used to create the scrolling images (that is now gone), is fairly old software (Sothink is the name of the company). I don't think they are even supporting in anymore. I think I'm going to go a different route with that section of the footer.

I'm just glad the prices are updating correctly now!
  « 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