Author Topic: Please test for routing and datefields on j3 and j4  (Read 2457 times)

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10451
  • VM4.0.7 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Please test for routing and datefields on j3 and j4
« on: September 06, 2022, 10:32:24 am »
This is a new version, which has a completly new method to merge the Request vars with the router vars. This is necessary for j4, but may also change j3 behaviour. Furthermore the generic setting of task and layout is removed, because it cannot be catched.
In addition, the date fields should now be saved correctly.

Please test https://dev.virtuemart.net/attachments/1327/com_virtuemart.4.0.7.10699.zip
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

hazael

  • Jr. Member
  • **
  • Posts: 254
    • Biżuteria etniczna orientalna arabska
  • VirtueMart Version: VM 4.0.8 / J3 /J4
Re: Please test for routing and datefields on j3 and j4
« Reply #1 on: September 07, 2022, 11:00:38 am »
When trying to install / update VM (J.4.2.2):
Undefined constant "VMPATH_LIBS"

This error appeared in PHP 8.0
After change to PHP 7 the installation worked.

bindcommerce

  • Beginner
  • *
  • Posts: 19
  • bindCommerce - eCommerce Integrations Services
    • bindcommerce.com
Re: Please test for routing and datefields on j3 and j4
« Reply #2 on: September 07, 2022, 14:18:23 pm »
I think that it solved my problems with the routing. Thank you Milbo!

Joomill

  • Beginner
  • *
  • Posts: 2
Re: Please test for routing and datefields on j3 and j4
« Reply #3 on: September 07, 2022, 19:05:08 pm »
I have 2 menu-items which displays 2 different categories.

- menu-item 1 works fine.
- The other has ?clearCart=0 in the URL and shows an Assign the component VirtueMart to a menu item error message.

There is a store menu-item for each language present.



Alexb65

  • Beginner
  • *
  • Posts: 9
  • A beginner
Re: Please test for routing and datefields on j3 and j4
« Reply #4 on: September 08, 2022, 08:21:16 am »
Hi
Routing seems to work in J 4.2.2 but pagination links are wrong
In category view each pagination button links to the first category page

Alexb65

  • Beginner
  • *
  • Posts: 9
  • A beginner
Re: Please test for routing and datefields on j3 and j4
« Reply #5 on: September 08, 2022, 09:30:54 am »

hazael

  • Jr. Member
  • **
  • Posts: 254
    • Biżuteria etniczna orientalna arabska
  • VirtueMart Version: VM 4.0.8 / J3 /J4
Re: Please test for routing and datefields on j3 and j4
« Reply #6 on: September 08, 2022, 09:52:33 am »
Almost everything works for me now. Both on the page where I use the basic SEF system from Joomla and on another page where I use the 4SEF plugin. :)

With Joomla SEF:

/sef,price/results,19-27
/sef,price/results,10-18?keyword=
/manufacturer/fenix/szeregi/sef,price/results,10-18?keyword=


with 4SEF plugin:

/sklep/bracelets/results73-96
/sklep/earrings/byproduct_sku/results25-48
/sklep/rings/byproduct_name


List of products in HOME page:

There is no reference to "limitstart=0" in the main menu.
Without it, the page will always point to a random pagination page - just like in the attached photo.
This issue occurs if the product listing category is set to the domain start page by default (hompage). Also for this reason, it is impossible to return to the top of the product list using pagination.


tonis

  • Beginner
  • *
  • Posts: 46
Re: Please test for routing and datefields on j3 and j4
« Reply #7 on: September 10, 2022, 13:53:38 pm »
Hello,
this fixed 2 problems for me

1. problem with breadcrumb path in category without menu item http://forum.virtuemart.net/index.php?topic=148795.msg530918#msg530918

2. and problem with order detail page. The problem was - if there was menu item for the main category, and menu item for orders list, after clicking on some order details, nothing was diplayed. Now ist ok.

Thanks!

The category page pagination problem seems to remain.

chupi

  • Beginner
  • *
  • Posts: 12
  • A beginner
Re: Please test for routing and datefields on j3 and j4
« Reply #8 on: September 11, 2022, 18:59:34 pm »
I just installed version 4.0.7 (compatible J3/J4 bugfix RC) on a test site and the errors that existed with the Joomla router have been corrected when Virtuemart SEO was enabled, no error is shown in the logs of Apache on a site with Joomla 4.2.2 and PHP 8.0.23 . Congratulations to the developer team !!!

But now I have a doubt to see if they can solve it for me. Previously with Joomla 3.10.x the Home in the main menu was defined as

Frontend page
Use with option Vm-Manager activated, or as old Front page (deprecated)
Front-end managing your store. But deprecated to display products, Use 'Category Layout' instead.


  with this URL: index.php?option=com_virtuemart&view=virtuemart

But with Joomla 4 this gives a 404 error. What should we do to display the Virtuemart home page as before?

Thank you

hazael

  • Jr. Member
  • **
  • Posts: 254
    • Biżuteria etniczna orientalna arabska
  • VirtueMart Version: VM 4.0.8 / J3 /J4
