Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Profile for melgibson

  • OFFLINE
  • Time Zone: GMT +0:00
  • Local Time: 06:45
  • Posts: 8
  • Profile Views: 2553
  • Location: Unknown
  • Gender: Unknown
  • Birthdate: Unknown

Signature

Posts

Posts

emo
Hi Everybody,

I think there is a serious bug in the VirtueMart SEF Extension.

I have the following original url : "index.php?option=com_virtuemart&category_id=7&flypage=my_flypage.tpl&manufacturer_id=1&page=shop.product_details&product_id=1"
It should be replaced by a Sef url.

There is a function called "getSefUrlFromDatabase(&$uri)" in VirtueMart SEF Extension's file "com_virtuemart.php" which, as its name suggest, tries to get a sef url from the database instead of original one.

It uses the following syntax for checking:
$query = "SELECT `sefurl` FROM `#__sefurls` WHERE `origurl` REGEXP '" . addslashes($regexp) . "'" . $where;
In my case it will be translated to:
SELECT `sefurl`
FROM `jos_sefurls`
WHERE `origurl`
REGEXP 'index\\.php\\?option=com_virtuemart&category_id=[^&]*&flypage=my_flypage\\.tpl&manufacturer_id=1&page=shop\\.product_details&product_id=1'

The problem is that the above mentioned syntax will result many rows if you have products with id begining with 1 like 1,11,13,14, ..,111 etc.

    index.php?option=com_virtuemart&category_id=7&flypage=my_flypage.tpl&manufacturer_id=1&page=shop.product_details&product_id=11

    index.php?option=com_virtuemart&category_id=19&flypage=my_flypage.tpl&manufacturer_id=1&page=shop.product_details&product_id=13

    index.php?option=com_virtuemart&category_id=7&flypage=my_flypage.tpl&manufacturer_id=1&page=shop.product_details&product_id=14

    index.php?option=com_virtuemart&category_id=7&flypage=my_flypage.tpl&manufacturer_id=1&page=shop.product_details&product_id=1


In this way the replaced sef url will be incorrect.

I think you should put the "$" pattern at the end of regexp:
$regexp.="$";
$query = "SELECT `sefurl` FROM `#__sefurls` WHERE `origurl` REGEXP '" . addslashes($regexp) . "'" . $where;
So it will be translated to:
SELECT `sefurl`
FROM `jos_sefurls`
WHERE `origurl`
REGEXP 'index\\.php\\?option=com_virtuemart&category_id=[^&]*&flypage=my_flypage\\.tpl&manufacturer_id=1&page=shop\\.product_details&product_id=1$'

I'm I correct?

I'm using the following configuration:
Joomla 1.5.15
VirtueMart 1.1.4
JoomSEF 3.6.2
JoomSEF VirtueMart SEF Extension 2.0.20
Bug in JoomSEF Virtu ...
Category: JoomSEF 3
emo
Hi,

Is JoomSEF unable to make SEF url from url containing "checkout" tag?
My url is "index.php?page=checkout.index&option=com_virtuemart&Itemid=1&ssl_redirect=1&Itemid=1"

When I click the link with this url, I'm getting the following url:
"index.php?page=checkout.index&option=com_virtuemart&Itemid=1&redirected=1&Itemid=1"

Interestingly the "ssl_redirect" tag is replacing by "redirected" tag.

I'm trying to put manually a SEF url instead of this one using JoomSEF "Manage SEF URLs" backend but in vain.

Is there any solution for making SEF url?

Thank for your help in advance.

I'm using the following configuration:
Joomla 1.5.15
VirtueMart 1.1.4
JoomSEF 3.6.1
JoomSEF VirtueMart SEF Extension 2.0.19
Has JoomSEF problem ...
Category: JoomSEF 3
emo
Now all of my VM links are SEF except when I'm trying to checkout in VM I'm getting the following non SEF URL:
index.php?page=checkout.index&option=com_virtuemart&Itemid=1&redirected=1&Itemid=1
How can I replace it with a SEF url?

When I'm logging in VM I'm getting a blank page?
What can be the problem?

Thank for your help in advance.


I'm using the following configuration:
Joomla 1.5.15
VirtueMart 1.1.4
JoomSEF 3.6.1
JoomSEF VirtueMart SEF Extension 2.0.19
VirtueMart checkout ...
Category: JoomSEF 3
emo

Redirect non-sef to sef URL
setting was really useful. After I set it to yes everything works as it should have been.
Thanks for your help.

The only part of my VM which is still not using SEF url is the checkout part.

Any idea?
Problem with cookie ...
Category: Extensions
emo
I've found the same problem in other forum:
forum.virtuemart.net/index.php?topic=45427.msg144981#msg144981

It looks like VirtueMart's "vmRedirect" function and JoomSEF can't work together.

Please find me any solution!

I've already paid for JoomSef and don't want to buy more product (sh404SEF).
Problem with cookie ...
Category: Extensions
emo
It seems to me that the problem occurs when the VirtueMart modul makes some extra redirection:
- when the browser doesn't allow cookies
- when a catery has only one item so VirtueMart redirect directly to the product's flypage instead of category's browse page
Problem with cookie ...
Category: Extensions
emo
No support on my question?

Maybe I was not clear.
I'm trying to explain in other way.

Most of my VirtueMart link are SEF but if "vmcchk" tag appears in the url I'm getting url like this:
"/index.php? option=com_virtuemart&category_id=7&flypage=my_flypage.tpl&manufacturer_id=1&page=shop.product_detai ls&product_id=1&Itemid=1&vmcchk=1&Itemid=1"
I can't disable the cookie check in VirtueMart because I have to warn users about using cookies.

If I manually enter the link above in "Managing SEF URLs" and try to replace it to a simple one, then nothing happens.

By the way I have some VirtueMart product link which are not SEF, no matter there is "vmcchk" tag in them, or not:
"index.php?page=shop.product_details&flypage=my_flypage.tpl&product_id=11&category_id=17&option=com_virtuemart&Itemid=1"
I can't manually replace them either.

I've tried to debug joomsef.php and com_virtuemart.php but that was a nightmare :(

Any help would be appreciated!
Problem with cookie ...
Category: Extensions
emo
Hi,

I have problem with JoomSEF and VirtueMart when browser doesn't accept cookies so the "vmcchk" tag appears in the url.

The solution that suggests disable this in "VirtueMart Configuration/Core Setting/ Disable the Cookie Check" is not acceptable for me since I do want to warn my user about cookies.

Managing SEF URLs doesn't work as well. Replacing a Real URL:
"/index.php?option=com_virtuemart&category_id=7&flypage=my_flypage.tpl&manufacturer_id=1&page=shop.product_details&product_id=1&Itemid=1&vmcchk=1&Itemid=1" with a new one: "cookiwarning.html"
nothing happens.

What is the right solution? Please help!

Thanks in advance

I'm using the following configuration:
Joomla 1.5.15
VirtueMart 1.1.4
JoomSEF 3.6.1
JoomSEF VirtueMart SEF Extension 2.0.19
Problem with cookie ...
Category: Extensions
More
User Login Empty