Întrebare Need Help...where's the templates ?

12 Oct 2011 15:01 #217 de veeco

  • Fresh Boarder
  • Fresh Boarder

  • Postări: 5
  • Ai primit o mulțumire:

  • Gen: Necunoscut
  • Data nașterii: Necunoscut
  • Hello I'm using your mod_vm_product_filter, i must say it should work.. but it doesn't...
    now i'm using parameter type to Multiple Values

    i'm tracing your code and found a problem
    my product type use browse4.. on your code i saw this code:
    $template = read_file( PAGEPATH."templates/".$browsepage.".php");

    but when i try to echo the template it return:
    D:\zend\Apache2\htdocs\joomla1523/administrator/components/com_virtuemart/html/templates/browse_4.php

    Well, there is no "browse_4.php" in administrator/components/com_virtuemart/html/templates/

    However i try to echo $comp and $attr manually... both shown and the filter works...
    so my problem is.. where's the template that your code looking at ?

    Vă rugăm Autentificare sau Crează un cont să participaţi la discuţie.

    12 Oct 2011 15:15 #218 de veeco

  • Fresh Boarder
  • Fresh Boarder

  • Postări: 5
  • Ai primit o mulțumire:

  • Gen: Necunoscut
  • Data nașterii: Necunoscut
  • Another Question...
    Which template that control the search result ?

    Vă rugăm Autentificare sau Crează un cont să participaţi la discuţie.

    12 Oct 2011 16:16 - 12 Oct 2011 16:18 #219 de webgobe

  • Administrator
  • Administrator

  • Postări: 153
  • Karma: 4
  • Ai primit o mulțumire: 8

  • Gen: Bărbat
  • Data nașterii: 18 Ian 1960
  • veeco a scris: Hello I'm using your mod_vm_product_filter, i must say it should work.. but it doesn't...
    now i'm using parameter type to Multiple Values

    i'm tracing your code and found a problem
    my product type use browse4.. on your code i saw this code:

    $template = read_file( PAGEPATH."templates/".$browsepage.".php");
    Well, the module - as I had been writing this on couple of previous posts - is a simple wrap in the module position of the core code of the Advanced Search According to Parameters function of Virtuemart. Hence have no secial settings, it's taking ALL key data from VirtueMart's main configuration and the products themselves. Install and publish the mod_virtuemart module from the standard distribution package, and check the link from there. If that link works - meaning you have your shop currently configured, with product types also correctly configured, at least one product assigned to your published product types, with all parameters correctly set, you will see that the module also will work.
    As for the base question: wich template is uses:
    check the main configuration of VirtueMart, you will find out, what template is used.
    The results you got by tracing the output are saying to me that the main VirtueMart configuration isn't correct. Check the shop to work correctly.
    Again: is nothing to configure there, above the need to select ONE (JUST ONE!!!) product type to filter on. Another thing which is mentioned both in the readme and in the forums (both there and in VM forums.
    Last edit: 12 Oct 2011 16:18 by webgobe.

    Vă rugăm Autentificare sau Crează un cont să participaţi la discuţie.

    12 Oct 2011 18:26 #220 de veeco

  • Fresh Boarder
  • Fresh Boarder

  • Postări: 5
  • Ai primit o mulțumire:

  • Gen: Necunoscut
  • Data nașterii: Necunoscut
  • Hello,
    Thanks for your prompt reply..

    The Reason i trace the source code is because the module does not output anything instead of submit butten and current product type...

    so trace your code and found the output should come from the $template

    Now i checked on
    PAGEPATH."templates/".$browsepage.".php")
    it refer to a file thats not on the server ( i user browse4.php) for most of the front end..

    if my virtuemart configuration is wrong.. based on your experience, which should i check first ?

    Vă rugăm Autentificare sau Crează un cont să participaţi la discuţie.

    12 Oct 2011 18:35 #221 de veeco

  • Fresh Boarder
  • Fresh Boarder

  • Postări: 5
  • Ai primit o mulțumire:

  • Gen: Necunoscut
  • Data nașterii: Necunoscut
  • A little breakdown:
    $template = read_file( PAGEPATH."templates/".$browsepage.".php");

    PAGEPATH Comes from:
    define( 'PAGEPATH', ADMINPATH.'html/' );

    ADMINPATH Comes from:
    define( 'ADMINPATH', $mosConfig_absolute_path.'/administrator/components/com_virtuemart/' );

    my $browsepage = browse_4

    so basically the module try to read the file in :/administrator/components/com_virtuemart/html/templates/browse_4.php

    there's no 'templates' folder inside html folder on com_virtuemart...

    Vă rugăm Autentificare sau Crează un cont să participaţi la discuţie.

    12 Oct 2011 18:54 #222 de webgobe

  • Administrator
  • Administrator

  • Postări: 153
  • Karma: 4
  • Ai primit o mulțumire: 8

  • Gen: Bărbat
  • Data nașterii: 18 Ian 1960
  • And there should not be such a folder... that's why I am asking you to do what I proposed+ to check FIRST if the core VM functionality works.
    Templates are in components/com_virtuemart/themes folder, the template file for the browsepage is located somewhere in components/com_virtuemart/themes/YOURHEMEOFCHOICE/templates/browse/ folder, so the correct path should be components/com_virtuemart/themes/YOURHEMEOFCHOICE/templates/browse/browse_4.php
    If the tracing gives you other results than that, then I don't see how in the heck your shop can work.... because then simply the module (and the module uses CORE VM calls!!) simply can't get the correct info from VM config file.
    Believe me, is nothing wrong with the module... There are more, than 500 downloads only from my site alone, and the module is posted on couple of other sites too. And nobody reported similar issues. I used it allready on more, than 15 sites, with VM versions from 1.1.2 to 1.1.9 (latest stable) withouth any problems.
    Do me a favor, check that thing with the mod_virtuemart and the Advanced Search link from there.
    And see if that works. And if that link - and search made from that link - works, and the module not, then we can go deeper in finding out what's wrong. (Can be a lot of things, including PHP version of your install - but if the core VM install works, is not likely to have problems with the module.)
    If you install it in some place I can access too, I'm open to help you to correctly set it up, but I can't help you with an install on your local machine.

    Vă rugăm Autentificare sau Crează un cont să participaţi la discuţie.

    Recommendations

    Fantastic service! Excellent from start to finish, great communication and responded rapidly throughout the entire process. Denes had no trouble completing my job and I will definitely be using him again for my future work. Thankyou

    John M.
    Joomla sites owner
    Sep 11, 2018

    Joomla Security

    Do you need a helping hand to keep your Joomla site in top shape?

    You need someone to keep your site safe? If you want to know, what we can do for you, here is a short list:

    • We are performing a security audit - and we repeating this regularly
    • We are appliying all upgrades to the site as needed
    • We are adding our mix of security tools, settings and patches
    • We are setting up a backup procedure to ensure, that your data is safe
    • We are monitoring for uptime and unwanted activity
    • We are correcting any issues found
    • We are supporting all current and upcoming Joomla versions

    Sit back and relax - we are doing the mundane work for you!

    You only need to get your portion of Joomla Security Update today!

     

    Forum

    Forum Statistics

    • Total utilizatori:14.65k
    • Ultimul membru:falieris
    • Total mesaje:336
    • Total subiecte:78
    • Secţiuni totale:2
    • Total categorii:16
    • Deschis astăzi:0
    • Deschis ieri:1
    • Răspuns astăzi:0
    • Răspuns ieri:0

    Act de renunțare

    webGóbé și acest site nu este afiliat sau aprobat de Joomla! Project™. Toate produsele și serviciile furnizate prin intermediul acestui site nu sunt suportate sau garantate de The Joomla! Proiect sau de Open Source Matters, Inc. Utilizarea numelui, simbolului, siglei și mărcilor asociate Joomla! ® este permisă în baza unei licențe limitate acordată de Open Source Matters, Inc.

    Toate articolele descărcate în aceste pagini sunt fișiere zip care nu conțin programe malware, adware sau alte tipuri de conținut periculos. Acestea sunt menite să fie utilizate ca extensii de Joomla CMS și nu instalați sau modificați nimic pe computer. Informații speciale despre instalare / dezinstalare - dacă este diferită de procedura standard de instalare / dezinstalare a extensiei Joomla - sunt conținute în fiecare pachet - și sunt disponibile pe pagina de descărcare înainte de a face clic pe butonul Descărcare.

    URL: http://www.webgobe.com/ro/forum/virtuemart-modules/217-need-help-where-s-the-templates.html

    Sign In or Create Account