Re: Please test for routing and datefields on j3 and j4
« Reply #9 on: September 12, 2022, 10:56:06 am »
For me (J4.2.2), sorting products based on the choice of the manufacturer's name works terrible and random.
I've tried to solve this with other SEF components, but it often fails with 404 error. Router
 in sorting the manufacturer's name it generates an absurd link structure for me.

When I'm on a category page (category name "kolczyki"), its link (no sef) looks like this:
URL with no SEF: /index.php?option=com_virtuemart&view=category&virtuemart_category_id=16&virtuemart_manufacturer_id=0&Itemid=162
URL with joomla SEF: /category-name

One of the links in sorting the manufacturer's name looks like this:
URL with no SEF: /index.php?option=com_virtuemart&view=category&virtuemart_category_id=16&virtuemart_manufacturer_id=5&Itemid=162
URL with joomla SEF: /category-name/producent/manufacturer-name/category-name  (???)

See how it looks in the attachment in the photo.

According to SEO rules, the structure should look like this:
/category-name/producent/manufacturer-name
or
/category-name/manufacturer-name

---------------------------------------

PS. How to disable SEF links in this variable?
Code: [Select]
$orderByList['manufacturer']

hazael

  • Jr. Member
  • **
  • Posts: 254
    • Biżuteria etniczna orientalna arabska
  • VirtueMart Version: VM 4.0.8 / J3 /J4
Re: Please test for routing and datefields on j3 and j4
« Reply #10 on: September 12, 2022, 13:45:08 pm »
Big Problem with Joomla 3

After updating, I noticed that Virtuemart support was very slow for me.
I noticed a loop in the logs that is overloading my server.

 It is impossible to work with VM 4.0.7. I went back to the previous version.

Darko F.

  • Jr. Member
  • **
  • Posts: 104
  • Skype Name: DarkoF
  • VirtueMart Version: VirtueMart 4.0.4 10688
Re: Please test for routing and datefields on j3 and j4
« Reply #11 on: September 12, 2022, 14:50:30 pm »
Hi
J4 and VirtueMart 4.0.7 10699.

When I press Joomla menu link with alias Shop with top category i get

/shop?clearCart=0  <!-- maybe is that default behaviour I don't know -->

This update fix breadcrumbs for categories without Joomla menus.

Pagination still don't work no Mather what page number I click all have the same /(this-category)?clearCart=0 link

When I try to edit product from front page I get
my site/en/?option=com_virtuemart&tmpl=component&manage=1&view=product&task=edit&virtuemart_product_id=576
And error 0
If difficulties persist, please contact the website administrator and report the error below.
0 Call to undefined method Joomla\CMS\Router\SiteRouter::setMode()
The same error I get when i press PDF icons or email icons

Hope this help.

Regards.


There in no problem if you fall. Problem is if you don't get up

scriner

  • Beginner
  • *
  • Posts: 15
  • A beginner
Re: Please test for routing and datefields on j3 and j4
« Reply #12 on: September 13, 2022, 07:22:04 am »
Hello,

This update solved my problem with routing https://forum.virtuemart.net/index.php?topic=148714.0. But I already restored website to J3 because there was many other problems.

But other problem with ?clearCart didn't solved. Why this tale - ?clearCart needed at all?

And I have problem with notify function, after I entered email and press button it shows message that "Notify successfully saved" and "vmTable store insertObject" but in fact, no notify email saved. Anybody has same issue?

J 4.2.2 / VM 4.0.7 10701

scriner

  • Beginner
  • *
  • Posts: 15
  • A beginner
Re: Please test for routing and datefields on j3 and j4
« Reply #13 on: September 16, 2022, 06:27:31 am »
Big Problem with Joomla 3

After updating, I noticed that Virtuemart support was very slow for me.
I noticed a loop in the logs that is overloading my server.

 It is impossible to work with VM 4.0.7. I went back to the previous version.

I have same, but with J 4.2.2 and VM 4.0.7 10701

When I trying to save product, I get 508 error and mod_hostinglimits stops me.

[host website.kz] Error on sending request(GET /administrator/index.php?option=com_virtuemart&view=product&task=edit&virtuemart_product_id[]=2&_=1663301629449 HTTP/1.0); uri(/administrator/index.php?option=com_virtuemart&view=product&task=edit&virtuemart_product_id[]=2&_=1663301629449) content-length(0): ReceiveAckHdr: nothing to read from backend (LVE ID 10130), check http://docs.cloudlinux.com/mod_lsapi_troubleshooting.html, referer: https://website.kz/administrator/index.php?option=com_virtuemart&view=product&task=edit&virtuemart_product_id[]=2





kiro789

  • Beginner
  • *
  • Posts: 40
  • Skype Name: kiro789
Re: Please test for routing and datefields on j3 and j4
« Reply #14 on: September 28, 2022, 15:48:28 pm »
0 Call to undefined method Joomla\CMS\Router\SiteRouter::setMode()
I have this error now on the site