- Posts: 154
- Thank you received: 4
weird product link from cart
- olivnewton
-
Topic Author
- Offline
Less
More
14 years 2 weeks ago #66080
by olivnewton
weird product link from cart was created by olivnewton
hi there, when i click on a product in category view the link that is being created is like this:
/online-shop/produkt/9-productname
but when this product has been added to the cart, and i am in the cart, clicking on the name of the product, the link is a different one and thus brakes my layout:
/warenkorb/produkt/cid-9
why does this happen and how can i prevent this from happening?
/online-shop/produkt/9-productname
but when this product has been added to the cart, and i am in the cart, clicking on the name of the product, the link is a different one and thus brakes my layout:
/warenkorb/produkt/cid-9
why does this happen and how can i prevent this from happening?
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
14 years 2 weeks ago #66171
by Mohamed Thelji
Replied by Mohamed Thelji on topic Re: weird product link from cart
Hi, can you give me a link to your website ?
Please Log in or Create an account to join the conversation.
- olivnewton
-
Topic Author
- Offline
Less
More
- Posts: 154
- Thank you received: 4
14 years 2 weeks ago #66180
by olivnewton
Replied by olivnewton on topic Re: weird product link from cart
hi mohamed, thanks for the answer. as the website is still under construction, i can certainly send you a link via PM if you are part of the hikari-team. is this ok?
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
14 years 2 weeks ago #66183
by Mohamed Thelji
Replied by Mohamed Thelji on topic Re: weird product link from cart
Sure
.
Please Log in or Create an account to join the conversation.
- olivnewton
-
Topic Author
- Offline
Less
More
- Posts: 154
- Thank you received: 4
14 years 2 weeks ago #66184
by olivnewton
Replied by olivnewton on topic Re: weird product link from cart
ok, i just send you the link. thanks again for looking into it
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
14 years 2 weeks ago #66211
by Mohamed Thelji
Replied by Mohamed Thelji on topic Re: weird product link from cart
Hi,
I found out where the problem was coming from and you'll just have to :
- Edit the "Cart" file of the "Checkout" view of the front-end template that you are currently using through "Hikashop->Display->View"
- replace the lines :
By this lines :
If you want me to do it for you, you can send me a temporary back-end access by PM
I found out where the problem was coming from and you'll just have to :
- Edit the "Cart" file of the "Checkout" view of the front-end template that you are currently using through "Hikashop->Display->View"
- replace the lines :
Code:
?>
<a href="<?php echo hikashop_completeLink('product&task=show&cid='.$row->product_id.$url_itemid);?>" >
Code:
$app =& JFactory::getApplication();
if(method_exists($app,'stringURLSafe')){
$product_alias = $app->stringURLSafe(strip_tags($row->product_name));
}else{
$product_alias = JFilterOutput::stringURLSafe(strip_tags($row->product_name));
}
?>
<a href="<?php echo hikashop_completeLink('product&task=show&cid='.$row->product_id.'&name='.$product_alias.$url_itemid);?>" >
The following user(s) said Thank You: olivnewton
Please Log in or Create an account to join the conversation.
- olivnewton
-
Topic Author
- Offline
Less
More
- Posts: 154
- Thank you received: 4
14 years 2 weeks ago #66222
by olivnewton
Replied by olivnewton on topic Re: weird product link from cart
thank you. i did that but it does work partially...
the last part of the link with the product id is fixed, but:
i just realised also that the link to checkout is different
all hikashop-urls start with
/online-shop/
but the cart/checkout urls start with
/warenkorb/
and when i click on the product from cart/checkout it adds still /warenkorb/ to the url instead of /online-shop/ :
so insted of having /online-shop/produkt/9-productname
i get now /warnekorb/produkt/9-productname
...which agains breaks the layout
the last part of the link with the product id is fixed, but:
i just realised also that the link to checkout is different
all hikashop-urls start with
/online-shop/
but the cart/checkout urls start with
/warenkorb/
and when i click on the product from cart/checkout it adds still /warenkorb/ to the url instead of /online-shop/ :
so insted of having /online-shop/produkt/9-productname
i get now /warnekorb/produkt/9-productname
...which agains breaks the layout
Please Log in or Create an account to join the conversation.
14 years 2 weeks ago #66353
by nicolas
Replied by nicolas on topic Re: weird product link from cart
Then change the code:
$url_itemid
in the code of Mohamed to:
'&Itemid=XXX'
where XXX is the id of the menu online-shop and it will display the link you want.
$url_itemid
in the code of Mohamed to:
'&Itemid=XXX'
where XXX is the id of the menu online-shop and it will display the link you want.
The following user(s) said Thank You: olivnewton
Please Log in or Create an account to join the conversation.
- olivnewton
-
Topic Author
- Offline
Less
More
- Posts: 154
- Thank you received: 4
14 years 2 weeks ago #66360
by olivnewton
Replied by olivnewton on topic Re: weird product link from cart
guys, you rule! never had a better support with a joomla extension in the last 8 years!
working now, thanks
working now, thanks
Please Log in or Create an account to join the conversation.
Time to create page: 0.263 seconds