SOLVED: Logo, Main Menu and Top menu appear in the Shopping Cart

GK User
Tue Dec 07, 2010 7:38 pm
When I add an item to the shopping cart using K2Store, the lightbox window that appears has the logo, top menu and main menu displayed in it.

You can see it at http://petiteemergencies.com.au/product ... llet-flats

This doesn't happen at all on your demo of Black and White.

Please help.
User avatar
Expert Boarder

GK User
Sun Dec 12, 2010 10:01 pm
There have been some change to the website I'm building so you can see the issue I'm having at http://petiteemergencies.com.au/index.p ... &Itemid=65

(BTW: I've been having terrible issues with AceSEF Pro since I updates to 1.5.9 on multiple websites, so I've turned it off).

I contacted K2Store and this is not an issue with their component. They said the following:

This issue is to do with Squeezbox and the template. NOT K2 store issue.

Check the site's template. If there is not component.php file in the template, just add it. You can learn more about this at docs.joomla.org


Any ideas?
User avatar
Expert Boarder

GK User
Mon Dec 13, 2010 1:41 am
Hi

Honestly, i don't have any idea.
I must see the files.
Can you provide me FTP access?
User avatar
Platinum Boarder

GK User
Wed Dec 15, 2010 8:42 am
Emailing you details now...


Thanks for your help. I'll post the solution here soon as we work it out.
User avatar
Expert Boarder

GK User
Wed Dec 15, 2010 8:54 pm
@Paulo: Did you get my email? spanners[at]spanners-net-au
User avatar
Expert Boarder

GK User
Thu Dec 16, 2010 1:45 am
Hi

Yes i did.
Had tried to figure out what's work, but i'm pretty sure that nothing related with template files (your files, i mean)
I downloaded your template, place it on my installation and couldn't reproduce the problem, since it work fine with latest K2 Store.

So i think it comes from some plugin that you installed.
Best option now is to isolate possible causes to find where's the problem.
The weird thing it is using full frontend block files on popup. :blink:
User avatar
Platinum Boarder

GK User
Sat Dec 25, 2010 3:34 pm
The problem is with K2Store, the URL of form action is not passed through JRoute class:

Code: Select all
<form id="cart_form" class="cart_form" action="/index.php?option=com_k2store&view=mycart&format=ajax&order_code=10" method="post">


it should be like this:

Code: Select all
<form id="cart_form" class="cart_form" action="<?php echo JRoute::_('index.php?option=com_k2store&view=mycart&format=ajax&order_code=10'); ?>" method="post">


Also, add the following word into AceSEF=>Configuration=>URLs=>disable-SEF variables field:
format=ajax
User avatar
Fresh Boarder

GK User
Tue Dec 28, 2010 4:33 am
Thanks for your help JoomAce! I've added the format=ajax in the disable-sef variables.

However, I cannot find the missing JRoute class. I've looked right through the component>k2store>views folders, but no luck. :pinch:

I have a thread on the k2store.org website: http://k2store.org/support/forum/3-K2-S ... x.html#316

Hopefully they can help me out. I'll come back with a solution if I can find one.
User avatar
Expert Boarder

GK User
Tue Dec 28, 2010 9:49 am
That is the problem, there is no JRoute, it have to be.
Joomla uses JRoute class to send URLs to SEF components, otherwise the URL is not sent to AceSEF.
User avatar
Fresh Boarder

GK User
Wed Dec 29, 2010 2:12 am
Unfortunately I still can't find the file in the component/k2store/ folder that I need to correct with the JRoute amendment. Waiting for a response from K2 Store on this.
User avatar
Expert Boarder

GK User
Wed Dec 29, 2010 2:23 am
I got a reply from K2Store.org the line that calls the lightbox and has the missing JRoute is in plugins/k2/k2store.php

I've attached a TXT file of k2store.php to this post. Am I looking somewhere around line 105? It looks like the JRoute is there.

k2store.txt
User avatar
Expert Boarder

GK User
Mon Jun 27, 2011 8:50 pm
I revisited this issue just recently. I looked over the posts and I decided to try and move the site to another server. Currently it sits on a Zeus server with an Apache mod rewrite so Joomla works.

I moved a copy of the site to an Apache server, and the K2Store lightbox doesn't have the menu and logo inside it!

I've advised my clients to move to an Apache server (they bought their hosting before I was involved with the project).

I know this is a pretty specific issue, but I hope it helps someone out. B)
User avatar
Expert Boarder


cron