Posts

Showing posts with the label VirtueMart

[Virtuemart] Error: $("vmlp_search_str").addEvent is not a function

Got this error while working on a Joomla 1.5.18, Virtuemart 1.1.4 website. Error: $("vmlp_search_str").addEvent is not a function Source File: http://www.tracyeinny.com.sg/staging2/modules/mod_vm_live_product/js/vmliveproduct.js Line: 110 After debugging for a while. I found out that apparently there are conflicts between jQuery and Mootools (or other scripts). To solve this, just need to add in the following scripts after jQuery import. <script type="text/javascript"> jQuery.noConflict(); </script> Hope that helps those who new to HTML, Javascript.

[Virtuemart] Customize Order List - adding extra column

In this post, I am going explain on how to add an extra column in Virtuemart Administrator Order List page. (Note that, in this example, I'm going to add a new address_1 column). Note: Please refer to my previous post on " adding search keywords " for the SQL query code for the other fields that you want. Getting Started. In /administrator/components/com_virtuemart/html/order.order_list.php locate this section, around line 27. Then add " address_1 " into the line, as below. //$list .= "first_name, last_name FROM #__{vm}_orders, #__{vm}_order_user_info WHERE "; // This is the modified line. $list .= "first_name, last_name, address_1 FROM #__{vm}_orders, #__{vm}_order_user_info WHERE "; After that, locate this section, as usual and note that " Address_1 " is already the added column. $columns = Array( "#" => "width=\"20\"", "<input type=\"checkbox\" name=\"tog...

Virtuemart Add-to-cart not working

Image
Check whether you are using '  (direct input from keyboard) instead of ’  for your product name. For example: Virtuemart potential source of problem :) References : http://forum.virtuemart.net/index.php?action=printpage;topic=26822.0

[Virtuemart] Customize Order List search keywords

Image
The default Order List search keyword doesn't check for customer's email address, billing addresses, phone numbers, Custom Message... To include all these: In /administrator/components/com_virtuemart/html/order.order_list.php locate this section if (!empty($keyword)) { $q .= "(#__{vm}_orders.order_id LIKE '%$keyword%' "; $q .= "OR #__{vm}_orders.order_status LIKE '%$keyword%' "; $q .= "OR first_name LIKE '%$keyword%' "; $q .= "OR last_name LIKE '%$keyword%' "; $q .= "OR CONCAT(`first_name`, ' ', `last_name`) LIKE '%$keyword%' "; The add the keywords that you wish to include. Below is an example code. The codes are pretty self-explanatory. $list = "SELECT #__{vm}_orders.order_id,order_status, #__{vm}_orders.cdate,#__{vm}_orders.mdate,order_total,order_currency,#__{vm}_orders.user_id,"; $list .= "first_name, last_name...

Joomla Virtuemart related customization

After setting up Virtuemart in Jooma, naturally the the search module in Joomla to return the results of the products available. But, the default search in Joomla will return all the pages in Joomla, instead of the list of products. To solve this, we can install search extensions (modules). There are a lot of free search modules out there, but I'm only going to introduce this particular AJAX search module called "VM Live Product Search". This module will return search results in a floating box for user to select from. [Module] VM Live Product Search Download: http://extensions.virtuemart.net/index.php?option=com_sobi2&sobi2Task=sobi2Details&catid=9&sobi2Id=92&Itemid=2# To edit the CSS, go to /public_html/shop/templates/default/css , and  /public_html/shop/modules/mod_vm_live_product/css . To Disable Auto Redirect (I'm still working on it... hehe ) "Recently Viewed Products" section To remove "Recently Viewed Products...

Virtuemart - Disable SKU

Been working on Joomla and VirtueMart lately :) On of the "customization" that people (client) always want is to disable or remove the SKU number from cart , or basket , or order details  page. Did a Google search a found out that there are quite a number of people out there offering solutions to remove SKU, but at a high price. Actually, you can hide the print of the SKU in the basket and order details  page. To disable SKU in "basket" , find the file at components/com_virtuemart/themes/default/templates/basket/basket_b2c.html.php Note: If you are using other customized theme, go to ../theme/<your-theme>/ instead. Inside that file around like 23 you will find the header of the column print _('PHPSHOP_CART_SKU') ?> You can comment that or delete Usually, to be safe, I'll just comment it ( /* .......*/ ). Then for the SKU code, around line 31, do the same thing, remove or comment it. To disable SKU in "account order details...