Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

How turn "URL clean" off

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 11-11-2014, 06:34 AM
 
juancho juancho is offline
 

Advanced Member
  
Join Date: Mar 2014
Posts: 47
 

Default How turn "URL clean" off

Hi

How can I turn "URL clean" off? I don't see how to do it in the config file

Thanks!
__________________
X-Cart Business 5.0.12
Reply With Quote
  #2  
Old 11-12-2014, 06:14 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: How turn "URL clean" off

Hi juancho!

Could you please let me know why do you need to disable SEO friendly URLs? We do not have a UI for this change and we think that we probably should add it.

In order to add it properly, we should understand the context why merchants want to disable properly working SEO urls.

Anyway, you can disable SEO friendly urls as described here:
http://kb.x-cart.com/display/XDD/Setting+up+seo-friendly+URLs#Settingupseo-friendlyURLs-DisablingSEO-friendlyURLs
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote

The following user thanks tony_sologubov for this useful post:
juancho (11-13-2014)
  #3  
Old 11-12-2014, 07:37 AM
 
juancho juancho is offline
 

Advanced Member
  
Join Date: Mar 2014
Posts: 47
 

Default Re: How turn "URL clean" off

Hi Tony

I am trying to disable/able some widgets depending on the page where I am in.

For instance, if I am in the page target=category_id1 do something. If I am in page target=subcategory_id2&product_id3 do something else ...

With the clean URL I can't know where I am at.

I don't know if there is some other way to do it, I am kind of new in xcart.

Thanks
__________________
X-Cart Business 5.0.12
Reply With Quote
  #4  
Old 11-12-2014, 08:42 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: How turn "URL clean" off

Quote:
Originally Posted by juancho
With the clean URL I can't know where I am at.

Actually, you can.

Please use this in your widgets to get the current "target": $this->getTarget();

If you need the "action" parameter, you can use $this->getAction();

To get the other parameters you can use this: \XLite\Core\Request::getInstance()->{$parameterName};

Does this help?
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote

The following 2 users thank qualiteam for this useful post:
juancho (11-13-2014), totaltec (11-13-2014)
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:57 PM.

   

 
X-Cart forums © 2001-2020