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
Author « Topic »  

TastelessApple
Advanced Member

USA
499 Posts

Pre-sales questions only
(More Details...)

Posted - 12/08/2021 :  21:01:17  
Hello,

So I have set up "Search engine friendly URLs" for a store that has lots of products. If possible I'm needing to match most of the URLs to what they were previously so all the internal links still work. I've gone into admin and selected "Has Static URL" and entered the desirable URL in the field. After much testing, I have found this works just like I need it to for products that only have one word for the name. Most of the products have 2 or 3 words for the name and it doesn't work but turns of a 404 error. Any ideas on how I could get this to work other than making a page for every product? Or maybe I've missed something in the instructions that will be clear to you because of the problem.

Any advice here will be appreciated.

Thank you,
Josiah

Vince
Administrator

42874 Posts

Posted - 12/09/2021 :  04:18:03  
Hi Josiah
It sounds like it is the space between the words that is causing the problems, probably because of the space replacement character. But saying that, if you've followed the instructions for Search Engine Friendly URLs then I don't think you need to set each page as having a static URL. If you go to your products page and click on a detail page URL, do you get to the correct product detail page and is that the form of URL you wanted?

Vince

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

TastelessApple
Advanced Member

USA
499 Posts

Pre-sales questions only
(More Details...)

Posted - 12/10/2021 :  08:53:51  
Hi Vince,

I found something that seems to be working great. I have these set in includes.php $urlfillerchar='-'; $detlinkspacechar="-"; and I was trying to achieve a URL like "lemon-lime.php" I found that any hyphen in the URL caused the problem. I simply took out the hyphen(s) and replaced it with a space and everything seems to be working great. So my input looks like "lemon lime.php" and I get the right URL "lemon-lime.php"

Thanks,
Josiah

Vince
Administrator

42874 Posts

Posted - 12/10/2021 :  10:02:54  

TastelessApple
Advanced Member

USA
499 Posts

Pre-sales questions only
(More Details...)

Posted - 12/10/2021 :  17:21:19  
My above success was for all the detail pages. I now have another situation regarding the main product pages.
I have this set in includes $seoprodurlpattern="/products/%s";

For some of the product pages I need to add other text or info at the top of the page. I have done this in the past by coping the product page and using <?php $explicitid=24; include "vsadmin/inc/incproducts.php"?>. and that has worked great.

However, with the now added /products/ none of the paths line up and I haven't thought of a way to make it work.

Any ideas on how I could add some custom info to the top of some product pages? Keeping my (Search engine friendly URLs) is there a way I could remove the /products/ from all the product pages? If I could I feel confident it would work, but maybe there is another way. ?

Thanks

Vince
Administrator

42874 Posts

Posted - 12/11/2021 :  02:28:53  
Hi Josiah
You have three custom fields for each product and you can display these by adding them to the $detailpagelayout parameter. For instance...
$detailpagelayout='productimage,custom1,productid,productname,custom2,addtocartquant';

These are by default only 2048 characters so if you need more you can set up content regions. You display this by adding "contentregion" to the $detailpagelayout followed by the "ID" of the content region, for example to display content region id 47...
$detailpagelayout='contentregion47,productimage,productid,productname,addtocartquant';

Finally you can display a content region per category by creating content regions with the content region name "catcontentregion" followed by the category ID, eg "catcontentregion23" which would display for category id 23. Then add "catcontentregion" to the $detailpagelayout parameter...
$detailpagelayout='catcontentregion,productimage,productid,productname,addtocartquant';

Vince

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

TastelessApple
Advanced Member

USA
499 Posts

Pre-sales questions only
(More Details...)

Posted - 12/11/2021 :  19:46:15  
Thank you, that is helpful.
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000