Not to view image-gallery on checkout

  • Posts: 57
  • Thank you received: 0
14 years 5 days ago #1850

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: 8 years 3 months ago by jonthee.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
14 years 5 days ago #1852

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

$view->setLayout($layout);
to
$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.

  • Posts: 57
  • Thank you received: 0
14 years 5 days ago #1854

Thanks! ;)

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

  • Posts: 57
  • Thank you received: 0
14 years 4 days ago #1903

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: 8 years 3 months ago by jonthee.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
14 years 4 days ago #1904

Near line 30 of the file you can just remove the 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.

  • Posts: 57
  • Thank you received: 0
14 years 4 days ago #1906

Thanks!

Where do I find this file? :(

Thanks again!

Last edit: 8 years 3 months ago by jonthee.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
14 years 4 days ago #1907

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.

  • Posts: 57
  • Thank you received: 0
14 years 4 days ago #1908

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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
14 years 4 days ago #1909

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: 14 years 4 days ago by nicolas.

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

  • Posts: 57
  • Thank you received: 0
14 years 4 days ago #1910

It didnt work, the image slideshow is still there when checkout :(

Last edit: 8 years 3 months ago by jonthee.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
14 years 4 days ago #1911

Then maybe instead of removing the code we should put another itemid in the url. So you could try to replace the code

if(!empty($Itemid)){ 
        $url_itemid='&Itemid='.$Itemid; 
    }
which you just removed by the code
$url_itemid='&Itemid=99';
?

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

  • Posts: 57
  • Thank you received: 0
14 years 4 days ago #1912

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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
14 years 4 days ago #1913

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.

  • Posts: 57
  • Thank you received: 0
14 years 4 days ago #1915

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: 8 years 3 months ago by jonthee.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
14 years 4 days ago #1916

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.083 seconds
Powered by Kunena Forum