Author Topic: Checkout page / Cart page SEF URL problems  (Read 51906 times)

nebojsa

  • Jr. Member
  • **
  • Posts: 52
Re: Checkout page / Cart page SEF URL problems
« Reply #45 on: April 29, 2021, 14:15:30 pm »
I am sorry for waking up old ghosts here but I have the same cart problem and none of the above solutions doesn't work for me.
After so many years I thought problems would been solved but this is not the case.

I have multilanguage site and I have SEF cart problem which cannot be solved.
In my template I have a mod_virtuemart_cart override with JS and AJAX update.
When I click "show cart" in JS it takes me to: mywebsite.com/sr/cart instead of mywebsite.com/sr/korpa

I tried so far:
- Creating hidden menu for Virtuemart cart for both languages
- Creating visible menu for Virtuemart cart for both languages
- Disabling SEF for cart
- Overriding mod_virtuemart_cart with default file
- Overriding templates/html/com_virtuemart/cart with default files
- Changing language definition for "cart" in my language tag


Nothing works. No matter what I do I always get /cart instad of /korpa URL, thus creating problems with my module positions.
You can check my testing website at gravexcp.mycpanel.rs

Joomla: 3.9.20
VirtueMart 3.8.6 10373

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1661
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Checkout page / Cart page SEF URL problems
« Reply #46 on: April 29, 2021, 21:09:03 pm »
Did you search the router?
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

nebojsa

  • Jr. Member
  • **
  • Posts: 52
Re: Checkout page / Cart page SEF URL problems
« Reply #47 on: April 29, 2021, 22:57:06 pm »
How do you mean search the router? I have looked under the CASE CART but I didn't find anything unusual over there.

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1661
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Checkout page / Cart page SEF URL problems
« Reply #48 on: April 29, 2021, 23:00:59 pm »
router.php for Virtuemart
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

nebojsa

  • Jr. Member
  • **
  • Posts: 52
Re: Checkout page / Cart page SEF URL problems
« Reply #49 on: April 29, 2021, 23:03:35 pm »
Yes I know what it is but I don't know what you mean when you say search. I also don't know what should I search for. Everything inside router.php seems normal to me.

nebojsa

  • Jr. Member
  • **
  • Posts: 52
Re: Checkout page / Cart page SEF URL problems
« Reply #50 on: April 30, 2021, 16:10:20 pm »
This cart problem is becoming frustrating to me.
PHP debug reports wrong item id at router.php at line 983.
This message is also showing on categories menu.
I am starting to doubt that something is wrong with latest VM release.

nebojsa

  • Jr. Member
  • **
  • Posts: 52
Re: Checkout page / Cart page SEF URL problems
« Reply #51 on: April 30, 2021, 18:57:46 pm »
VM routing problem!

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1661
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Checkout page / Cart page SEF URL problems
« Reply #52 on: May 01, 2021, 09:57:13 am »
Do you have hidden menu for virtuemart shop?
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

nebojsa

  • Jr. Member
  • **
  • Posts: 52
Re: Checkout page / Cart page SEF URL problems
« Reply #53 on: May 01, 2021, 10:43:28 am »
Yes of course. I tried hidden menu, public menu, everything.
Setting up "Transliterate strings" under SEO settings helped with cart but I am still seeing many php itemid error messages for categories menu (when I click show cart).
Let's face it: VM handles multilanguage sites very badly.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10744
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
Re: Checkout page / Cart page SEF URL problems
« Reply #54 on: May 02, 2021, 09:50:07 am »
Quote
Let's face it: VM handles multilanguage sites very badly.

Hardly ..  you have found one minor glitch ...  as u have already over ridden the cart module in the interim simply detect the lang in the over ride and have a fixed lang dependent link to cart..
then contribute to the FREE project by debugging what is going wrong in this particular scenario 
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1661
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Checkout page / Cart page SEF URL problems
« Reply #55 on: May 02, 2021, 11:04:17 am »
Quote
VM handles multilanguage sites very badly

Yes, in our company we know more then 8 years :)
I think in router are still constant from PSSHOP (first standalone app before changed to VirtueMart - Joomla app.)

But for multilanguage shop we use SEF app, then this error is not critical and we don't find solutions.
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

nebojsa

  • Jr. Member
  • **
  • Posts: 52
Re: Checkout page / Cart page SEF URL problems
« Reply #56 on: May 06, 2021, 00:18:08 am »
Quote
Hardly ..  you have found one minor glitch ...  as u have already over ridden the cart module in the interim simply detect the lang in the over ride and have a fixed lang dependent link to cart..
then contribute to the FREE project by debugging what is going wrong in this particular scenario

There is no lang routine in the cart module.

The problem is coming from router.php at line 983:
Code: [Select]
if(self::$_instance->slang != VmLanguage::$currLangTag or (self::$_instance->byMenu and $query['Itemid']!=self::$_instance->Itemid))
I am not an expert for this. You guys are more experienced than me and I would appreciate any help.

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3751
  • using Matomo instead of Google Analytics
Re: Checkout page / Cart page SEF URL problems
« Reply #57 on: May 08, 2021, 20:10:19 pm »
At present I don't see a javascript error. But perhaps examine the difference in your cart url:
https://gravexcp.mycpanel.rs/sr/component/virtuemart/korpa?Itemid=499
https://gravexcp.mycpanel.rs/en/products-services/cart

If I'm not mistaken, you have a (hidden?) menu item 'cart' in one of your English menus, but not in your Serbian menu.  Do you have the id 499 in your menu list?
And don't forget to clear the Joomla and VirtueMart cache after making changes in the menus.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

nebojsa

  • Jr. Member
  • **
  • Posts: 52
Re: Checkout page / Cart page SEF URL problems
« Reply #58 on: May 26, 2021, 20:26:23 pm »
Thanks for your reply jjk.
I have "cart" for English menu and "korpa" for Serbian menu. Should I have "cart" for both menus?
Those differences in url that you saw are part of the router problem.
Sometimes it routes in one way and sometimes it routes in another way - depending on where you call the cart from.
There is definitely something wrong with the Multilanguage routing.
As for Itemid=499, I can't find it. How did you managed to get that itemid?