Pages

Wednesday, June 11, 2008

How to remove price and Add to cart button from Oscommerce

What is necesary to do, to remove price and Add to cart button from Oscommerce is:


First step: Get the stylesheet.css, it is on the root of catalog, in this file add at its end a class with any name and with the property display:none;


Like this:


.hideFeatures{display:none;}


Second step: Get new_products.php from catalog/includes/modules and find the variable p_price, find where is shown this variable in the html code and wrap this variable with span class="hideFeatures";


Also add the same span class to button_add_to_cart2.gifthe number can change according the language or any other thing.


Third step: From catalog/includes/modules also get the product_listing.php file and do the same than in the second step.


Fourth step: From catalog get products_new.php and specials.php and do the same.

Monday, May 19, 2008

How to open a link on a blank target on SolpartMenu in DotNetNuke

It's been so easy, after to have been sailing throughout the Internet for a long time, I have the answer:

Just on the location add this code:

[javascript]: window.open('http://linktothepage')

But, remove the embraces of [javascript]

That's it.

See you!!!!

Resources: http://cs.jaxdug.com/forums/thread/536.aspx

Friday, January 11, 2008

How to install java on linux

After to have been through the net for a long time to configure correctly java on linux i've written this article to solve this issue.

Steps to install correctly java in linux:

-Let's supose java is installed under the directory /j2ee

Steps:

1.Create a file vi /etc/profile.d/java.sh
2.Insert he follow lines:

export PATH=/j2ee/java/jdk/jre/bin:$PATH
JAVA_HOME=”/j2ee/java/jdk”
export JAVA_HOME
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=$JAVA_HOME/lib/tools.jar
export CLASSPATH=$CLASSPATH:.
3.Make it executable this file running this sentence:

chmod 755 /etc/profile.d/java.sh
4.After that, let's install the plugin for firefox:

The plugin you have to use depends of the version the browser was compiled. Generally it was done with gcc 3.x, so execute:

ln -s /j2ee/java/jdk/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/firefox/plugins

If the gcc is 2.96

ln -s /j2ee/java/jdk/jre/plugin/i386/ns7-gcc29/libjavaplugin_oji.so /usr/lib/firefox/plugins

5.To install the preferences edit the file /usr/share/applications/sun_java.desktop to look like this:

[Desktop Entry]
Name=Java
Comment=Java Control Panel
Exec=/j2ee/java/jdk/jre/bin/ControlPanel
Icon=/j2ee/java/jdk/jre/plugin/desktop/sun_java.png
Terminal=0
Type=Application
Categories=Application;Settings;

6.To test the configuration, restart you're pc and after run on a terminal:

which java
which javac
echo $JAVA_HOME
echo $PATH
echo $CLASSPATH

If everything works you have configured right you're JVM to start to develop and run java applications.


Now on a web browser window write: about:plugins, you have to see all the java MIME Types listed there.

Finally go to /usr/share/applications and search and execute sun_java.desktop it has to run the preferences of Java version installed on the machine

Greetings.

This article has been written using this references:

http://www.linuxparatodos.net/portal/staticpages/index.php?page=como-java
http://www.linux.com/base/ldp/howto/Enterprise-Java-for-Linux-HOWTO-2.html