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
 ASP (Windows server) versions
 mini cart in sub folder pages - links wrong
Author    Topic »  

isntworkdull
Ecommerce Template Expert

United Kingdom
911 Posts

Posted - 04/16/2026 :  13:31:13  
i was just wondering if theres anyway to set the links in minicart to go to /cart.asp regardless if in a subfolder?

mine works fine on main pages, but in subfolders the links take you to /subfolder/cart.asp - which doesnt exist

dbdave
ECT Moderator

USA
10683 Posts

Posted - 04/16/2026 :  13:36:45  
Hi, I don't think so, not without some hacking into the core files.
I learned a long time ago to avoid subfolders and keep everything in the main folder.
I suppose you could create a cart.asp in the subfolder that redirects to the cart.asp in the main folder, but that seems like a lot of extra work.

Thanks,
David

isntworkdull
Ecommerce Template Expert

United Kingdom
911 Posts

Posted - 04/16/2026 :  13:57:07  
cheers dave... i get round it by simply adding a rule in web.config to redirect cart.asp from the subfolder to the main.. but i just presumed there was probably a built in way - obviously i presumed wrong! Doh

dbdave
ECT Moderator

USA
10683 Posts

Posted - 04/16/2026 :  14:52:05  


Sounds like you have a good solution there.
Although I expect if you use the mini cart or other dynamic features on the page in the subfolder, it will not pull in that content.

Thanks,
David

Vince
Administrator

43347 Posts

Posted - 04/16/2026 :  23:50:42  
As it happens, assuming this is the incminicss.asp include file then an absolute URL is used based on storeurl. It could be that you are overriding the store url in the sub directory with "orstoreurl" so you could temporarily change that around the include line...

<%
orstoreurl="https://www.yoursite.com/"
storeurl="https://www.yoursite.com/"
%>
<!--#include file="vsadmin/inc/incminicss.asp"-->
<%
orstoreurl="https://www.yoursite.com/subdir/"
storeurl="https://www.yoursite.com/subdir/"
%>

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater
     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