Welcome to the Freeway Forums

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to Register before you can post: click the Register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.


   Freeway Forum Index -> Joomla! Extensions Goto page Previous  1, 2, 3  Next 
View previous topic :: View next topic  
 
Products list display always goes to Shopping cart.
 
ssobada

Posted: 18.04.2008
Group:
Score: 0
User's points: 0
im also facing the same prob....

notice also that the viewtype icons (top-right) also lead to the shopping cart...

has anyone added this to bugzilla??
 
Rob J.

Posted: 18.04.2008
Group:
Score: 0
User's points: 0
Better to check the associate arrays in html_output.php

That is where the problem usually is. Not a problem of process but of display or view in the function call. I'll look at it tonight when I've had a couple beers to unwind with.
 
ssobada

Posted: 18.04.2008
Group:
Score: 0
User's points: 0
well ive found a temp fix... that will allow the use of products... atleast until people better-versed in php can solve it more fundamentaly:

in [joomlafolder]/freeway/includes/functions/html_output.php

search for the first occurence of:

Code:
($page==FILENAME_SHOPPING_CART && $parameters=='')) $parameters.="&option=com_freeway&openfile=".


the part straight after that should read

Code:
FILENAME_SHOPPING_CART;


change that to

Code:
FILENAME_PRODUCT_INFO;



and before anyone says anything... yes i am aware that it doesnt solve the problem of the views links (top-right corner), that is why i said a more fundamenal solution is needed...
 
ssobada

Posted: 18.04.2008
Group:
Score: 0
User's points: 0
lol... it doesnt fix afterall

it just allows you to go one step further.... but prevents you from adding to cart...

oh well
 
Rob J.

Posted: 18.04.2008
Group:
Score: 0
User's points: 0
I see a lot of legacy issues with having the products in the index.php linking instead of a seperate module.

I ran into this when I started writing the Rental page I'm doing.

At least it is tracked down now and can be addressed.
 
shamshir

Posted: 18.04.2008
Group:
Score: 0
User's points: 0
i ran across that and it did work till you try to add your item to shopping cart. there is a problem with the logic there and i wish the writer's would address it or give us a hint where to look for it. maybe the authors just want us to subscribe and there is no such thing as free lunch.
 
Damian Hickey

Posted: 18.04.2008
Group:
Score: 0
User's points: 80
Hi there,

We are pretty heavily committed at present, but will get back to this in the next few days.

Not specifically trying to ignore you.

Damo
_________________
ZacWare, Level 1 iLab, 80 Jephson Street, Toowong 4066, Queensland, Australia

There is at least one elegant solution to every real problem.
 
ssobada

Posted: 18.04.2008
Group:
Score: 0
User's points: 0
i think ive got the fix now... im not sure though if its good enough... it was mostly trial and error... and the couple of lessons ive had in java... but hey its worked for me..... + it fixed the view icons problem (yay).

without furthur delay... here it is:

in [joomlafolder]/freeway/includes/functions/html_output.php

find the first occurence of:


Code:
else if(!isset($HTTP_GET_VARS['products_id']) && substr($parameters,0,12)=='products_id=') $parameters.="&option=com_freeway&openfile=".FILENAME_PRODUCT_INFO;


AFTER that, press return (create new line) and paste the following code snippet

Code:
         else if($page!=FILENAME_PRODUCT_INFO && $page!=FILENAME_SHOPPING_CART) $parameters.="";
         else if(($parameters!="" && strpos($parameters,'event')===false && strpos($parameters,'shopping_cart')===false && strpos($parameters,'product_info')===false) ) $parameters.="&option=com_freeway&openfile=".FILENAME_PRODUCT_INFO;


ive tested this on my site... and it solves the problem

[edit] notice ive added a check for 'event' in the params... this is because i descovered that it conflicted with events.... thats now fixed... but i havent got sevices or subscriptions set up.. can anyone confirm if it causes a conflict with them???
 
Rob J.

Posted: 19.04.2008
Group:
Score: 0
User's points: 0
I pushed your code in to a fresh install and it did all but "add to cart"

Look directly at that button and it's code to solve.

Go all the way to adding a product to the cart.

Yep you did get rid of the typo causing the views not to change.
 
ssobada

Posted: 19.04.2008
Group:
Score: 0
User's points: 0
wierd... mine is definately adding products to the cart...

maybe its to do with the way ive got my products set up.... can you please give me the url that the 'add to cart' button takes you to?
 
Jarppa

Posted: 19.04.2008
Group:
Score: 0
User's points: 0
I added the fix to my file and it's seems to be working for me. I just finished my test check out successfully
 
Jarppa

Posted: 19.04.2008
Group:
Score: 0
User's points: 0
The only thing is that if want to update your Freeway from the reposition, this fix wont work anymore.. just have wait and hope these are fixed and updated properly.

I also noticed odd thing. Extension I have downloaded from the Joomla.org are little different than the files from Freeways own extension download area.
You wont get Freeway running with files downloaded form Joomla.org. Down load them here
 
lambertb

Posted: 24.04.2008
Group:
Score: 0
User's points: 0
Hi

Thanks for the fix to products below. Yes, it works for me.

However, it has affected the subscriptions and the events modules!

They are not working properly now (adding to cart).

I hope the freeway team responds with their fix soon, because I want to make my site live.

Has anyone looked at virtuemart?

Brian
 
lambertb

Posted: 24.04.2008
Group:
Score: 0
User's points: 0
Hi

PS -- I have put a bugzilla in, but I haven't heard anything back from the freeway team!

I really appreciate everyone giving this a shot!

Brian
 
ssobada

Posted: 24.04.2008
Group:
Score: 0
User's points: 0
hi brian

are you sure youve got a problem in adding events after the fix??

if so, please give me the url that that gives the problem AND/OR the way you got to that exactly, ie. a way for me to recreate it.

regarding subscriptions, il have a look into that.

btw, i have not recently checked SVN, maybe the devs have already come up with a fix
_________________
Obada Sawalha
London - UK
Display posts from previous:   
   Freeway Forum Index -> Joomla! Extensions All times are GMT + 10 Hours
Goto page Previous  1, 2, 3  Next
Page 2 of 3

What is going on
Our users have posted a total of 3671 articles
We have 778 registered users
The newest registered user is mikeshelley
In total there is 1 user online :: 0 Registered, 0 Hidden and 1 Guest   [ Administrator ]   [ Moderator ]
Most users ever online was 45 on 13.07.2007
Users browsing this forum: None
This data is based on users active over the past five minutes

Legend
 New posts     No new posts    Announcement
New posts [ Locked ]   No new posts [ Locked ]   Sticky
New posts [ Popular ]   No new posts [ Popular ]      
New posts perfect answer    No new posts perfect answer
Member Icons
  • Wizard (2500 points)
  • Guru (1000 points)
  • Pro (500 points)
  • Graduate (250 points)
How to earn points

 
 Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Top Members