Skip to main content

Not to view image-gallery on checkout

More
15 years 10 months ago - 10 years 2 months ago #1850 by jonthee
Hi!

I have a image-gallry module on the frontpage, and though I have it set on only view on frontpage it does show when I click checkout on the cart-module.

Is there a way to get around this? It is no error ofcourse not, but do you have a suggestion to do this in Joomla?

Thanks!
Last edit: 10 years 2 months ago by jonthee.

Please Log in or Create an account to join the conversation.

More
15 years 10 months ago #1852 by nicolas
Hi,

When you click on the checkout button, the Itemid of the url is transfered to the next page so that you can keep all your modules which are displayed on the current page.

You can either:
1/ not display the cart module on the front page.
2/ change the code of the cart file of the view product in Display->Views in order to not transfer the Itemid in the url of the checkout button. Note that if you do so , you will have to change the code
Code:
$view->setLayout($layout);
to
Code:
$folder = JPATH_BASE.DS.'templates'.DS.$app->getTemplate().DS.'html'.DS.HIKASHOP_COMPONENT.DS.$view->getName(); $view->addTemplatePath($folder); $view->setLayout($layout);
in the function getLayout of the file administrator/components/com_hikashop/helpers/helper.php near line 380
That is to fix another problem that we found yesterday where the modified version of the cart view would not be used by joomla.

Please Log in or Create an account to join the conversation.

More
15 years 10 months ago #1854 by jonthee

Please Log in or Create an account to join the conversation.

More
15 years 10 months ago - 10 years 2 months ago #1903 by jonthee
Hi again!

Me being such a "noob" it didnt work out, I havent made any changes cause I dont know what to change in the cart :)

Could you explain thoroughly :)

Thanks again.
Last edit: 10 years 2 months ago by jonthee.

Please Log in or Create an account to join the conversation.

More
15 years 10 months ago #1904 by nicolas
Near line 30 of the file you can just remove the code:
Code:
if(!empty($Itemid)){ $url_itemid='&Itemid='.$Itemid; }
which sets the itemid in the url.

Please Log in or Create an account to join the conversation.

More
15 years 10 months ago - 10 years 2 months ago #1906 by jonthee
Thanks!

Where do I find this file? :(

Thanks again!
Last edit: 10 years 2 months ago by jonthee.

Please Log in or Create an account to join the conversation.

More
15 years 10 months ago #1907 by nicolas
I already told you in my previous post: "change the code of the cart file of the view product in Display->Views"

Please Log in or Create an account to join the conversation.

More
15 years 10 months ago #1908 by jonthee
Yes I know but I cant seem to find it?

Is it in the administration of Joomla or the FTP?

Thanks!

Please Log in or Create an account to join the conversation.

More
15 years 10 months ago - 15 years 10 months ago #1909 by nicolas
In the administration of Joomla in HikaShop. Under the title of each view, you have the HikaShop menu. There, if you hover on Display, you will have a pane with Views being one of the submenu options.

On this page of the documentation you have a screenshot about that Display menu: www.hikashop.com/en/support/documentation/59.html#update
Last edit: 15 years 10 months ago by nicolas.

Please Log in or Create an account to join the conversation.

More
15 years 10 months ago - 10 years 2 months ago #1910 by jonthee
It didnt work, the image slideshow is still there when checkout :(
Last edit: 10 years 2 months ago by jonthee.

Please Log in or Create an account to join the conversation.

More
15 years 10 months ago #1911 by nicolas
Then maybe instead of removing the code we should put another itemid in the url. So you could try to replace the code
Code:
if(!empty($Itemid)){ $url_itemid='&Itemid='.$Itemid; }
which you just removed by the code
Code:
$url_itemid='&Itemid=99';
?

Please Log in or Create an account to join the conversation.

More
15 years 10 months ago #1912 by jonthee
Hi again!

Well it did work, sorry, forgot to clear my cache in the browser :)

Is this something you will put in the next version? I think alot will use a slideshow on the frontpage so this will be a nice feature :)

Thanks again!

Please Log in or Create an account to join the conversation.

More
15 years 10 months ago #1913 by nicolas
No. Actually, we had users asking the opposite. That's why we added the itemid to the urls.

That modification won't disappear when you update so you don't have to worry about that.

We're still unsure about what to do for the itemid here... We will see. If we get other users asking the same question we might reconsider it.

Please Log in or Create an account to join the conversation.

More
15 years 10 months ago - 10 years 2 months ago #1915 by jonthee
Hi again!

But will you implement the bug-fix for the helper-file in the next version? :)

I think this is great, never before knew how to get rid of the slideshow in other e-commerce-system's I have been using :) Thanks a lot!
Last edit: 10 years 2 months ago by jonthee.

Please Log in or Create an account to join the conversation.

More
15 years 10 months ago #1916 by nicolas
Yes of course, the helper file a already modified for next release :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.252 seconds
Powered by Kunena Forum