Author Topic: Virtuemart Category Layout [solved]  (Read 3428 times)

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1604
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Virtuemart Category Layout
« Reply #30 on: January 19, 2022, 11:26:43 am »
no

are you looking my images?
are totally other
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

Lydiasupplyingdirect

  • Jr. Member
  • **
  • Posts: 51
  • A beginner
  • VirtueMart Version: 3.8.9
Re: Virtuemart Category Layout
« Reply #31 on: January 19, 2022, 12:45:41 pm »
I am with you now!

Am I now in the correct area?

I am completely new to all of this so that's why it's taking me a while to understand apologies.


If I am in the correct area, I will make the copy files you have instructed and show you once done.

Again, thank you for your help
L Bustin

Lydiasupplyingdirect

  • Jr. Member
  • **
  • Posts: 51
  • A beginner
  • VirtueMart Version: 3.8.9
Re: Virtuemart Category Layout
« Reply #32 on: January 19, 2022, 12:46:50 pm »
When you say this..

as my FTP list ==

a/ inside core VM folder
components/com_virtuemart/views/category/tmpl/custom.php
components/com_virtuemart/views/category/tmpl/custom.xml

or

b/ inside template folder as override

templates/YOUR_TEMPLATE/html/com_virtuemart/category/custom.php
templates/YOUR_TEMPLATE/html/com_virtuemart/category/custom.xml


Do I need to do both of these or just either or?
L Bustin

Lydiasupplyingdirect

  • Jr. Member
  • **
  • Posts: 51
  • A beginner
  • VirtueMart Version: 3.8.9
Re: Virtuemart Category Layout
« Reply #33 on: January 19, 2022, 13:50:13 pm »
Have edited xml, please see screenshots.

Next step is creating the language override, which is confusing me now.

When I search for COM_VIRTUEMART_CATEGORY_VIEW_CUSTOM_TITLE or COM_VIRTUEMART_CATEGORY_VIEW_CUSTOM_DESC nothing comes up? Do I need to search for the original code first? COM_VIRTUEMART_CATEGORY_VIEW_DEFAULT_TITLE
L Bustin

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3923
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Virtuemart Category Layout
« Reply #34 on: January 19, 2022, 15:00:03 pm »


templates/YOUR_TEMPLATE/html/com_virtuemart/category/custom.php
templates/YOUR_TEMPLATE/html/com_virtuemart/category/custom.xml

After this (and create language override for COM_VIRTUEMART_CATEGORY_VIEW_CUSTOM_TITLE+COM_VIRTUEMART_CATEGORY_VIEW_CUSTOM_DESC)

You should use this language constants and create content for these. Please consult JOOMLA help pages for the concept creating language constants and what they are used for.

Jörgen
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1604
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Virtuemart Category Layout
« Reply #35 on: January 19, 2022, 15:59:03 pm »
Quote
Have edited xml, please see screenshots.

This point is ok

Language override is not ok.
Again and again
Why do you search your new language constant, if is not setuped in Joomla?
You have to create as new, dont search.

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

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1604
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Virtuemart Category Layout
« Reply #36 on: January 19, 2022, 16:01:23 pm »
Quote
Am I now in the correct area?

yes, correct subfolder is tmpl in folder category.

Again:
components/com_virtuemart/views/category/tmpl/custom.php
components/com_virtuemart/views/category/tmpl/custom.xml
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

Lydiasupplyingdirect

  • Jr. Member
  • **
  • Posts: 51
  • A beginner
  • VirtueMart Version: 3.8.9
Re: Virtuemart Category Layout
« Reply #37 on: January 19, 2022, 16:03:17 pm »
So that's what I am saying I don't understand how to do that part. How do I create/set up the language constant in Joomla in the first place?

Like I've said, i am new to this, I have no idea what I'm doing so I need help with how to do this part. I am trying to understand what you are saying but can be difficult with how your put sentences together, I hope you can understand what I am saying.
L Bustin

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3923
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Virtuemart Category Layout
« Reply #38 on: January 19, 2022, 16:07:31 pm »
Quote
You should use this language constants and create content for these. Please consult JOOMLA help pages for the concept creating language constants and what they are used for.

Search Joomla.net ...

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1604
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Virtuemart Category Layout
« Reply #39 on: January 19, 2022, 21:39:40 pm »
Oh my goodness :)

1/ Add new language constant to your new layout custom.php -> DONE
2/ Add your new language constant from your new layout to administration as new override - don't find it - is not exist yet you wilt to create and save - look at the attachment -> I think not DONE
3/ After this put your new layout and XML file to folder component/com_virtuemart/views/category/tmpl - DONE
4/ After this you have to create new menu item type CustomFilter Search Result and select in dropdown your new layout with the your new name == Custom Category Layout, because before you created override for administration -> I think not DONE

If you don't know still, then pls study on Joomla.org in documentation or exist a couple of Books about Joomla how
- create language override in Joomla
- create custom layout for view for ANY Joomla Component

So I did it and spent two beautiful nights testing and rehearsing before I learned it in Joomla 25.
I also looked into the code of the various components as they have done.

I will be surprised if the final result is not there :)
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

Lydiasupplyingdirect

  • Jr. Member
  • **
  • Posts: 51
  • A beginner
  • VirtueMart Version: 3.8.9
Re: Virtuemart Category Layout
« Reply #40 on: January 20, 2022, 10:29:06 am »
Hello Pinochico,

Thank you ever so much for your help, I have done all of this now and is working!! I just need to figure out what code I need to get rid of in the xml file as is still showing category on top of search result but I know that's because I haven't deleted what I do not need in the file.

I will read Joomla documentation now, thank you again for being so patient!

Lydia
L Bustin

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1604
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Virtuemart Category Layout [solved]
« Reply #41 on: January 20, 2022, 19:11:16 pm »
Pleasure on my part, you can mark it as solved
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

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3923
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Virtuemart Category Layout
« Reply #42 on: January 20, 2022, 20:39:05 pm »
Nice work you have put into this Pinochico  8)

Thank You

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1604
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Virtuemart Category Layout [solved]
« Reply #43 on: January 21, 2022, 08:03:24 am »
I'm glad I succeeded, I keep my fingers crossed for the future
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