Author Topic: NO MORE THEME. 2.0 uses VIEWS (Layout Override)  (Read 160592 times)

TBoele

  • Beginner
  • *
  • Posts: 33
Re: NO MORE THEME. 2.0 uses VIEWS
« Reply #30 on: March 14, 2012, 10:21:20 am »
And if you wanna override default_customfields.php you place a copy of this file in :

yourtemplate/html/com_virtuemart/productdetails/default_customfields.php

Is this correct ?

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10272
  • VirtueMart Version: 3+
Re: NO MORE THEME. 2.0 uses VIEWS
« Reply #31 on: March 14, 2012, 12:28:31 pm »
yes
I do NOT do development work for hire.

drewby07

  • Beginner
  • *
  • Posts: 33
Re: NO MORE THEME. 2.0 uses VIEWS
« Reply #32 on: March 20, 2012, 19:09:48 pm »
Just FYI, doing this override broke all of my default VM images....such as the "add to cart" button etc.

corymp

  • Jr. Member
  • **
  • Posts: 149
Re: NO MORE THEME. 2.0 uses VIEWS
« Reply #33 on: March 20, 2012, 19:17:26 pm »
Just FYI, doing this override broke all of my default VM images....such as the "add to cart" button etc.
take a copy of everything in /components/com_virtuemart/assets/ and put them in -> /templates/yourtemplate/
VM 2.0.4 Stable
J2.5.4

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10272
  • VirtueMart Version: 3+
Re: NO MORE THEME. 2.0 uses VIEWS
« Reply #34 on: March 20, 2012, 19:37:25 pm »
Just FYI, doing this override broke all of my default VM images....such as the "add to cart" button etc.
take a copy of everything in /components/com_virtuemart/assets/ and put them in -> /templates/yourtemplate/

Not everything,

Just the images folder.

I do NOT do development work for hire.

corymp

  • Jr. Member
  • **
  • Posts: 149
Re: NO MORE THEME. 2.0 uses VIEWS
« Reply #35 on: March 20, 2012, 19:41:25 pm »
Yeah, you're right. For me,  I have the css files copied over and virtuemart styling turned off. plus I've been styling everything including facebox, etc. I found it's nice to have it all in there
VM 2.0.4 Stable
J2.5.4

jakobe

  • Beginner
  • *
  • Posts: 36
Re: NO MORE THEME. 2.0 uses VIEWS
« Reply #36 on: March 31, 2012, 00:30:08 am »
what a nightmare!

just let folks create, install and use templates.

why all of the headache?...stop re-inventing the core way 99% of users want to use Joomla.

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10272
  • VirtueMart Version: 3+
Re: NO MORE THEME. 2.0 uses VIEWS
« Reply #37 on: March 31, 2012, 12:04:05 pm »
what a nightmare!

just let folks create, install and use templates.

why all of the headache?...stop re-inventing the core way 99% of users want to use Joomla.


Why dont learn what  you are talking about?

JOOMLA USES "VIEWS" Unlike Vmart 1.1,  2.0 is actually the way Joomla components are supposed to be implemented.

If you quit your complaining, like you have done in every single of your posts I have read, and take the time to learn, you would be waaaay happier with 2.0

Red This section "Introduction to Model-View-Controller"
http://docs.joomla.org/Developing_a_Model-View-Controller_Component_-_Part_1

I do NOT do development work for hire.

alvini

  • Beginner
  • *
  • Posts: 3
Re: NO MORE THEME. 2.0 uses VIEWS
« Reply #38 on: April 03, 2012, 10:24:15 am »
Regarding the CSS overwrite the steps you mention are not good.

THE CSS overwrite should be done automatically like for example is on K2.

If i put my VM CSS files the html folder it should load them automatically. I dont get why VM team has not done this.

If i put my VM css files on the template.css file that will make them load everytime and not only on the VM pages as it should.

Please consider to make the CSS overwrite to work smoth like it should on the new releases.

alvini

  • Beginner
  • *
  • Posts: 3
Re: NO MORE THEME. 2.0 uses VIEWS
« Reply #39 on: April 10, 2012, 12:03:03 pm »
Plus overwriting the CSS in that way breaks some other parts like the "ask a question about this product" pop up box...

So if someone knows another better way to overwrites ;D the VM CSS is welcome to share

terp

  • Beginner
  • *
  • Posts: 45
Re: NO MORE THEME. 2.0 uses VIEWS
« Reply #40 on: April 10, 2012, 18:43:04 pm »
Thanks, BanquetTables.pro....VERY helpful and got it all working.

