News:

Support the VirtueMart project and become a member

Main Menu

Virtuemart Category Layout [solved]

Started by Lydiasupplyingdirect, January 14, 2022, 13:18:06 PM

Previous topic - Next topic

pinochico

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

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

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

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

Quote from: pinochico on January 18, 2022, 17:52:37 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

QuoteHave 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

QuoteAm 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

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

QuoteYou 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

#39
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

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

#41
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

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

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