Main Menu
Newsflash
VirtueMart Maintenance Release 1.0.15

All current mods are compatible with VM 1.0.15
 
Latest Additions
Home arrow VirtueMart 1.0.x Mods arrow Child List & Quantity Mod
Child List & Quantity Mod PDF Print E-mail
This is a very complex modification that changes the appearance of child products. In the normal VirtueMart Install child products are displayed with a dropdown select box. There are some instances when you reuire more than 1 product to be added at a time or rather than redisplaying the pages just have a method of adding whichever variant you wish without reloading the page. This modification does that and more...

Click here to see each child type in a store.

Download: Child List Mod

Features


  • Ability to display childs as :
  1. Drop down selection
  2. Child list with one add to cart button
  3. Child list with an add to cart button per product
  • . I have now added the ability to display the quantity box in different ways
  1. Standard Method
  2. Hidden
  3. Dropdown selection with range and step configurable
  4. Checkbox
  • Display table headers
  • Enable linking to child product details
  • All parameters are set up in the product in the admin section
  • New global parameter to allow showing of cart on pressing addtocart or stay on current product
  • No DB changes
  • child products can either be displayed using the parent settings or have individually styled quantity boxes

Installation

(*Remember to back up your files and DB before installation)

Unpack the downloaded file, this will create three directories.
Copy these files to your-site/administrator/components/com_virtuemart/

You will be asked to overwrite files, select yes to all. Ensure that your virtuemart.cfg.php
file is writeable. Via the joomla administration, select the VirtueMart component and from there select configuration. You will see an error message in the form, ignore this and save your configuration file. The error msg will now disappear.

Product Configuration

Once installed and you create or edit a product you will have a new tab called 'Display Options'
display-options.png


Parameters

Use Parent Settings
You can set child products with different quantity options. Selecting this option overides these options and uses the parents options.
List
Selecting list will change child products from the standard drop method to the list method.
List Style
  • One addtocart button - This will display one addtocart button for all products. This will also change the default quantity to 0 and change the add to cart ttext to Update Cart.
  • Add to Cart Button for Each Child - This will display an addtocart button for each child.
  • Display Table Header - Will display a Table Header for the list of products.
  • Link to Child Product - This will allow the shopper to see the child product on its own page.
Quantity Options
These are self explanatory, but they can also be set for individual products not just child products.

CSS Styling

The modification adds one new class that you can use .child_list you would use this in this format.

table.child_list {
}

This allows you some control over how the child list is displayed.

For information on how to set up child products please refer to the VirtueMart Manual.

Single Add to Cart button on Category page

To enable a single add to cart button your browse(Category page) you need to have a file called browse_footer.php in your templates/browse folder. The filename will follow the name of your browse page e.g.

If your browse flypage is browse_1.php then your footer file is browse_1_footer.php or new_browse_1 is your browse flypage then your footer file will be new_browse_1_footer.php. So the file is basically the name of your browse flypage with _footer appended to it. An example file is included in the installation called browse_temp_footer.php. It only needs one tag in it called {add_to_cart}, the rest is formatting to place the add to cart button in the correct place on the page.

If you have a footer file then individual products add to cart button are no longer displayed.

If your products have attributes or child products then this will not work correctly. For those products you will automatically be taken to the products details page to select the correct attributes, which will then ignore the other selected products on the category page.

Language File Additions

This ia list of language file differences. If you have any new translations please contact me and I will include it in the distribution package.

    var $_PHPSHOP_ADMIN_LOCAL_SHOP = 'Local Shop';
    var $_PHPSHOP_ADMIN_LOCAL_SHOP_STORE = 'Store Sale';
    var $_PHPSHOP_ADMIN_LOCAL_SHOP_PHONE = 'Phone Sale';
    var $_PHPSHOP_EMPTY_YOUR_CART = 'Empty Cart';
    var $_PHPSHOP_CART_DOWNLOAD = 'Download';
 var $_PHPSHOP_PRODUCT_FORM_ITEM_DISPLAY_LBL = 'Display Options';
   var $_PHPSHOP_ADMIN_CFG_SHOW_CART_ON_ADD = 'Dont show cart on add to cart';
   var $_PHPSHOP_ADMIN_CFG_SHOW_CART_ON_ADD_EXPLAIN = 'If you select this the cart is not displayed when you add a product.';
    var $_PHPSHOP_DISPLAY_USE_PARENT = 'Use Parent Settings';
    var $_PHPSHOP_DISPLAY_USE_PARENT_DESCRIPTION = 'Override Child products Display Values and use parents';
    var $_PHPSHOP_DISPLAY_LIST = 'List';
    var $_PHPSHOP_DISPLAY_LIST_DESCRIPTION = 'Use List box for child products';
    var $_PHPSHOP_DISPLAY_LIST_STYLE = 'List Style';
    var $_PHPSHOP_DISPLAY_TABLE_HEADER = 'Display Table Header';
    var $_PHPSHOP_DISPLAY_CHILD_LINK = 'Link to child product from list';
    var $_PHPSHOP_DISPLAY_QUANTITY = 'Quantity';
    var $_PHPSHOP_DISPLAY_DROPDOWN_VALUES = 'Drop Down Box Values';
    var $_PHPSHOP_DISPLAY_NORMAL = 'Standard Quantity Box';
    var $_PHPSHOP_DISPLAY_HIDE = 'Hide Quantity Box';
    var $_PHPSHOP_DISPLAY_DROPDOWN = 'Use Dropdown Box';
    var $_PHPSHOP_DISPLAY_CHECKBOX = 'Use Check Box';
    var $_PHPSHOP_DISPLAY_ONE = 'One Add to Cart Button';
    var $_PHPSHOP_DISPLAY_MANY = 'Add to Cart Button for each Child';
    var $_PHPSHOP_DISPLAY_START = 'Start Value';
    var $_PHPSHOP_DISPLAY_END = 'End Value';
    var $_PHPSHOP_DISPLAY_STEP = 'Step Value';
    var $_PHPSHOP_CART_UPDATE_TEXT = 'Update Cart'




Discuss this article on the forums. (1 posts)




No comments...

Only registered users can write comments.
Please login or register.

 
Google Search
Google
VirtueMart
Child List LightBox & MoreImages Advanced Discount Mod


Advanced Search
Your Cart
Your Cart is currently empty.
Latest downloads
Top Downloads
Donate
Help me to continue development of these modifications by donating.


Advertisement