|
AboutThe VirtueMart AJAX Update extension allows you to update product inforrmation from the product browse page, via AJAX. This is a secure and fast tool for VirtueMart admin everywhere! Compatable with Joomla! 1.0.x and Joomla 1.5.
ChangesVersion 1.1 -> 1.2 (23/12/2008) - Allow use of any product table fiel in the browse template. Download / Installation
Joomla 1.0.x:
- Download mod_vm_ajax_update (.zip, 63kb)
- Install it from your Joomla Admin Module Installation section
- Modify your category browse templates (found in /administrator/components/com_virtuemart/html/templates/browse) to include the following:
<div class="AJAX" pid="{product_sku}"> <div class="AJAX_field" field="product_name" title="Name" content="{product_name}"></div> <div class="AJAX_field" field="product_s_desc" title="Short Desc" content="{product_s_desc}"></div> <div class="AJAX_field" field="product_desc" title="Description" content=" "></div> <div class="AJAX_field" field="product_price" title="Price" content=" "></div> <div href="{product_flypage}" class="AJAX_detail_link"></div> </div>
Joomla 1.5 file:
- Download mod_vm_ajax_update-j15-v1 (.zip, 63kb)
- Install it from your Joomla Admin Module Installation section
- Modify your category browse templates (found in /components/com_virtuemart/themes/default/templates/browse) to include the following:
<div class="AJAX" pid="<?php echo $product_sku ?>"> <div class="AJAX_field" field="product_name" title="Name" content="<?php echo $product_name; ?>"></div> <div class="AJAX_field" field="product_s_desc" title="order" content="<?php echo $product_s_desc; ?>"></div> <div class="AJAX_field" field="product_desc" title="Description" content=" "></div> <div class="AJAX_field" field="product_price" title="Price" content=" "></div> <div href="<?php echo $product_flypage; ?>" class="AJAX_detail_link"></div> </div> Security: Note: It is highly recommended that you password protect the /modules/mod_vm_ajax_update/AJAX directory to prevent malicious misuse. If your site has cpanel, you can enable this from there, otherwise ask your webhost, or google ".htaccess password protect". Usage- Go to the Site Modules section within the administrator backend,
- Publish the VirtueMart AJAX Updater module on All pages, and with Access control set to "special".
- Log in to the front-end site as administrator user, and browse a VirtueMart category. Input boxes should appear beside each product. Use these to change product details.
Usage Note: Due to the limits of what's available to the template, neither price nor product description will be filled in initially. They will still behave as expected, and will update with the new value. VirtueMart AJAX Update uses the JQuery library. If your site uses another javascript framework (such as prototype), there may be conflicts. Issues / Bugs
Please report any bugs at http://bugs.neonascent.com TroubleshootingPlease follow these steps before contacting us for support. Issue: The AJAX updater is not showing up. Try: - Make sure that the module is published with access restricted to administrator, and that you are viewing the site while logged in as administrator.
- Have a look at the source code in the virtuemart product page, to make sure your changes to the browse template shows up. To do this, right click on the page, select "View Page Source", and search for the text "AJAX_field" within the source. It should be there. If not you may not have added the template changes to the necessary templates.
- Look for a JavaScript error in your browser tosee itf there has been a conflict running the code. In IE the status bar shows up with a
inthe status bar. If you are getting a JavaScript error on your page, then it is possible that some of the included JavaScript libraries for yourtheme are conflicting with the AJAX updaters JQuery library. Try switching to a simpler theme to test.
Issue: The AJAX updater shows up, but saving changes does not work. Try: Confirm that you can access http://<your site domain>/modules/mod_vm_ajax_update/AJAX/AJAXupdate.php from your browser. There may be a problem with the file permissions, or a misconfiguration with your .htaccess file. FeedbackIf you have any queries, or suggested improvements, email josh<at>neonascent<dot>com
|