midweb
Starting Member
United Kingdom
14 Posts Pre-sales questions only (More Details...)
|
Posted - 11/12/2020 : 14:32:41
Am I doing something stupid? The buy button does not show on the products page and if you go to product detail "add to cart" does not do anything
https://www.subsidebar.co.uk/shop/products.asp
|
dbdave
ECT Moderator
USA
10507 Posts |
Posted - 11/12/2020 : 14:45:16
Hi, you have not linked your pages to the ectcart.js file as mentioned in this thread - https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=107040
Thanks, David
|
midweb
Starting Member
United Kingdom
14 Posts Pre-sales questions only (More Details...)
|
Posted - 11/13/2020 : 07:22:50
This file is already added to files, is this not how it shoud be?
<!--#include file="vsadmin/db_conn_open.asp"--> <!--#include file="vsadmin/inc/languagefile.asp"--> <!--#include file="vsadmin/includes.asp"--> <!--#include file="vsadmin/inc/incfunctions.asp"--> <!--#include file="vsadmin/inc/metainfo.asp"--> <!DOCTYPE html><html lang="en-GB"><!-- #BeginTemplate "/Templates/main.dwt" --><!-- DW6 --> <head> [red]<link href="css/ectcart.css" rel="stylesheet">[/red] <link href="css/style.css" rel="stylesheet"> [font=Impact]<link href="css/ectstyle.css" rel="stylesheet">[/font=Impact] <link href='https://fonts.googleapis.com/css?family=Lato' rel='stylesheet'> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> [font=Impact][red]<script type="text/javascript" src="/js/ectcart.js"></script>[/red][/font=Impact] <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script> <script type="text/javascript" src="js/ectsearch.js"></script> <script type="text/javascript" src="js/fixed.js"></script>
<!-- JS --> <script type="text/javascript"> $(document).ready(function(){ $(".navTab").click(function(){ $(".navLink").slideToggle("slow"); }); }); </script>

|
midweb
Starting Member
United Kingdom
14 Posts Pre-sales questions only (More Details...)
|
Posted - 11/13/2020 : 07:24:04
That was hard to read, sorry.
<link href="css/ectcart.css" rel="stylesheet"> <link href="css/style.css" rel="stylesheet"> <link href="css/ectstyle.css" rel="stylesheet"> <link href='https://fonts.googleapis.com/css?family=Lato' rel='stylesheet'> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <script type="text/javascript" src="/js/ectcart.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script> <script type="text/javascript" src="js/ectsearch.js"></script> <script type="text/javascript" src="js/fixed.js"></script>
|
dbdave
ECT Moderator
USA
10507 Posts |
Posted - 11/13/2020 : 08:12:39
Ok, now the link is there on the page, but the file is not at that referenced location - https://www.subsidebar.co.uk/js/ectcart.js returns a 404 error You need to upload the ectcart.js file to the js folder on the server.
David
|
midweb
Starting Member
United Kingdom
14 Posts Pre-sales questions only (More Details...)
|
Posted - 11/15/2020 : 07:39:29
The shop is https://www.subsidebar.co.uk/shop
and the file is at https://www.subsidebar.co.uk/shop/js/ectcart.js
|
midweb
Starting Member
United Kingdom
14 Posts Pre-sales questions only (More Details...)
|
Posted - 11/15/2020 : 07:40:55
My first post said the shop was at https://www.subsidebar.co.uk/shop and the error was at https://www.subsidebar.co.uk/shop/products.asp Is it because I am using a subdirectory?
|
dbdave
ECT Moderator
USA
10507 Posts |
Posted - 11/15/2020 : 07:43:21
Hi, you need to fix the path to the file in your pages. You have this - <script type="text/javascript" src="/js/ectcart.js"></script> Try it without the leading forward slash <script type="text/javascript" src="js/ectcart.js"></script>
Thanks, David
|
midweb
Starting Member
United Kingdom
14 Posts Pre-sales questions only (More Details...)
|
Posted - 11/15/2020 : 07:45:23
the problem in product details was the fact that I used <script type="text/javascript" src="/js/ectcart.js"></script> I should have used <script type="text/javascript" src="js/ectcart.js"></script> as I wasa telling to look at root/js with the leading /
But that doesnt explain why the products page doesnt even show the add to cart button.
|
dbdave
ECT Moderator
USA
10507 Posts |
Posted - 11/15/2020 : 08:38:58
Hi, for the add to cart, just check to see what you have set for the elements that show https://www.ecommercetemplates.com/help/css-layouts.asp#productorder This will be set in the includes, or in the products.php page. quote: $productpagelayout='productimage, addtocart, productid, sku, productname, manufacturer, discounts, reviewstars, instock, custom1, description, options, listprice, price, currency, quantity, dateadded, custom2';
Make sure that addtocart is in the list.
|
midweb
Starting Member
United Kingdom
14 Posts Pre-sales questions only (More Details...)
|
Posted - 11/15/2020 : 14:53:32
Briliant
|
|
|