JoomShopping_category-3.0.1 error, if shop set as start page

16.08.2011 12:46
#1
notfall
Joomshopping forum user no avatar
Name: Patient
04.03.2011
Posts: 59
Quote
JoomShopping_category-3.0.1 error, if shop set as start page

Das Modul Category zeigt falsche Links, sobald der Shop als Start-Page definiert wurde.

The Modul named Category produce wrong links, if the shop is set as default page in menu administration for start page in joomla.

Step one joomshopping 3.2.5 test:

- The shop is only viewed, if user click on shop link in the menu.
- Joomshopping only available over extra link with menu type called jshopping:

http://localhost/joomla/index.php/de/shop

correct link produced by category modul

http://localhost/joomla/index.php/de/shop/kuchen

Called function steps in php:

1) category.php called getSubCategories
2) SEFLink:index.php?option=com_jshopping&controller=category&task=view&category_id=1
3) jshoppingBuildRoute:kuchen

Step two joomshopping 3.2.5 test as start page:

- The shop is showed on default, if user call the homepage address in browser.
- Joomshopping as default start page (the star item is yellow, means "One menu item succesful set to start page") to link with menu type called jshopping:

http://localhost/joomla/index.php/de/

wrong link produced by category modul

http://localhost/joomla/index.php/de/?task=view&category_id=1

Called function steps:

1) category.php called getSubCategories
2) SEFLink:index.php?option=com_jshopping&controller=category&task=view&category_id=1

NO jshoppingBuildRoute is called. The link is cutted to "&task=view&category_id=1"

THE ERROR COULD BE THIS:

libraries\joomla\application\router.php(291): protected function _processBuildRules(&$uri)

joomshopping processbuildrules are wrong, if joomshopping starts directly as default homepage. this wrong process rules delete important information about the option=com_jshopping value. Therefore the router can not build correct links in caterogy module for joomshopping.


Joomla: 1.7
JoomShopping: 3.2.5
PHP: 5.2
MySQL: 5
Website Url: watches-germany.com

Letzte Änderung: 16.08.2011 18:11
 
17.08.2011 10:49
#2
Dr.Rivera
Joomshopping forum user no avatar
Name: Jürgen
13.09.2010
Posts: 2251
Quote
Aw: JoomShopping_category-3.0.1 error, if shop set as start page

Hallo,

auf meiner Testseite funktioniert das.
Ich weiß nicht, ob das mit deinem Problem zu tun hat, aber du kannst dir das ja mal anschauen:
http://www.joomlaportal.de/allgemeine-fragen-zu-joomla-1-5/259041-komponente-generiert-falsche-itemid.html

Grüße


Letzte Änderung: 17.08.2011 11:03

Nicht ganz aktuell, aber vielleicht doch noch für einige hilfreich, das E-Book Joomshopping.
Bei Amazon (kindl) und xinxii (ePub):

http://www.amazon.de/JoomShopping-Joomla-Shop-Online-Shop-ebook/dp/B005L9D8MC

http://www.xinxii.com/joomshopping-der-joomla-shop-p-339561.html
 
17.08.2011 14:27
#3
notfall
Joomshopping forum user no avatar
Name: Patient
04.03.2011
Posts: 59
Quote
Aw: JoomShopping_category-3.0.1 error, if shop set as start page

Nein, das verhalten wird von Joomshopping 3.2.5 selber produziert. In der Datei category.php ruft die Methode zum Zusammenstellen der kategorien die Methode SEFLink mit dem parameter 1 auf. Dadurch wird in SEFLink eine Itemid an den url angehangen. Diese Itemid entspricht der Menu Item Id von joomshopping. Das item object zu dieser Itemid hat ein home Attribute. Dieses home-Attribute wird auf 1 gesetzt, wenn joomshopping als Startseite (gelber Stern akiviert) gesetzt wird. Wenn das Home-attribute auf 1 (eins) steht, dann werden durch die klasse plgSystemLanguageFilter ueber die Methode buildRule(&$router, &$uri) die uri attribute "option" und "controller" entfernt. Die so zerstörte uri kann dann nicht mehr korrekt gemappt werden. Es entsteht ein kaputter, unlesbarer link anstatt des seo-freundlichen gut-lesbaren links.
Ist das home-attribute auf 0 (zero), wird die url nicht veraendert, option und controller bleiben drin und die seo freundliche url wird komplett erzeugt. das alles nachvollziehbar mit einer kompletten neuinstallation von jommla 1.7 und joomshopping 3.2.5.

noch andere tipps?

joomshopping wird vom root aus gestartet. joomshopping wurde nicht in ein unterverzeichnis installiert (wie die demo webseite von joomshopping).


Letzte Änderung: 17.08.2011 16:11
 
23.08.2011 10:00
#4
notfall
Joomshopping forum user no avatar
Name: Patient
04.03.2011
Posts: 59
Quote
Aw: JoomShopping_category-3.0.1 error, if shop set as start page

Wann kommt endlich die neue joomshopping 3.2.6 version, wo dieser start fehler von joomshopping behoben ist? Ich kann das nicht fixen, obwohl der fehler bis ins kleinste mir bekannt ist (ich habe es weiter oben auch veroeffentlicht), weil mit der naechsten version von joomshopping mein bugfix wieder zerstoert wird.

Work-Around:

1. joomshopping als menupunkt ohne "home, gelber stern" setzen
2. Dieser menupunkt stellt keinen startpunkt dar, ganz wichtig
3. in einem extra modul die startseite von joomshopping nachbauen.
4. dieses extra modul in einen neuen beitrag mit "modul loading" einbinden
5. Diesen beitrag dann als startseite setzen.

