| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Can you pass POST vars through CDSEO (mod_rewrite)? | |||
|
|
Thread Tools |
#1
|
|||||||
|
|||||||
Can you pass POST vars through CDSEO (mod_rewrite)?
Trying to pass POST vars through CDSEO links.
For example, www.yoursite.com/cdseo_cat/&somepostvar=1 And it doesn't work....
__________________
----------------------- x-cart v4.7.6 [LIVE] x-cart v4.0.18 [retired 2004-2016] x-cart v3.5.13 [retired] x-cart v3.4.14 [retired] |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Can you pass POST vars through CDSEO (mod_rewrite)?
Yes, CDSEO is dynamic and doesn't use mod rewrite, you can pass both GET and POST variables unless you have custom code which for whatever reason is blocking it from doing so. If you email details of what you are trying to do to our support department I'd be happy to help.
|
|||||||||
#3
|
|||||||||
|
|||||||||
Re: Can you pass POST vars through CDSEO (mod_rewrite)?
FYI, you will however need to pass it through a valid category or product url and use the question mark correctly, i.e.: http://www.domain.com/cdseo_cat/product-name.html?var=value
|
|||||||||
#4
|
|||||||
|
|||||||
Re: Can you pass POST vars through CDSEO (mod_rewrite)?
You are correct. I was forgetting the / after the category. Thanks!
I'm not sure why I thought mod_rewrite was in use.... sorry! So I'm trying to override and add to the 'hidden but available for sale' concept. I need to hide a certain product type unless the customer enters their email address. Then we have to send them an email with a link to the hidden but available products. So my link that I use is www.yourstore.com/somecdseocat/?hbafs=1 (where if hbafs is set, I change the search query in products.php and search.php to Code:
This works for the direct link but the additional category pages lose the POST data of ?hbafs=1. Now I'm sure this isn't an CDSEO thing.... My additional pages look like this www.yourstore.com/somecdseocat/index1.html www.yourstore.com/somecdseocat/index2.html www.yourstore.com/somecdseocat/index3.html instead of www.yourstore.com/somecdseocat/index1.html?hbafs=1 www.yourstore.com/somecdseocat/index2.html?hbafs=1 www.yourstore.com/somecdseocat/index3.html?hbafs=1
__________________
----------------------- x-cart v4.7.6 [LIVE] x-cart v4.0.18 [retired 2004-2016] x-cart v3.5.13 [retired] x-cart v3.4.14 [retired] |
|||||||
#5
|
|||||||
|
|||||||
Re: Can you pass POST vars through CDSEO (mod_rewrite)?
It looks like skin1/customer/main/navigation_seo.tpl is the guy that writes the navigation links. Not sure what I need to do to add the existing POST data to that in the .tpl
Here: Code:
__________________
----------------------- x-cart v4.7.6 [LIVE] x-cart v4.0.18 [retired 2004-2016] x-cart v3.5.13 [retired] x-cart v3.4.14 [retired] |
|||||||
#6
|
|||||||
|
|||||||
Re: Can you pass POST vars through CDSEO (mod_rewrite)?
Ok think I got it.
In products.php I added: Code:
Then in customer/main/navigation_seo.tpl I added: Code:
__________________
----------------------- x-cart v4.7.6 [LIVE] x-cart v4.0.18 [retired 2004-2016] x-cart v3.5.13 [retired] x-cart v3.4.14 [retired] |
|||||||
#7
|
|||||||||
|
|||||||||
Re: Can you pass POST vars through CDSEO (mod_rewrite)?
That should do the trick.
Some jargon you may want to be aware of: variables referenced through the url are called GET, variables passed hidden through a form submission are called POST, and REQUEST references both GET and POST variables. |
|||||||||
#8
|
|||||||
|
|||||||
Re: Can you pass POST vars through CDSEO (mod_rewrite)?
hehe thanks. I'm more of a C++ guy and usually try to stay away from all that web programming
maybe it's b/c i've been doing a lot of Power On Self Test driver development
__________________
----------------------- x-cart v4.7.6 [LIVE] x-cart v4.0.18 [retired 2004-2016] x-cart v3.5.13 [retired] x-cart v3.4.14 [retired] |
|||||||
|
|||
X-Cart forums © 2001-2020
|