Rather than add all the VM CSS overhead to EVERY compiled page, since I only have a dozen or so lines modified from the stock VM CSS, I merely added the few lines to my template.css and marked them as !important.

Thanks again.

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10272
  • VirtueMart Version: 3+
Re: NO MORE THEME. 2.0 uses VIEWS
« Reply #41 on: April 10, 2012, 18:57:58 pm »
Thanks, BanquetTables.pro....VERY helpful and got it all working.

Rather than add all the VM CSS overhead to EVERY compiled page, since I only have a dozen or so lines modified from the stock VM CSS, I merely added the few lines to my template.css and marked them as !important.

Thanks again.




I just disabled the vmart css totally. Then, when I saw I needed something from the vmart css, I copied it, and pasted it in my template.
That was only
The quantity buttons, update delete buttons,

and the widths20 etc.

Then, I combined as many classes as I could with my template css.



I do NOT do development work for hire.

TBoele

  • Beginner
  • *
  • Posts: 33
Re: NO MORE THEME. 2.0 uses VIEWS
« Reply #42 on: April 11, 2012, 08:01:22 am »
Why dont learn what  you are talking about?

JOOMLA USES "VIEWS" Unlike Vmart 1.1,  2.0 is actually the way Joomla components are supposed to be implemented.

If you quit your complaining, like you have done in every single of your posts I have read, and take the time to learn, you would be waaaay happier with 2.0

Red This section "Introduction to Model-View-Controller"
http://docs.joomla.org/Developing_a_Model-View-Controller_Component_-_Part_1

I make a copy of  .../components/com_virtuemart/views/askquestion/tmpl/form.php  and placed it in  .../templates/my_template/html/com_virtuemart/askquestion/form.php
But when i made some changes it doesn't work. You see the changes if i do it in the original form.php.

Is it not possible to override this ask a question form.php ?

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10272
  • VirtueMart Version: 3+
Re: NO MORE THEME. 2.0 uses VIEWS
« Reply #43 on: April 11, 2012, 14:20:27 pm »
Why dont learn what  you are talking about?

JOOMLA USES "VIEWS" Unlike Vmart 1.1,  2.0 is actually the way Joomla components are supposed to be implemented.

If you quit your complaining, like you have done in every single of your posts I have read, and take the time to learn, you would be waaaay happier with 2.0

Red This section "Introduction to Model-View-Controller"
http://docs.joomla.org/Developing_a_Model-View-Controller_Component_-_Part_1

I make a copy of  .../components/com_virtuemart/views/askquestion/tmpl/form.php  and placed it in  .../templates/my_template/html/com_virtuemart/askquestion/form.php
But when i made some changes it doesn't work. You see the changes if i do it in the original form.php.

Is it not possible to override this ask a question form.php ?

yes its possible,

do you have more than 1 template?

I do NOT do development work for hire.

baggeler

  • Jr. Member
  • **
  • Posts: 78
    • Orgonite Brasil
  • Skype Name: bernhard_aggeler
  • VirtueMart Version: 3.2
Re: NO MORE THEME. 2.0 uses VIEWS
« Reply #44 on: April 12, 2012, 02:00:07 am »
I followed al this discussions and I think I am getting the idea of overriding functionality.

In my case I did install VM onto Joomla 2.5 and a Yootheme template. It works pretty fine and the only thing remaining so far is that select boxes, buttons and popup forms (e.g. the ask a question form) do not inherit the layout settings and need to be adjusted.

http://www.orgonite-brasil.com/index.php/loja-virtual/orgonite-loja-virtual/por-forma
http://www.orgonite-brasil.com/index.php/component/virtuemart/por-forma/piramide-cheops-detail?Itemid=0

I did learn the basics about CSS some years ago and am refreshing my knowledge now "on the job" after being away from webdesign for over 7 years. Its my understanding that all I need is to create some override for the css file, is this correct (As do not need to modify anything on the layout itself but just change the background and font colors etc. so everything is congruent with the template)

I did download the vmsite-ltr.css (is this the correct one?) and now I am about to find the right tags I need to modify. How can I find out which are the correct classes to modify, can anybody point me to the files where to look for?

Thanks for your help!
Bernhard
________________________________________
The more I know the more I know I donĀ“t know
Socrates

Site: www.orgonite-brasil.com
Tech: Joomla 3.7.3,  Virtuemart 3.2