Damit wird das fehlerhafte joomshopping version 3.2.5 umgangen.


Joomla: 1.7
JoomShopping: 3.2.5
PHP: 5.2
MySQL: 5
Website Url: http://watches-germany.com
 
23.08.2011 21:28
#5
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16487
Quote
Aw: JoomShopping_category-3.0.1 error, if shop set as start page

Sorry. I do not understand you.

 
24.08.2011 01:39
#6
notfall
Joomshopping forum user no avatar
Name: Patient
04.03.2011
Posts: 59
Quote
Aw: JoomShopping_category-3.0.1 error, if shop set as start page

no problem. ones more in english:

if joomshopping set as startpage (menu with menu item pointed to shop (joomshopping component)), this menu item will be have an attribute called home with value 1. Attribute home with value one means: this menu item is set as start page in joomla. In backend this property marked with an yellow star or with an language flag, if menu is multi languaged. this menu item has now an special id, later used in joomshopping as default menu item id (*)

The modul JoomShopping_category-3.0.1 have i set on position 7 on left side on every site. this category modul render all joomshopping categories and using SEFLink for build the seo friendly link. the category modul use category.php and called in this table class the method getSubCategories. Herefore the method SEFLink is called with an additional param with value 1. This param caused an interesting effect: the builded url will be completed with an additional param called Itemid=xxx. xxx is the default item of joomshopping menu item id. (note my (*) above).

And now the unbelievable:

During buildig the category link will following case happen: all category links with url params option=com_jshopping&controller=category&task=view&category_id=1&Itemid=463 will be cutted, if the correspondet menu item has the attribute Home = 1. After this process the url params looks like &task=view&category_id=1.

Now the joomla router engine will render this joomshopping url... and nothing is happen, because important information about option and controller are cutted by joomshopping SEF component. the link is wrong and without seo friendly surface.

But if i set another article in joomla as startpage with the yellow star and the menu item for shop not as start page, so the menu item for shop has the attribute home = 0. And home = 0 will not cut the url params. The joomla router will parsed the correct option and controller and build the seo friendly url.

work arround number 1:
if you replace the SEFLink param to "2" in category modul, this error is not appeared, because the category link will be handled as manufacture link. See watches-germany... my category menu links to manufacture as work around.

work arround number 2:
Another work around is to build an modul for startpage view of joomshopping. this modul you can load into an article with modul loading plugin. Than you set this article as start page of joomla and let joomshopping as normal menu item or let customer clicks on article for linking to joomshopping.

i always install joomla in root directory and therefore my joomshopping component is also there. I do not like an joomla start article as "content component" as start page. i prefer "joomshopping component" as start page.

but this seflink issue is like an tripping hazard.


Joomla: 1.7
JoomShopping: 3.2.5
PHP: 5.2
MySQL: 5
Website Url: http://watches-germany.com/
 
24.08.2011 09:36
#7
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16487
Quote
Aw: JoomShopping_category-3.0.1 error, if shop set as start page

1. Site with 1 language.
works fine

2. Site multilingual.
works fine.

Try create menu item shop in hidden menu.

I can not get an error


Joomla: 1.7
JoomShopping: 3.2.5

Letzte Änderung: 24.08.2011 09:40
 
24.08.2011 10:10
#8
notfall
Joomshopping forum user no avatar
Name: Patient
04.03.2011
Posts: 59
Quote
Aw: JoomShopping_category-3.0.1 error, if shop set as start page

If i set in hidden menu the menu item (shop) the same error in category modul occours.
If i set in hidden menu the menu item to another article as start page and shop not as start page, the shop is not visible and if i linked from start article content to shop... all things works fine. But i do not like an start page from article (content component as start page). I like joomshopping componenent as start page.

the menu item with pointer to shop can not unpublished, because it is an start page menu item.
Aw: JoomShopping_category-3.0.1 error, if shop set as start page

1. i created an hidden menu (unpublished)
2. i created an menu entry in hidden menu for joomshopping
3. i have my main menu in english and german
4. the yellow star (default home, start page) is pointing to joomshopping in hidden menu
5. on all pages is show the category menu as modul
6. the category modul show wrong link, cutted by SEFLink Method in category.php from internal joomshopping core version 3.2.5
7. the category modul works with SEFLink param "1"
8. if category modul works with SEFLink param "2", this error not occurs, because SEFLink build an manufacture link instead an category link!
9. note: param "1" means build category link, param "2" means build manufacture link
10. this failure is happen in SEFLink method in joomshopping component


Joomla: 1.7
JoomShopping: 3.2.5
PHP: 5.2
MySQL: 5
Website Url: http://watches-germany.com

Letzte Änderung: 24.10.2016 15:16
 
24.08.2011 11:11
#9
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16487
Quote
Aw: JoomShopping_category-3.0.1 error, if shop set as start page

http://www.maxx-marketing.online.de/joomla-shop3

 
24.08.2011 11:36
#10
notfall
Joomshopping forum user no avatar
Name: Patient
04.03.2011
Posts: 59
Quote
Aw: JoomShopping_category-3.0.1 error, if shop set as start page

What did you others?

I install joomla 1.7 fresh, joomshopping 3.2.5 fresh, both in root. Now i take an article as start page with an link init to joomshopping as alternative, but this is not nice to have.

It does not matter, here on local xampp installation or on my provider server.
Aw: JoomShopping_category-3.0.1 error, if shop set as start page


Joomla: 1.7
JoomShopping: 3.2.5
PHP: 5.2
MySQL: 5
Website Url: http://watches-germany.com

Letzte Änderung: 24.08.2011 11:36
 
Copyrights MAXXmarketing GmbH. All Rights Reserved