EspañolEnglish (United Kingdom)

"Web Joomla a medida para tu empresa..."

rss facebook twitter digg youtube vimeo linkedin flickr
Joomla! Projects Blog
19
May
2010
Latest or Featured products with description in Virtuemart PDF Print E-mail
Written by kim1   

Now I will write the solution to a problem that I recently found some websites with Virtuemart doing, it is that there is no module as the latest or featured products to display the short description of the product and I just needed him to do So, well the solution is:

We must edit the file administrator / components / com_virtuemart / classes / ps_product.php on line 2418 to seek the consultation database

  $ Q = "SELECT product_id, product_name, product_parent_id, FROM # __ product_thumb_image {vm}  WHERE _Products product_sku = '$ product_sku' " 

We add to it the short description field look like:

  $ Q = "SELECT product_id, product_name, product_s_desc, product_parent_id, product_thumb_image FROM # __ {vm}  WHERE _Products product_sku = '$ product_sku' " 

Go to the 2422 line where it says:

  $ Product_id = $ db-> f ("product_id"); 

And below it add:

  $ Product_s_desc = $ db-> f ("product_s_desc"); 

We search the coincidence line 2429 with:

  $ Tpl-> set ('show_product_name', $ show_product_name) 

Just add it below:

  $ Tpl-> set ('product_s_desc', $ product_s_desc) 

Since we only need to edit the file that serves as a template in components / com_virtuemart / themes / default / templates / common / productsnapshot.tpl.php where we want to add where you see the description:

  $ echo product_s_desc; 

Add a comment
 
15
May
2010
The license gnu misunderstood PDF Print E-mail
Written by kim1   

Amusingly most moderate forums software when a user uploads a type rapidshare download link is invited by a friendly moderator to remove the link with the excuse that this forum is not allowed illegal download links.

It's funny because even if it is a commercial extension if this is written under the GNU / GPL license can be shared freely with others and those pages are a mechanism to share it with whoever you want ... Let the user actually not committing any fault to any copyright.

The GNU is misunderstood by most, in the JED (Joomla! Extensions Directory) we can find several applications embodying gnu allegedly as a domain for use by example .... Gentlemen's not gnu, when one buys a product gnu is free to use, modify and redistribute maintaining the original license, and I do not want to talk about encrypted codes and other atrocities that are under such license.

Add a comment
Last Updated on Saturday, 15 May 2010 18:49
 
22
Apr
2010
How to modify the appearance of tool tips in Joomla! PDF Print E-mail
Written by kim1   

Since the arrival of Joomla! 1.5 the tool tips (floating texts provide us with information) are part of the core of the application and can modify its css styles through our template, in the old version of Joomla! 1.0 these styles were integrated into a javascript file.

The way to change your appearance is based on three css classes that can add to our style sheet.

  / * Tooltips * / 
  . Tool-tip ( 
  / * Comntenedor styles * / 
  ) 
  . Tool-title ( 
  / * Styles for the title * / 
  ) 
  . Tool-text ( 
  / * Text styles * / 
  ) 

Add a comment
 
06
Apr
2010
Error activating 1.4.x standardbuttons in Docman PDF Print E-mail
Written by kim1   

For this, activating on the website of a client plugin standardbuttons DOCman appeared to me a critical error could not see the website, the error said:

Fatal error: Call to a member function canDownload () on a non-object in ...

I've been looking at the code and the first thing that occurred to me what has been fixed, construct the object using the method call canDownload () in file plugins / DOCman / standardbuttons.php

  bot_standardbuttons function ($ params) ( 
  global $ mainframe, $ _DOCMAN, $ _DMUSER; 
  $ _DMUSER = $ _DOCMAN-> GetUser (); 

This error has been fixed and the buttons can be active under the links to the documents ...

Add a comment
 
22
Mar
2010
Plugins components contained in our Joomla! PDF Print E-mail
Written by kim1   

Sometimes relamente is easy to do what we intend when we work with Joomla, I have been making changes to a component for a client and needed to use some plugins of content in some text fields, I have been looking for information on it and the truth is there is not much and the little that is not in Spanish.

Achieving this is as simple as adding one line of code where we have the text output, for example, imagine that our back-end form contains a text and in the public part painted it like this:

  <? Php echo $ this-> row-> text;?> 

To ensure that the plugins are loaded only content we should launch our text as follows:

  <? Php echo JHTML ::_(' content.prepare ', $ this-> row-> text);?> 

Sometimes it's really amazing the ease with which we can work through the API for Joomla!

Add a comment
Last Updated on Monday, 22 March 2010 13:34
 
<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>

Page 2 of 11