- Posts: 171
- Thank you received: 4
popup problem
11 years 8 months ago #187451
by jesper
popup problem was created by jesper
-- url of the page with the problem -- :
jupitercykler.web10.redhost.dk/udstyr
-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.3.10
-- Browser(s) name and version -- : any
-- Error-message(debug-mod must be tuned on) -- : no error, item gets added to cart and redirect to frontpage
Hi,
when adding products to cart ("læg i kurv") from category page 2 times using shop on with popup enabled, i get redirected to front page on second add.
i only have this problems sometimes, not every time...
It does not matter i use custom template or protostar on the site.
-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.3.10
-- Browser(s) name and version -- : any
-- Error-message(debug-mod must be tuned on) -- : no error, item gets added to cart and redirect to frontpage
Hi,
when adding products to cart ("læg i kurv") from category page 2 times using shop on with popup enabled, i get redirected to front page on second add.
i only have this problems sometimes, not every time...
It does not matter i use custom template or protostar on the site.
Please Log in or Create an account to join the conversation.
11 years 8 months ago #187524
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic popup problem
Hi,
When the page is displayed with the parameter "popup=1" ; the value of the field "return_url" does not contains the current url but it contains the homepage url.
I think the problem is coming from the function "hikashop_currentURL" which has been modified for HikaShop 2.3.5 in order to add more security (and does not allow redirection to external websites).
What you can do for the moment is to edit the file "components/com_hikashop/views/product/view.html.php" and replace
By
Regards,
When the page is displayed with the parameter "popup=1" ; the value of the field "return_url" does not contains the current url but it contains the homepage url.
I think the problem is coming from the function "hikashop_currentURL" which has been modified for HikaShop 2.3.5 in order to add more security (and does not allow redirection to external websites).
What you can do for the moment is to edit the file "components/com_hikashop/views/product/view.html.php" and replace
Code:
$url = hikashop_currentURL('return_url');
Code:
$url = hikashop_currentURL();
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
11 years 8 months ago #187615
by jesper
Replied by jesper on topic popup problem
Changed that file, and i still get same problem.
On first visit i'm on
jupitercykler.web10.redhost.dk/udstyr/pr...-spectra-spd-vendbar
When i then add to cart, i go to url
jupitercykler.web10.redhost.dk/udstyr/pr...-spd-vendbar?popup=1
If i then click "shop on" and add to cart again, i get redirected to
jupitercykler.web10.redhost.dk/index.php?popup=1
so problem is still not solved.
On first visit i'm on
jupitercykler.web10.redhost.dk/udstyr/pr...-spectra-spd-vendbar
When i then add to cart, i go to url
jupitercykler.web10.redhost.dk/udstyr/pr...-spd-vendbar?popup=1
If i then click "shop on" and add to cart again, i get redirected to
jupitercykler.web10.redhost.dk/index.php?popup=1
so problem is still not solved.
Please Log in or Create an account to join the conversation.
11 years 8 months ago #187636
by Xavier
Replied by Xavier on topic popup problem
Hi,
What is this "shop on" ? Does that redirect to a page with a correct url ?
The page is protected by password, so we can no more see the issue, please give us the login details.
What is this "shop on" ? Does that redirect to a page with a correct url ?
The page is protected by password, so we can no more see the issue, please give us the login details.
Please Log in or Create an account to join the conversation.
Time to create page: 0.172 seconds