[Skip to main content](#vessel-content)

#   Delete an item from the cart module

##

- **[eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")**
- [![eMicroMart's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23652.png)](/forum/user/23652-emicromart "View eMicroMart's Profile") Topic Author
- [ Offline](/forum/user/23652-emicromart)

Less More

- Posts: 40
- Thank you received: 2
-
-
- [](http://www.eMicroMart.com)
-

12 years 10 months ago -  12 years 10 months ago [\#135620](#135620) by [eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")  *[Delete an item from the cart module](/forum/26-product-category-display/864170-delete-an-item-from-the-cart-module#135620 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.1.3 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4  JoomSEF + Hikashop  I have a problem with a cart module when I edit part of SEF URL to include Thai language.  If I don't include Thai in URLs or turn JoomSEF off, everything is perfect.  When I included Thai language in the URL, I found that something wrong with Base64 encode and decode.  &#92;components&#92;com&#95;hikashop&#92;views&#92;product&#92;tmpl&#92;cart.php  line: 329 .... urlencode(base64&#95;encode(urldecode($this-&gt;params-&gt;get('url'))))  When I tried to decode the result of line: 329, I got a very weird URL. Not the right URL.  No matter what I set the &quot;URL when the cart is empty&quot; or not, it happens when I include Thai in URLs.  Do you have any idea? Does Base64 support Thai characters ( UTF-8 ) ?  Thanks")* was created by *[eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")*

-- url of the page with the problem -- : [ mywebsite.com/mypage](http://mywebsite.com/mypage)
-- HikaShop version -- : 2.1.3
-- Joomla version -- : 3.1.5
-- PHP version -- : 5.4

JoomSEF + Hikashop

I have a problem with a cart module when I edit part of SEF URL to include Thai language.

If I don't include Thai in URLs or turn JoomSEF off, everything is perfect.

When I included Thai language in the URL, I found that something wrong with Base64 encode and decode.

\components\com_hikashop\views\product\tmpl\cart.php

line: 329 .... urlencode(base64_encode(urldecode($this-&gt;params-&gt;get('url'))))

When I tried to decode the result of line: 329, I got a very weird URL. Not the right URL.

No matter what I set the "URL when the cart is empty" or not, it happens when I include Thai in URLs.

Do you have any idea? Does Base64 support Thai characters ( UTF-8 ) ?

Thanks

Last edit: 12 years 10 months ago by [eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjQxNzAtZGVsZXRlLWFuLWl0ZW0tZnJvbS10aGUtY2FydC1tb2R1bGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")**
- [![eMicroMart's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23652.png)](/forum/user/23652-emicromart "View eMicroMart's Profile") Topic Author
- [ Offline](/forum/user/23652-emicromart)

Less More

- Posts: 40
- Thank you received: 2
-
-
- [](http://www.eMicroMart.com)
-

12 years 10 months ago [\#135621](#135621) by [eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")  Replied by *[eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")* on topic *[Delete an item from the cart module](/forum/26-product-category-display/864170-delete-an-item-from-the-cart-module#135621 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.1.3 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4  JoomSEF + Hikashop  I have a problem with a cart module when I edit part of SEF URL to include Thai language.  If I don't include Thai in URLs or turn JoomSEF off, everything is perfect.  When I included Thai language in the URL, I found that something wrong with Base64 encode and decode.  &#92;components&#92;com&#95;hikashop&#92;views&#92;product&#92;tmpl&#92;cart.php  line: 329 .... urlencode(base64&#95;encode(urldecode($this-&gt;params-&gt;get('url'))))  When I tried to decode the result of line: 329, I got a very weird URL. Not the right URL.  No matter what I set the &quot;URL when the cart is empty&quot; or not, it happens when I include Thai in URLs.  Do you have any idea? Does Base64 support Thai characters ( UTF-8 ) ?  Thanks")*

The second question, I don't understand why you have to decode first, encode and encode again.
Can I just put base64_encode($this-&gt;params-&gt;get('url')) ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjQxNzAtZGVsZXRlLWFuLWl0ZW0tZnJvbS10aGUtY2FydC1tb2R1bGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")**
- [![eMicroMart's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23652.png)](/forum/user/23652-emicromart "View eMicroMart's Profile") Topic Author
- [ Offline](/forum/user/23652-emicromart)

Less More

- Posts: 40
- Thank you received: 2
-
-
- [](http://www.eMicroMart.com)
-

12 years 10 months ago -  12 years 10 months ago [\#135632](#135632) by [eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")  Replied by *[eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")* on topic *[Delete an item from the cart module](/forum/26-product-category-display/864170-delete-an-item-from-the-cart-module#135632 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.1.3 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4  JoomSEF + Hikashop  I have a problem with a cart module when I edit part of SEF URL to include Thai language.  If I don't include Thai in URLs or turn JoomSEF off, everything is perfect.  When I included Thai language in the URL, I found that something wrong with Base64 encode and decode.  &#92;components&#92;com&#95;hikashop&#92;views&#92;product&#92;tmpl&#92;cart.php  line: 329 .... urlencode(base64&#95;encode(urldecode($this-&gt;params-&gt;get('url'))))  When I tried to decode the result of line: 329, I got a very weird URL. Not the right URL.  No matter what I set the &quot;URL when the cart is empty&quot; or not, it happens when I include Thai in URLs.  Do you have any idea? Does Base64 support Thai characters ( UTF-8 ) ?  Thanks")*

you can see more information in the pictures.
Code:

echo urlencode(base64_encode(urldecode('http://www.hikashop.com/กล้องดูนก-กล้องส่องพระเครื่อง')));

- [ ![h19da1be.jpg](/forum/attachment/14158) ](/forum/attachment/14158 "h19da1be.jpg") [ ](/forum/attachment/14158?download=1 "h19da1be.jpg")
- [ ![h0985bbc.jpg](/forum/attachment/14159) ](/forum/attachment/14159 "h0985bbc.jpg") [ ](/forum/attachment/14159?download=1 "h0985bbc.jpg")

Last edit: 12 years 10 months ago by [eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjQxNzAtZGVsZXRlLWFuLWl0ZW0tZnJvbS10aGUtY2FydC1tb2R1bGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")**
- [![eMicroMart's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23652.png)](/forum/user/23652-emicromart "View eMicroMart's Profile") Topic Author
- [ Offline](/forum/user/23652-emicromart)

Less More

- Posts: 40
- Thank you received: 2
-
-
- [](http://www.eMicroMart.com)
-

12 years 10 months ago [\#135633](#135633) by [eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")  Replied by *[eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")* on topic *[Delete an item from the cart module](/forum/26-product-category-display/864170-delete-an-item-from-the-cart-module#135633 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.1.3 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4  JoomSEF + Hikashop  I have a problem with a cart module when I edit part of SEF URL to include Thai language.  If I don't include Thai in URLs or turn JoomSEF off, everything is perfect.  When I included Thai language in the URL, I found that something wrong with Base64 encode and decode.  &#92;components&#92;com&#95;hikashop&#92;views&#92;product&#92;tmpl&#92;cart.php  line: 329 .... urlencode(base64&#95;encode(urldecode($this-&gt;params-&gt;get('url'))))  When I tried to decode the result of line: 329, I got a very weird URL. Not the right URL.  No matter what I set the &quot;URL when the cart is empty&quot; or not, it happens when I include Thai in URLs.  Do you have any idea? Does Base64 support Thai characters ( UTF-8 ) ?  Thanks")*

if I change the code to Code:

echo base64_encode('http://www.hikashop.com/กล้องดูนก-กล้องส่องพระเครื่อง');

the decoder shows the right result.

- [ ![h3a98a17.jpg](/forum/attachment/14160) ](/forum/attachment/14160 "h3a98a17.jpg") [ ](/forum/attachment/14160?download=1 "h3a98a17.jpg")
- [ ![h678931f.jpg](/forum/attachment/14161) ](/forum/attachment/14161 "h678931f.jpg") [ ](/forum/attachment/14161?download=1 "h678931f.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjQxNzAtZGVsZXRlLWFuLWl0ZW0tZnJvbS10aGUtY2FydC1tb2R1bGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")**
- [![eMicroMart's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23652.png)](/forum/user/23652-emicromart "View eMicroMart's Profile") Topic Author
- [ Offline](/forum/user/23652-emicromart)

Less More

- Posts: 40
- Thank you received: 2
-
-
- [](http://www.eMicroMart.com)
-

12 years 10 months ago [\#135635](#135635) by [eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")  Replied by *[eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")* on topic *[Delete an item from the cart module](/forum/26-product-category-display/864170-delete-an-item-from-the-cart-module#135635 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.1.3 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4  JoomSEF + Hikashop  I have a problem with a cart module when I edit part of SEF URL to include Thai language.  If I don't include Thai in URLs or turn JoomSEF off, everything is perfect.  When I included Thai language in the URL, I found that something wrong with Base64 encode and decode.  &#92;components&#92;com&#95;hikashop&#92;views&#92;product&#92;tmpl&#92;cart.php  line: 329 .... urlencode(base64&#95;encode(urldecode($this-&gt;params-&gt;get('url'))))  When I tried to decode the result of line: 329, I got a very weird URL. Not the right URL.  No matter what I set the &quot;URL when the cart is empty&quot; or not, it happens when I include Thai in URLs.  Do you have any idea? Does Base64 support Thai characters ( UTF-8 ) ?  Thanks")*

Do rawurlencode(str) and rawurldecode(str) can solve this problem?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjQxNzAtZGVsZXRlLWFuLWl0ZW0tZnJvbS10aGUtY2FydC1tb2R1bGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")**
- [![eMicroMart's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23652.png)](/forum/user/23652-emicromart "View eMicroMart's Profile") Topic Author
- [ Offline](/forum/user/23652-emicromart)

Less More

- Posts: 40
- Thank you received: 2
-
-
- [](http://www.eMicroMart.com)
-

12 years 10 months ago [\#135641](#135641) by [eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")  Replied by *[eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")* on topic *[Delete an item from the cart module](/forum/26-product-category-display/864170-delete-an-item-from-the-cart-module#135641 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.1.3 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4  JoomSEF + Hikashop  I have a problem with a cart module when I edit part of SEF URL to include Thai language.  If I don't include Thai in URLs or turn JoomSEF off, everything is perfect.  When I included Thai language in the URL, I found that something wrong with Base64 encode and decode.  &#92;components&#92;com&#95;hikashop&#92;views&#92;product&#92;tmpl&#92;cart.php  line: 329 .... urlencode(base64&#95;encode(urldecode($this-&gt;params-&gt;get('url'))))  When I tried to decode the result of line: 329, I got a very weird URL. Not the right URL.  No matter what I set the &quot;URL when the cart is empty&quot; or not, it happens when I include Thai in URLs.  Do you have any idea? Does Base64 support Thai characters ( UTF-8 ) ?  Thanks")*

Oops !! the comment #3 and #4, I overlooked the fact that I can't do base64_decode immediately but I need to do urldecode first.

base64_decode(urldecode(url))

Anyway, I think the problem comes from how hikashop decode the return_url when users delete an item from the cart module. Could you help me, please?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjQxNzAtZGVsZXRlLWFuLWl0ZW0tZnJvbS10aGUtY2FydC1tb2R1bGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")**
- [![eMicroMart's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23652.png)](/forum/user/23652-emicromart "View eMicroMart's Profile") Topic Author
- [ Offline](/forum/user/23652-emicromart)

Less More

- Posts: 40
- Thank you received: 2
-
-
- [](http://www.eMicroMart.com)
-

12 years 10 months ago -  12 years 10 months ago [\#135647](#135647) by [eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")  Replied by *[eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")* on topic *[Delete an item from the cart module](/forum/26-product-category-display/864170-delete-an-item-from-the-cart-module#135647 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.1.3 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4  JoomSEF + Hikashop  I have a problem with a cart module when I edit part of SEF URL to include Thai language.  If I don't include Thai in URLs or turn JoomSEF off, everything is perfect.  When I included Thai language in the URL, I found that something wrong with Base64 encode and decode.  &#92;components&#92;com&#95;hikashop&#92;views&#92;product&#92;tmpl&#92;cart.php  line: 329 .... urlencode(base64&#95;encode(urldecode($this-&gt;params-&gt;get('url'))))  When I tried to decode the result of line: 329, I got a very weird URL. Not the right URL.  No matter what I set the &quot;URL when the cart is empty&quot; or not, it happens when I include Thai in URLs.  Do you have any idea? Does Base64 support Thai characters ( UTF-8 ) ?  Thanks")*

I think I found something.

From the line 422 in C:\xampp\htdocs\thaioptics\components\com_hikashop\controllers\product.php

$url = JRequest::getVar('url','');

it returns the wrong URL. I found that getVar gets the url varialble from superglobal $_REQUEST.

The url in the $_REQUEST is already encoded but the encoded url is wrong when the url has some Thai characters.

Although, I know what happens but I still have no idea how to fix it. :sick:

Last edit: 12 years 10 months ago by [eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjQxNzAtZGVsZXRlLWFuLWl0ZW0tZnJvbS10aGUtY2FydC1tb2R1bGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

12 years 10 months ago [\#135828](#135828) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Delete an item from the cart module](/forum/26-product-category-display/864170-delete-an-item-from-the-cart-module#135828 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.1.3 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4  JoomSEF + Hikashop  I have a problem with a cart module when I edit part of SEF URL to include Thai language.  If I don't include Thai in URLs or turn JoomSEF off, everything is perfect.  When I included Thai language in the URL, I found that something wrong with Base64 encode and decode.  &#92;components&#92;com&#95;hikashop&#92;views&#92;product&#92;tmpl&#92;cart.php  line: 329 .... urlencode(base64&#95;encode(urldecode($this-&gt;params-&gt;get('url'))))  When I tried to decode the result of line: 329, I got a very weird URL. Not the right URL.  No matter what I set the &quot;URL when the cart is empty&quot; or not, it happens when I include Thai in URLs.  Do you have any idea? Does Base64 support Thai characters ( UTF-8 ) ?  Thanks")*

Hi,

I don't think that changing such code will help in any way.
Note that in all your messages, you didn't say once what was your problem... so it's hard to help you.
You just said that the URLs were wrong but you didn't give any links so we can't even see what's going on. What are the URLs that don't work when the SEF is turned off ? Why do you think that the problem is in hikashop and not in JoomSEF (it's joomsef which handles the SEFing of the URLs so I would consider that to be a problem with JoomSEF not HikaShop actually) ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjQxNzAtZGVsZXRlLWFuLWl0ZW0tZnJvbS10aGUtY2FydC1tb2R1bGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[photonfrans](/forum/user/30445-photonfrans "View photonfrans's Profile")**
- [![photonfrans's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30445-photonfrans "View photonfrans's Profile")
- [ Offline](/forum/user/30445-photonfrans)

Less More

- Posts: 5
- Thank you received: 0
-
-

12 years 9 months ago [\#137988](#137988) by [photonfrans](/forum/user/30445-photonfrans "View photonfrans's Profile")  Replied by *[photonfrans](/forum/user/30445-photonfrans "View photonfrans's Profile")* on topic *[Delete an item from the cart module](/forum/26-product-category-display/864170-delete-an-item-from-the-cart-module#137988 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.1.3 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4  JoomSEF + Hikashop  I have a problem with a cart module when I edit part of SEF URL to include Thai language.  If I don't include Thai in URLs or turn JoomSEF off, everything is perfect.  When I included Thai language in the URL, I found that something wrong with Base64 encode and decode.  &#92;components&#92;com&#95;hikashop&#92;views&#92;product&#92;tmpl&#92;cart.php  line: 329 .... urlencode(base64&#95;encode(urldecode($this-&gt;params-&gt;get('url'))))  When I tried to decode the result of line: 329, I got a very weird URL. Not the right URL.  No matter what I set the &quot;URL when the cart is empty&quot; or not, it happens when I include Thai in URLs.  Do you have any idea? Does Base64 support Thai characters ( UTF-8 ) ?  Thanks")*

I'm using Hikashop now for about a week (free version) to try it. And first of all I would like to make my compliments regarding this product. It looks very good so far! It is unbelievable it is for free! I will very likely upgrade to the business edition after setting up a first version of my webshop without problems, first to get the extra functionality and second to support Hikashop financially! Keep the good work going.

Regarding the discussed problem. I'm also encountering a problem with the delete X button in the Cart module when SEF is on in the global configuration of Joomla. What happens is that after deleting there is a redirect to [ photonland.nl/photonland.nl/hikashop-men...y/15-polykristallijn](http://photonland.nl/photonland.nl/hikashop-menu-for-categories-listing/category/15-polykristallijn)  while this should be [ photonland.nl/hikashop-menu-for-categori...y/15-polykristallijn](http://photonland.nl/hikashop-menu-for-categories-listing/category/15-polykristallijn). This results in a 404 error. When SEF is off the problem doesn't occur and there is only one time "photonland.nl". Any good advice how to proceed? Is this a Joomla problem?

Thanks for helping me out!

Regards

Frans

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjQxNzAtZGVsZXRlLWFuLWl0ZW0tZnJvbS10aGUtY2FydC1tb2R1bGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")**
- [![eMicroMart's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23652.png)](/forum/user/23652-emicromart "View eMicroMart's Profile") Topic Author
- [ Offline](/forum/user/23652-emicromart)

Less More

- Posts: 40
- Thank you received: 2
-
-
- [](http://www.eMicroMart.com)
-

12 years 9 months ago [\#137989](#137989) by [eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")  Replied by *[eMicroMart](/forum/user/23652-emicromart "View eMicroMart's Profile")* on topic *[Delete an item from the cart module](/forum/26-product-category-display/864170-delete-an-item-from-the-cart-module#137989 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.1.3 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4  JoomSEF + Hikashop  I have a problem with a cart module when I edit part of SEF URL to include Thai language.  If I don't include Thai in URLs or turn JoomSEF off, everything is perfect.  When I included Thai language in the URL, I found that something wrong with Base64 encode and decode.  &#92;components&#92;com&#95;hikashop&#92;views&#92;product&#92;tmpl&#92;cart.php  line: 329 .... urlencode(base64&#95;encode(urldecode($this-&gt;params-&gt;get('url'))))  When I tried to decode the result of line: 329, I got a very weird URL. Not the right URL.  No matter what I set the &quot;URL when the cart is empty&quot; or not, it happens when I include Thai in URLs.  Do you have any idea? Does Base64 support Thai characters ( UTF-8 ) ?  Thanks")*

Your problem is different. However, I can feel that your problem should be fixed easily by changing some configurations. I remembered that I found this kind of problems many years ago while I was running Joomla 1.5 + VirtueMart + SH404SEF.

Anyway, let's me guess ![B)](/media/kunena/emoticons/1.png "B)") please check your live_site url in Joomla configuration OR set "URL when the cart is empty" in Hikashop.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjQxNzAtZGVsZXRlLWFuLWl0ZW0tZnJvbS10aGUtY2FydC1tb2R1bGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[photonfrans](/forum/user/30445-photonfrans "View photonfrans's Profile")**
- [![photonfrans's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30445-photonfrans "View photonfrans's Profile")
- [ Offline](/forum/user/30445-photonfrans)

Less More

- Posts: 5
- Thank you received: 0
-
-

12 years 9 months ago [\#137991](#137991) by [photonfrans](/forum/user/30445-photonfrans "View photonfrans's Profile")  Replied by *[photonfrans](/forum/user/30445-photonfrans "View photonfrans's Profile")* on topic *[Delete an item from the cart module](/forum/26-product-category-display/864170-delete-an-item-from-the-cart-module#137991 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.1.3 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4  JoomSEF + Hikashop  I have a problem with a cart module when I edit part of SEF URL to include Thai language.  If I don't include Thai in URLs or turn JoomSEF off, everything is perfect.  When I included Thai language in the URL, I found that something wrong with Base64 encode and decode.  &#92;components&#92;com&#95;hikashop&#92;views&#92;product&#92;tmpl&#92;cart.php  line: 329 .... urlencode(base64&#95;encode(urldecode($this-&gt;params-&gt;get('url'))))  When I tried to decode the result of line: 329, I got a very weird URL. Not the right URL.  No matter what I set the &quot;URL when the cart is empty&quot; or not, it happens when I include Thai in URLs.  Do you have any idea? Does Base64 support Thai characters ( UTF-8 ) ?  Thanks")*

Thanks for the swift reply! ![:)](/media/kunena/emoticons/8.png ":)")

Half an hour ago I made "Live site" empty and indeed that did the trick (found the proposal on another topic as well). I don't want to go to a predefined website but stay on the same website. Regarding Joomla 1.5, I'm up to date on the latest version of 2.5.

However, all my Google hits are broken now :S ![:(](/media/kunena/emoticons/5.png ":(") .

Isn't it possible to fix this in the php code of product instead?

Thxs Frans

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjQxNzAtZGVsZXRlLWFuLWl0ZW0tZnJvbS10aGUtY2FydC1tb2R1bGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

12 years 9 months ago [\#138017](#138017) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Delete an item from the cart module](/forum/26-product-category-display/864170-delete-an-item-from-the-cart-module#138017 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.1.3 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4  JoomSEF + Hikashop  I have a problem with a cart module when I edit part of SEF URL to include Thai language.  If I don't include Thai in URLs or turn JoomSEF off, everything is perfect.  When I included Thai language in the URL, I found that something wrong with Base64 encode and decode.  &#92;components&#92;com&#95;hikashop&#92;views&#92;product&#92;tmpl&#92;cart.php  line: 329 .... urlencode(base64&#95;encode(urldecode($this-&gt;params-&gt;get('url'))))  When I tried to decode the result of line: 329, I got a very weird URL. Not the right URL.  No matter what I set the &quot;URL when the cart is empty&quot; or not, it happens when I include Thai in URLs.  Do you have any idea? Does Base64 support Thai characters ( UTF-8 ) ?  Thanks")*

That would indicate that you didn't had Code:

http://

at the beginning of a URL (in the live_site variable, or in the "URL when the cart is empty' option of the configuration).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjQxNzAtZGVsZXRlLWFuLWl0ZW0tZnJvbS10aGUtY2FydC1tb2R1bGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[photonfrans](/forum/user/30445-photonfrans "View photonfrans's Profile")**
- [![photonfrans's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30445-photonfrans "View photonfrans's Profile")
- [ Offline](/forum/user/30445-photonfrans)

Less More

- Posts: 5
- Thank you received: 0
-
-

12 years 9 months ago [\#138019](#138019) by [photonfrans](/forum/user/30445-photonfrans "View photonfrans's Profile")  Replied by *[photonfrans](/forum/user/30445-photonfrans "View photonfrans's Profile")* on topic *[Delete an item from the cart module](/forum/26-product-category-display/864170-delete-an-item-from-the-cart-module#138019 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.1.3 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4  JoomSEF + Hikashop  I have a problem with a cart module when I edit part of SEF URL to include Thai language.  If I don't include Thai in URLs or turn JoomSEF off, everything is perfect.  When I included Thai language in the URL, I found that something wrong with Base64 encode and decode.  &#92;components&#92;com&#95;hikashop&#92;views&#92;product&#92;tmpl&#92;cart.php  line: 329 .... urlencode(base64&#95;encode(urldecode($this-&gt;params-&gt;get('url'))))  When I tried to decode the result of line: 329, I got a very weird URL. Not the right URL.  No matter what I set the &quot;URL when the cart is empty&quot; or not, it happens when I include Thai in URLs.  Do you have any idea? Does Base64 support Thai characters ( UTF-8 ) ?  Thanks")*

First of all, thanks for investigating my problem.

LiveSite is set as follows: public $live_site = '[ photonland.nl](http://photonland.nl)';

However after making my Cart empty in the Cart Module it tries to open the following page: "[ photonland.nl/photonland.nl/hikashop-men...y/15-polykristallijn](http://photonland.nl/photonland.nl/hikashop-menu-for-categories-listing/category/15-polykristallijn)", which is causing a 404 article not found error because of the double/extra generated "photonland.nl"

When I set LiveSite to public $live_site = '' and after making the Cart Module empty, "[ photonland.nl/photonland.nl/hikashop-men...y/15-polykristallijn](http://photonland.nl/photonland.nl/hikashop-menu-for-categories-listing/category/15-polykristallijn)" is not causing an error anymore. But now every and any article on the site starts with "[ photonland.nl/photonland.nl/../](http://photonland.nl/photonland.nl/../).. , so for me this is a solution, but not a very clean and good one.

When I set SEF friendly URL option to "No" in the joomla configuration settings and after making the Cart Module empty the URL "returned" is "[ photonland.nl/index.php?option=com\_hikas...istallijn&amp;Itemid=266](http://photonland.nl/index.php?option=com_hikashop&ctrl=category&task=listing&cid=15&name=polykristallijn&Itemid=266)", which is exactly the same URL as before emptying the Cart Module.

I'm not an experienced PHP programmer (in my younger day's I used to program a lot though), but what I don't understand is that Joomla SEF only in combination with Hikashop returns an extra "photonland.nl/" in the beginning. :blink:

I must be missing something, clearly there is a lot left to learn for me in PHP and Joomla ... ![:)](/media/kunena/emoticons/8.png ":)")

Maybe a very stupid question but isn't it possible to cut/peel of the first "photonland.nl" off the string? I tried to find the location but there was "encoding" and "decoding" there and I have no experience with Apache and PHP at all. So for me it's only speculating what is going on there :huh: (did some adaption at another place though for layout purpose, needed product width set to 50% instead of 49% and found the right place to do so ![:)](/media/kunena/emoticons/8.png ":)") left the "-1".)

However, compliments for Hikashop so far. Looks very good! Everything is working fine (except for above) in combination with responsive Joomlart template (Virtuemart directly caused unwanted behaviour).

Regarding my problem, my website is [ www.photonland.nl](http://www.photonland.nl)

Thanks in advance for your answer!

Regards Frans

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjQxNzAtZGVsZXRlLWFuLWl0ZW0tZnJvbS10aGUtY2FydC1tb2R1bGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[photonfrans](/forum/user/30445-photonfrans "View photonfrans's Profile")**
- [![photonfrans's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30445-photonfrans "View photonfrans's Profile")
- [ Offline](/forum/user/30445-photonfrans)

Less More

- Posts: 5
- Thank you received: 0
-
-

12 years 9 months ago [\#138021](#138021) by [photonfrans](/forum/user/30445-photonfrans "View photonfrans's Profile")  Replied by *[photonfrans](/forum/user/30445-photonfrans "View photonfrans's Profile")* on topic *[Delete an item from the cart module](/forum/26-product-category-display/864170-delete-an-item-from-the-cart-module#138021 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.1.3 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4  JoomSEF + Hikashop  I have a problem with a cart module when I edit part of SEF URL to include Thai language.  If I don't include Thai in URLs or turn JoomSEF off, everything is perfect.  When I included Thai language in the URL, I found that something wrong with Base64 encode and decode.  &#92;components&#92;com&#95;hikashop&#92;views&#92;product&#92;tmpl&#92;cart.php  line: 329 .... urlencode(base64&#95;encode(urldecode($this-&gt;params-&gt;get('url'))))  When I tried to decode the result of line: 329, I got a very weird URL. Not the right URL.  No matter what I set the &quot;URL when the cart is empty&quot; or not, it happens when I include Thai in URLs.  Do you have any idea? Does Base64 support Thai characters ( UTF-8 ) ?  Thanks")*

In my former reaction I see that live_site is missing "http://" but it is there in the configuration.php ...

Trying to paste it one more time:
"public $live_site = '[ photonland.nl](http://photonland.nl)';"

Regards,

Frans

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjQxNzAtZGVsZXRlLWFuLWl0ZW0tZnJvbS10aGUtY2FydC1tb2R1bGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

12 years 9 months ago [\#138029](#138029) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Delete an item from the cart module](/forum/26-product-category-display/864170-delete-an-item-from-the-cart-module#138029 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.1.3 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4  JoomSEF + Hikashop  I have a problem with a cart module when I edit part of SEF URL to include Thai language.  If I don't include Thai in URLs or turn JoomSEF off, everything is perfect.  When I included Thai language in the URL, I found that something wrong with Base64 encode and decode.  &#92;components&#92;com&#95;hikashop&#92;views&#92;product&#92;tmpl&#92;cart.php  line: 329 .... urlencode(base64&#95;encode(urldecode($this-&gt;params-&gt;get('url'))))  When I tried to decode the result of line: 329, I got a very weird URL. Not the right URL.  No matter what I set the &quot;URL when the cart is empty&quot; or not, it happens when I include Thai in URLs.  Do you have any idea? Does Base64 support Thai characters ( UTF-8 ) ?  Thanks")*

How about the "URL when the cart is empty' option of the configuration ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjQxNzAtZGVsZXRlLWFuLWl0ZW0tZnJvbS10aGUtY2FydC1tb2R1bGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[photonfrans](/forum/user/30445-photonfrans "View photonfrans's Profile")**
- [![photonfrans's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30445-photonfrans "View photonfrans's Profile")
- [ Offline](/forum/user/30445-photonfrans)

Less More

- Posts: 5
- Thank you received: 0
-
-

12 years 9 months ago -  12 years 9 months ago [\#138056](#138056) by [photonfrans](/forum/user/30445-photonfrans "View photonfrans's Profile")  Replied by *[photonfrans](/forum/user/30445-photonfrans "View photonfrans's Profile")* on topic *[Delete an item from the cart module](/forum/26-product-category-display/864170-delete-an-item-from-the-cart-module#138056 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.1.3 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4  JoomSEF + Hikashop  I have a problem with a cart module when I edit part of SEF URL to include Thai language.  If I don't include Thai in URLs or turn JoomSEF off, everything is perfect.  When I included Thai language in the URL, I found that something wrong with Base64 encode and decode.  &#92;components&#92;com&#95;hikashop&#92;views&#92;product&#92;tmpl&#92;cart.php  line: 329 .... urlencode(base64&#95;encode(urldecode($this-&gt;params-&gt;get('url'))))  When I tried to decode the result of line: 329, I got a very weird URL. Not the right URL.  No matter what I set the &quot;URL when the cart is empty&quot; or not, it happens when I include Thai in URLs.  Do you have any idea? Does Base64 support Thai characters ( UTF-8 ) ?  Thanks")*

Goodmorning Nicolas,

Just tried that option. But it doesn't make a difference for the Hikashop Cart Module. I set the URL in the configuration screen for the cart to "[ photonland.nl/index.php?option=com\_hikas...t=listing&amp;Itemid=266](http://photonland.nl/index.php?option=com_hikashop&view=category&layout=listing&Itemid=266)".

But to make things clear, the problem is not related to Cart is empty. For instance, when I have two types of items X and Y displayed in the Hikashop Cart Module and I have ordered every item one time. So quantity of X=1 and Y=1 and with the delete button (x) I want to remove item X. After doing so the Cart is not empty. What happens is the following. When I click the remove button for item X in the Hikashop Cart Module you can see that the quantity is correctly set to "0". Then a split second later a referral to "[ photonland.nl/photonland.nl/hikashop-men...y/15-polykristallijn](http://photonland.nl/photonland.nl/hikashop-menu-for-categories-listing/category/15-polykristallijn)" takes place and this URL is wrong while it contains one "photonland.nl" too much. So the 404 screen pops up. URL should be "http:///photonland.nl/hikashop-menu-for-categories-listing/category/15-polykristallijn" in order to make things correctly working.

Regards Frans

Last edit: 12 years 9 months ago by [photonfrans](/forum/user/30445-photonfrans "View photonfrans's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjQxNzAtZGVsZXRlLWFuLWl0ZW0tZnJvbS10aGUtY2FydC1tb2R1bGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 9 months ago [\#138218](#138218) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Delete an item from the cart module](/forum/26-product-category-display/864170-delete-an-item-from-the-cart-module#138218 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.1.3 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4  JoomSEF + Hikashop  I have a problem with a cart module when I edit part of SEF URL to include Thai language.  If I don't include Thai in URLs or turn JoomSEF off, everything is perfect.  When I included Thai language in the URL, I found that something wrong with Base64 encode and decode.  &#92;components&#92;com&#95;hikashop&#92;views&#92;product&#92;tmpl&#92;cart.php  line: 329 .... urlencode(base64&#95;encode(urldecode($this-&gt;params-&gt;get('url'))))  When I tried to decode the result of line: 329, I got a very weird URL. Not the right URL.  No matter what I set the &quot;URL when the cart is empty&quot; or not, it happens when I include Thai in URLs.  Do you have any idea? Does Base64 support Thai characters ( UTF-8 ) ?  Thanks")*

Hi,

I just wanted to try your shopping cart, but the given links returns 404 error, and there is no more products in the webshop part.
Thanks to put back products in order to test and debug the problem.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjQxNzAtZGVsZXRlLWFuLWl0ZW0tZnJvbS10aGUtY2FydC1tb2R1bGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[hesolares](/forum/user/31070-hesolares "View hesolares's Profile")**
- [![hesolares's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31070-hesolares "View hesolares's Profile")
- [ Offline](/forum/user/31070-hesolares)

Less More

- Posts: 2
- Thank you received: 0
-
-

12 years 8 months ago -  12 years 8 months ago [\#142926](#142926) by [hesolares](/forum/user/31070-hesolares "View hesolares's Profile")  Replied by *[hesolares](/forum/user/31070-hesolares "View hesolares's Profile")* on topic *[Delete an item from the cart module](/forum/26-product-category-display/864170-delete-an-item-from-the-cart-module#142926 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.1.3 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4  JoomSEF + Hikashop  I have a problem with a cart module when I edit part of SEF URL to include Thai language.  If I don't include Thai in URLs or turn JoomSEF off, everything is perfect.  When I included Thai language in the URL, I found that something wrong with Base64 encode and decode.  &#92;components&#92;com&#95;hikashop&#92;views&#92;product&#92;tmpl&#92;cart.php  line: 329 .... urlencode(base64&#95;encode(urldecode($this-&gt;params-&gt;get('url'))))  When I tried to decode the result of line: 329, I got a very weird URL. Not the right URL.  No matter what I set the &quot;URL when the cart is empty&quot; or not, it happens when I include Thai in URLs.  Do you have any idea? Does Base64 support Thai characters ( UTF-8 ) ?  Thanks")*

I have the same problem as photonfrans. When I delete a product through the cart module, the products is deleted, but instead of being redirected to the correct and empty shopping cart module URL, I am redirected to a URL that has an added "HESCOM" at the end of the domain name. This of course causes a 404 error. HESCOM is the sub-directory in my hosting account where Joomla 2.5.18 is installed.

To clarify, the right redirection URL after a delete from the cart module would be:
http:www.domain_name/shopping-cart.html
instead I am redirected to a URL that includes my sub-directory:
http:www.domain_name/HESCOM/shopping-cart.html

When SEF is turned off in the Joomla Global Configuration it all works OK. So when I delete the product from the cart module I am redirected to the same page, the cart module page, and the product is gone.

I have tried everything suggested on this thread. I would appreciate any suggestions. Thanks!

Last edit: 12 years 8 months ago by [hesolares](/forum/user/31070-hesolares "View hesolares's Profile"). Reason: clarification

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjQxNzAtZGVsZXRlLWFuLWl0ZW0tZnJvbS10aGUtY2FydC1tb2R1bGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

12 years 8 months ago [\#143011](#143011) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Delete an item from the cart module](/forum/26-product-category-display/864170-delete-an-item-from-the-cart-module#143011 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.1.3 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4  JoomSEF + Hikashop  I have a problem with a cart module when I edit part of SEF URL to include Thai language.  If I don't include Thai in URLs or turn JoomSEF off, everything is perfect.  When I included Thai language in the URL, I found that something wrong with Base64 encode and decode.  &#92;components&#92;com&#95;hikashop&#92;views&#92;product&#92;tmpl&#92;cart.php  line: 329 .... urlencode(base64&#95;encode(urldecode($this-&gt;params-&gt;get('url'))))  When I tried to decode the result of line: 329, I got a very weird URL. Not the right URL.  No matter what I set the &quot;URL when the cart is empty&quot; or not, it happens when I include Thai in URLs.  Do you have any idea? Does Base64 support Thai characters ( UTF-8 ) ?  Thanks")*

It's likely that the "live site" parameter of your joomla configuration is not correct. Please check that setting.

The following user(s) said Thank You: [hesolares](/forum/user/31070-hesolares "View hesolares's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjQxNzAtZGVsZXRlLWFuLWl0ZW0tZnJvbS10aGUtY2FydC1tb2R1bGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[hesolares](/forum/user/31070-hesolares "View hesolares's Profile")**
- [![hesolares's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31070-hesolares "View hesolares's Profile")
- [ Offline](/forum/user/31070-hesolares)

Less More

- Posts: 2
- Thank you received: 0
-
-

12 years 8 months ago [\#143045](#143045) by [hesolares](/forum/user/31070-hesolares "View hesolares's Profile")  Replied by *[hesolares](/forum/user/31070-hesolares "View hesolares's Profile")* on topic *[Delete an item from the cart module](/forum/26-product-category-display/864170-delete-an-item-from-the-cart-module#143045 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.1.3 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.4  JoomSEF + Hikashop  I have a problem with a cart module when I edit part of SEF URL to include Thai language.  If I don't include Thai in URLs or turn JoomSEF off, everything is perfect.  When I included Thai language in the URL, I found that something wrong with Base64 encode and decode.  &#92;components&#92;com&#95;hikashop&#92;views&#92;product&#92;tmpl&#92;cart.php  line: 329 .... urlencode(base64&#95;encode(urldecode($this-&gt;params-&gt;get('url'))))  When I tried to decode the result of line: 329, I got a very weird URL. Not the right URL.  No matter what I set the &quot;URL when the cart is empty&quot; or not, it happens when I include Thai in URLs.  Do you have any idea? Does Base64 support Thai characters ( UTF-8 ) ?  Thanks")*

Thank you for your quick response. I tried every variation I could think of using "http://" and not using "http://" with the website base url. I tried placing a "/" at the end of the base URL and I tried not having a "/" at the end. I tried using a URL with and without the "www" and I tried using all these variations with and without the sub-directory. None of these worked, I still got a 404.

Finally, I decided to just use the Joomla's Redirection Manager and that solved the problem. I'm OK with this solution only because the cart module page is the only one with this problem. If you see a problem with this solution I would appreciate the input. Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjQxNzAtZGVsZXRlLWFuLWl0ZW0tZnJvbS10aGUtY2FydC1tb2R1bGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.225 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
