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


 All Forums
 Technical
 WordPress for Ecommerce Templates
 Minicart slow to incorporate SEO URL structure
 New Topic  Reply to Topic
 Printer Friendly
Author  Topic   

DeeAnna
Advanced Member

USA
262 Posts

Posted - 04/12/2020 :  11:55:05  
Hello there --

I am using the ECT Minicart widget in the website https://hyldesgarden.com. I am also using the "SEO URL" option in the ECT store, which eliminates the extensions (.php, etc.) in the URLs.

When I first visit Hylde's Garden in a new browser window, the Minicart URL to view the cart or checkout is coded as https://hyldesgarden.com/cart.php. If I click on this link, I get a 404 error because the SEO-friendly URL should be just "cart" without an extension, not "cart.php".

If I click on any other ECT related link, such as "Shop" in the righthand sidebar or "Cart/Checkout" in the top nav bar, the Minicart corrects itself to show the SEO friendly URL of "cart" with no php extension. It remains correct as long as I am working in that browser window.

If I open a new browser window and go to hyldesgarden.com, the minicart initially shows "cart.php" in that new window.

Obviously I've figured a work-around solution, but it would be nice to not have the problem at all because I'm certain it is confusing to other visitors.

It seems like the incminicart.php code -- maybe something around Line 48 -- needs a bit of a tweak, but I'm not savvy enough to know what to do. Help?

Regards,
DeeAnna

Classic Bells, Postville, Iowa, USA, http://classicbells.com/

Phil
ECT Moderator

United Kingdom
7057 Posts

Posted - 04/13/2020 :  07:00:27  
Hi DeeAnna,
Can you try adding this line to your .htaccess file and let us know if that works for you?

RewriteRule ^cart/$ cart.php [NC,L]



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

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

DeeAnna
Advanced Member

USA
262 Posts

Posted - 04/13/2020 :  07:52:34  
I added the line as you requested. The lines in the .htaccess file that relate to the cart now are these --

RewriteRule ^cart/$ cart [R=301,QSA,nc,L,B]
RewriteRule ^cart$ wp-ect-header.php?mux=cart [QSA,nc,L,B]
RewriteRule ^cart/$ cart.php [NC,L]

Reloaded the home page in a new browser tab. No change -- the link is still pointing to cart.php

--D

Classic Bells, Postville, Iowa, USA, http://classicbells.com/

Vince
Administrator

39041 Posts

Posted - 04/13/2020 :  08:22:19  
Hi DeeAnna
I think this has been fixed in the latest updater. But if you've got hard coded references to cart.php in the minicart, why not just change them all from "cart.php" to just "cart" and that should sort this out.

Vince

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

DeeAnna
Advanced Member

USA
262 Posts

Posted - 04/13/2020 :  09:40:00  
I haven't made any mods to the minicart files -- they're as-received from you folks. I can't find any direct calls to cart.php. --DeeAnna

Classic Bells, Postville, Iowa, USA, http://classicbells.com/
   Topic   
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2019 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000