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
 Allowing quotation marks, slash, etc. in PName
Author « Topic »  

mhenry
Advanced Member

USA
103 Posts

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

Posted - 11/10/2017 :  11:58:10  
Hi,

Is it possible to turn a feature on in my includes file to allow characters such as quotation marks, slash, periods (example - 15.9") in the Product Name field? Or is this something on my database side that's not allowing these characters. For example, if I have any of these characters in the product name, the product will not display in the product detail view.
Please search for this item (Atlas 15.9 Inch Vase In Textured Marina) on my site (https://www.eleganthomeaccents.com) and click to see the product detail and you'll get a 404. In some instances I've removed slashes however I cannot do this for the inches because many items have the same name and are differentiated by the inches. If I remove the inches and have duplicate names, that's another issue.

Thanks,

Marcia Henry

Sinbad
ECT Moderator

USA
65937 Posts

Posted - 11/10/2017 :  12:17:17  
Hi Marcia, the site is using SEO urls so its not possible to use those characters in the name, you could abbreviate inches something like 18in

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

mhenry
Advanced Member

USA
103 Posts

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

Posted - 11/10/2017 :  12:32:47  
Thanks. That one is the least of my headache because I do a find and replace. The periods in the inches are the biggest issue. An even bigger issue is when the vendor updates the products and they revert back to the 'bad' text because I'm using the csv upload. I'll see if I can figure something out or I'll have to start all over with the fixing again.

Thanks again.

Marcia Henry

Sinbad
ECT Moderator

USA
65937 Posts

Posted - 11/10/2017 :  12:49:30  
Hi Marcia, you can use the followingin in the htaccess file for dashes and periods
If you are seeing some 404 errors on particular products or categories, check that the product or category name doesn't include non-permitted characters such as a dash or period.

If you have a product or category name with the decimal point / period / dot you can replace this line in the .htaccess file

RewriteRule ^([^/.]+)$ proddetail.php?prod=$1 [QSA,nc,L,B]

with

RewriteCond $1 !\.(png|gif|jpg|ico|css|js|php)$ [NC]
RewriteRule ^([^/]+)$ proddetail.php?prod=$1 [QSA,nc,L,B]


https://www.ecommercetemplates.com/seo/search-engine-friendly-urls-php.asp

Winners never quit, quitters never win
CSS and Responsive Designs
User Manual for Ecommerce Templates
  « 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