Jump to content

Pretty URLs Causing Issues With Lightbox Popup


Recommended Posts

Hi,

 

I hope this is the right place to post and that someone will rise to the challenge!

 

I am using Prestashop 1.5.4.1 with the Andalo Theme:

http://www.reflectiveoffice.co.uk

 

The theme has a Quick View function on products which won't work with the SEO Pretty URL Module activated.

 

I think the problem lies with the code in the cs_quickview javascript file.

 

I've contacted both developers and they say they cannot help.

 

Does anyone know what I need to edit to get Quick View to work with the Pretty URL Module.

 

Here is part of the code which I think might be causing the problem:

 

//get reload url

var myhref;

myhref = $(value);

if(myhref.attr('href').indexOf(".html")>0)

{

if (!myhref || myhref.length == 0) return;

var prodHref = readHref(myhref.attr('href'));

var arrProdHref=prodHref.split('_!_');

var n=arrProdHref.length;

prodHref=arrProdHref[n-1];

var arrProdHref=prodHref.split('-');

var product_id=arrProdHref[0];

reloadurl=reloadurl+"&id_product="+product_id;

}

else

{

 

if (!myhref || myhref.length == 0) return;

var prodHref = readHref(myhref.attr('href'));

prodHref[0] == "\/" ? prodHref = prodHref.substring(1,prodHref.length) : prodHref;

prodHref=strTrim(prodHref);

var prodHref = prodHref.replace("index.php","");

var prodHref = prodHref.replace("&controller=product","");

var prodHref = prodHref.replace("?id_product","&id_product");

prodHref=strTrim(prodHref);

reloadurl=reloadurl+prodHref;

 

}

//end reload url

 

 

Many thanks in advance.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...